explain why not vector<bool>
authorChris Lattner <sabre@nondot.org>
Tue, 25 Sep 2007 22:37:50 +0000 (22:37 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 25 Sep 2007 22:37:50 +0000 (22:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42324 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ProgrammersManual.html

index 795b91a76ba92db5f56c5e6d927198cf3dcf99ac..d3b7eefee36e687b9cd4a0ed7f9bde10f3beae69 100644 (file)
@@ -1292,8 +1292,15 @@ expensive.  Element iteration does not visit elements in a useful order.</p>
 </div>
 
 <div class="doc_text">
-Unlike the other containers, there are only two bit storage containers, and when
-to use each is relatively straightforward.
+<p>Unlike the other containers, there are only two bit storage containers, and 
+choosing when to use each is relatively straightforward.</p>
+
+<p>One additional option is 
+<tt>std::vector&lt;bool&gt;</tt>: we discourage its use for two reasons 1) the
+implementation in many common compilers (e.g. commonly available versions of 
+GCC) is extremely inefficient and 2) the C++ standards committee is likely to
+deprecate this container and/or change it significantly somehow.  In any case,
+please don't use it.</p>
 </div>
 
 <!-- _______________________________________________________________________ -->