![]() |
Home | Libraries | People | FAQ | More |
boost::array — STL compliant container wrapper for arrays of constant size
// In header: <boost/array.hpp> template<typename T, N> class array { public: // types typedef ; typedef ; typedef ; typedef std::reverse_iterator< ; typedef std::reverse_iterator< ; typedef ; typedef ; typedef ; typedef ; // static constants = ; // construct/copy/destruct template<typename U> array& (array<); // iterator support (); () ; (); () ; (); (); // reverse iterator support (); () ; (); () ; (); (); // capacity (); (); (); // element access (); () ; (); () ; (); () ; (); () ; () ; (); // modifiers (array<); (); // public data members elems[N]; }; // specialized algorithms template<typename T, N> (array<, array<); // comparisons template<typename T, N> (array<, array<); template<typename T, N> (array<, array<); template<typename T, N> (array<, array<); template<typename T, N> (array<, array<); template<typename T, N> (array<, array<); template<typename T, N> (array<, array<); // specializations template<typename T, N, Idx> (array<); template<typename T, N, Idx> (array<);
array
iterator support(); () ;
Returns: |
iterator for the first element |
Throws: |
will not throw |
(); () ;
Returns: |
iterator for position after the last element |
Throws: |
will not throw |
();
Returns: |
constant iterator for the first element |
Throws: |
will not throw |
();
Returns: |
constant iterator for position after the last element |
Throws: |
will not throw |
array
reverse iterator support(); () ;
Returns: |
reverse iterator for the first element of reverse iteration |
(); () ;
Returns: |
reverse iterator for position after the last element in reverse iteration |
();
Returns: |
constant reverse iterator for the first element of reverse iteration |
Throws: |
will not throw |
();
Returns: |
constant reverse iterator for position after the last element in reverse iteration |
Throws: |
will not throw |
array
element access( i); ( i) ;
Requires: |
i < N |
Returns: |
element with index i
|
Throws: |
will not throw. |
( i); ( i) ;
Returns: |
element with index i
|
Throws: |
std::range_error if i >= N
|
(); () ;
Requires: |
N > 0 |
Returns: |
the first element |
Throws: |
will not throw |
(); () ;
Requires: |
N > 0 |
Returns: |
the last element |
Throws: |
will not throw |
() ;
Returns: |
elems |
Throws: |
will not throw |
();
Returns: |
elems |
Throws: |
will not throw |
array
comparisonstemplate<typename T, N> (array< x, array< y);
template<typename T, N> (array< x, array< y);
Returns: |
!(x == y) |
template<typename T, N> (array< x, array< y);
template<typename T, N> (array< x, array< y);
Returns: |
y < x |
template<typename T, N> (array< x, array< y);
Returns: |
!(y < x) |
template<typename T, N> (array< x, array< y);
Returns: |
!(x < y) |