Difference between revisions of "cpp/container/vector bool"
From cppreference.com
m (Text replace - "{{tdcl list begin" to "{{dcl list begin") |
m (Text replace - "{{tdcl list end" to "{{dcl list end") |
||
Line 29: | Line 29: | ||
{{tdcl list template | cpp/container/tdcl list reverse_iterator | vector_bool}} | {{tdcl list template | cpp/container/tdcl list reverse_iterator | vector_bool}} | ||
{{tdcl list template | cpp/container/tdcl list const_reverse_iterator | vector_bool}} | {{tdcl list template | cpp/container/tdcl list const_reverse_iterator | vector_bool}} | ||
− | {{ | + | {{dcl list end}} |
===Member functions=== | ===Member functions=== |
Revision as of 01:28, 12 June 2012
Template:cpp/container/vector bool/sidebar
Defined in header <vector>
|
||
template<class Allocator = std::allocator<bool>> class vector<bool, Allocator>; |
||
std::vector<bool> is a space-efficient specialization of std::vector for the type bool.
It behaves similarly to std::vector, but in order to be space efficient, std::vector<bool>:
- Does not necessarily store its data in a single contiguous chunk of memory.
- Exposes std::vector<bool>::reference as a method of accessing individual bits.
- Does not use std::allocator_traits::construct to construct bit values.
Contents |