#include <checkedvector.h>
Public Types | |
| typedef std::vector< T >::iterator | iterator |
| typedef std::vector< T >::const_iterator | const_iterator |
| typedef std::vector< T >::reference | reference |
| typedef std::vector< T >::const_reference | const_reference |
Public Member Functions | |
| checkedVector () | |
| checkedVector (unsigned int size, const T &val=T()) | |
| const_reference | operator[] (unsigned int pos) const |
| reference | operator[] (unsigned int pos) |
| void | assign (unsigned int size, const T &val) |
| checkedVector< T > & | operator= (const checkedVector< T > &from) |
| checkedVector< T > & | operator= (const std::vector< T > &from) |
checkedVector<T> acts like a std::vector<T> with an additional out of bounds checking when using the index operator.The additional out of bounds checking can be disabled by undefining the macro DEBUG.
|
|||||
|
The iterator type. See standard template library (STL) for further explanation. |
|
|||||
|
The constant iterator type. See STL for further explanation. |
|
|||||
|
The reference type. See STL for further explanation. |
|
|||||
|
The reference type. See STL for further explanation. |
|
|||||||||
|
Class constructor to create an empty sequence. |
|
||||||||||||||||
|
Class constructor to create a sequence with the size given as argument. The second argument can be used to set the allocated elements to an inital value. |
1.4.1