vector< bool, Alloc > Class Template Reference
[Containers, Sequences]
#include <stl_bvector.h>
List of all members.
Detailed Description
template<typename Alloc>
class std::vector< bool, Alloc >
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 416 of file stl_bvector.h.
Public Types
-
typedef Bvector_base< Alloc
>::allocator_type allocator_type
-
typedef Bit_const_iterator const_iterator
-
typedef const bool * const_pointer
-
typedef bool const_reference
-
typedef std::reverse_iterator<
const_iterator > const_reverse_iterator
-
typedef ptrdiff_t difference_type
-
typedef Bit_iterator iterator
-
typedef Bit_reference * pointer
-
typedef Bit_reference reference
-
typedef std::reverse_iterator<
iterator > reverse_iterator
-
typedef size_t size_type
-
typedef bool value_type
Public Member Functions
-
template<class InputIterator> void assign (InputIterator first, InputIterator last)
-
void assign (size_t n, bool x)
-
const_reference at (size_type n) const
-
reference at (size_type n)
-
const_reference back () const
-
reference back ()
-
const_iterator begin () const
-
iterator begin ()
-
size_type capacity () const
-
void clear ()
-
bool empty () const
-
const_iterator end () const
-
iterator end ()
-
iterator erase (iterator first, iterator last)
-
iterator erase (iterator position)
-
void flip ()
-
const_reference front () const
-
reference front ()
-
allocator_type get_allocator () const
-
void insert (iterator position, size_type n, bool x)
-
template<class InputIterator> void insert (iterator position, InputIterator first, InputIterator last)
-
iterator insert (iterator position, bool x=bool())
-
template<class ForwardIterator> void M_assign_aux (ForwardIterator first, ForwardIterator last, forward_iterator_tag)
-
template<class InputIterator> void M_assign_aux (InputIterator first, InputIterator last, input_iterator_tag)
-
template<class InputIterator> void M_assign_dispatch (InputIterator first, InputIterator last, __false_type)
-
template<class Integer> void M_assign_dispatch (Integer n, Integer __val, __true_type)
-
void M_fill_assign (size_t n, bool x)
-
void M_fill_insert (iterator position, size_type n, bool x)
-
template<class InputIterator> void M_initialize_dispatch (InputIterator first, InputIterator last, __false_type)
-
template<class Integer> void M_initialize_dispatch (Integer n, Integer x, __true_type)
-
template<class InputIterator> void M_insert_dispatch (iterator position, InputIterator first, InputIterator last, __false_type)
-
template<class Integer> void M_insert_dispatch (iterator position, Integer n, Integer x, __true_type)
-
void M_range_check (size_type n) const
-
size_type max_size () const
-
vector & operator= (const vector &x)
-
const_reference operator[] (size_type n) const
-
reference operator[] (size_type n)
-
void pop_back ()
-
void push_back (bool x)
-
const_reverse_iterator rbegin () const
-
reverse_iterator rbegin ()
-
const_reverse_iterator rend () const
-
reverse_iterator rend ()
-
void reserve (size_type n)
-
void resize (size_type new_size, bool x=bool())
-
size_type size () const
-
void swap (vector< bool, Alloc > &x)
-
template<class InputIterator> vector (InputIterator first, InputIterator last, const allocator_type &a=allocator_type())
-
vector (const vector &x)
-
vector (size_type n)
-
vector (size_type n, bool value, const allocator_type &a=allocator_type())
-
vector (const allocator_type &a=allocator_type())
Static Public Member Functions
-
void swap (reference x, reference y)
Protected Member Functions
-
void M_initialize (size_type n)
-
template<class ForwardIterator> void M_initialize_range (ForwardIterator first, ForwardIterator last, forward_iterator_tag)
-
template<class InputIterator> void M_initialize_range (InputIterator first, InputIterator last, input_iterator_tag)
-
void M_insert_aux (iterator position, bool x)
-
template<class ForwardIterator> void M_insert_range (iterator position, ForwardIterator first, ForwardIterator last, forward_iterator_tag)
-
template<class InputIterator> void M_insert_range (iterator position, InputIterator first, InputIterator last, input_iterator_tag)
The documentation for this class was generated from the following file:
Generated on Sun Jul 25 00:12:50 2004 for libstdc++ source by
1.3.7