[llvm-commits] [llvm] r42324 - /llvm/trunk/docs/ProgrammersManual.html
Chris Lattner
sabre at nondot.org
Tue Sep 25 15:37:51 PDT 2007
Author: lattner
Date: Tue Sep 25 17:37:50 2007
New Revision: 42324
URL: http://llvm.org/viewvc/llvm-project?rev=42324&view=rev
Log:
explain why not vector<bool>
Modified:
llvm/trunk/docs/ProgrammersManual.html
Modified: llvm/trunk/docs/ProgrammersManual.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/ProgrammersManual.html?rev=42324&r1=42323&r2=42324&view=diff
==============================================================================
--- llvm/trunk/docs/ProgrammersManual.html (original)
+++ llvm/trunk/docs/ProgrammersManual.html Tue Sep 25 17:37:50 2007
@@ -1292,8 +1292,15 @@
</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<bool></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>
<!-- _______________________________________________________________________ -->
More information about the llvm-commits
mailing list