#include <TStaticArray.h>
Public Member Functions | |
const_reference | operator[] (size_type index) const throw (out_of_range) |
reference | operator[] (size_type index) throw (out_of_range) |
Template base for static arrays granting access beyond the last used element using overloaded array access. It will create empty elements as needed using element default constructor.
Definition at line 1071 of file TStaticArray.h.
const_reference mbo::TStaticArrayEx< __ValueType, __MaxSize, __Allocator >::operator[] | ( | size_type | index | ) | const throw (out_of_range) [inline] |
index | of element to access |
const
reference to value at specified index out_of_range | if size() == 0 |
Definition at line 1079 of file TStaticArray.h.
References mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::append_element(), mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::m_acValues, mbo::TStaticArray< __ValueType, __MaxSize, __Allocator >::m_nSize, and mbo_tsa_throw_if_not.
01079 { 01080 public: 01085 inline const_reference operator[] (_IN size_type index) const throw(out_of_range) 01086 { 01087 mbo_tsa_throw_if_not(out_of_range, index < __MaxSize);
reference mbo::TStaticArrayEx< __ValueType, __MaxSize, __Allocator >::operator[] | ( | size_type | index | ) | throw (out_of_range) [inline] |
index | of element to access |
out_of_range | if index is invalid |
Definition at line 1093 of file TStaticArray.h.
01100 { 01101 mbo_tsa_throw_if_not(out_of_range, index < __MaxSize);
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:15 2008 for MBO-lib by ![]() |