Difference between revisions of "cpp/container/vector bool"
From cppreference.com
(argh) |
(add separate category for vector<bool> specific functions) |
||
Line 70: | Line 70: | ||
{{dcl list template | cpp/container/dcl list resize | vector}} | {{dcl list template | cpp/container/dcl list resize | vector}} | ||
{{dcl list template | cpp/container/dcl list swap | vector}} | {{dcl list template | cpp/container/dcl list swap | vector}} | ||
+ | |||
+ | {{dcl list h2 | {{tt|vector<bool>}} specific modifiers}} | ||
{{dcl list template | cpp/container/vector_bool/dcl list flip}} | {{dcl list template | cpp/container/vector_bool/dcl list flip}} | ||
{{dcl list template | cpp/container/vector_bool/dcl list swap}} | {{dcl list template | cpp/container/vector_bool/dcl list swap}} |
Revision as of 08:56, 27 March 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 Template:cpp for the type Template:cpp.
It behaves similarly to Template:cpp, 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 Template:cpp to construct bit values.
Contents |
Member types
Template:tdcl list begin Template:tdcl list hitem Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template |- class="t-dsc"
|| proxy class representing a reference to a single bool
(class)
|-
Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list end