std::vector< bool, _Alloc > Class Template Reference
[Sequences]

A specialization of vector for booleans which offers fixed time access to individual elements in any order. More...

Inherits std::_Bvector_base<_Alloc>.

List of all members.

Public Types

Public Member Functions

Static Public Member Functions

Protected Types

Protected Member Functions

Protected Attributes


Detailed Description

template<typename _Alloc>
class std::vector< bool, _Alloc >

A specialization of vector for booleans which offers fixed time access to individual elements in any order.

Note that vector<bool> does not actually meet the requirements for being a container. This is because the reference and pointer types are not really references and pointers to bool. See DR96 for details.

See also:
vector for function documentation.
In some terminology a vector can be described as a dynamic C-style array, it offers fast and efficient access to individual elements in any order and saves the user from worrying about memory and size allocation. Subscripting ( [] ) access is also provided as with C-style arrays.

Definition at line 474 of file stl_bvector.h.


The documentation for this class was generated from the following files:

Generated on Thu Jul 23 21:18:12 2009 for libstdc++ by  doxygen 1.5.8