AnimaL |
Tutorial |
Documentation |
#include <vector.h>
Inheritance diagram for animal::vector< T, Alloc >:
Range checking can be turned of using compile option -DNDEBUG
Definition at line 21 of file vector.h.
Public Types | |
typedef std::vector< T, Alloc >::size_type | size_type |
size_type | |
typedef std::vector< T, Alloc >::reference | reference |
reference to a value (read-write) | |
typedef std::vector< T, Alloc >::const_reference | const_reference |
const reference to a value (read only) | |
Public Member Functions | |
vector () | |
Basic onstructor. | |
vector (size_type n, const T &value) | |
Constructor. | |
vector (int n, const T &value) | |
Constructor. | |
vector (long n, const T &value) | |
Constructor. | |
vector (size_type n) | |
Constructor. | |
vector (const std::vector< T, Alloc > &x) | |
Constructor. | |
vector< T, Alloc > & | operator= (const std::vector< T, Alloc > &x) |
Constructor. | |
vector (typename animal::vector< T, Alloc >::const_iterator first, typename animal::vector< T, Alloc >::const_iterator last) | |
Constructor. | |
reference | operator[] (size_type n) |
Read/write random access. | |
const_reference | operator[] (size_type n) const |
Read-only random access. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const std::vector< T, Alloc > &vec) |
Output stream. |
|
const reference to a value (read only)
|
|
reference to a value (read-write)
|
|
size_type
|
|
Basic onstructor.
|
|
Constructor.
|
|
Constructor.
|
|
Constructor.
|
|
Constructor.
|
|
Constructor.
|
|
Constructor.
|
|
Constructor.
|
|
Read-only random access.
|
|
Read/write random access.
|
|
Output stream.
|