My Project
|
#include <sql_array.h>
Public Member Functions | |
Bounds_checked_array (Element_type *el, size_t size) | |
void | reset () |
void | reset (Element_type *array, size_t size) |
void | resize (size_t new_size) |
Element_type & | operator[] (size_t n) |
const Element_type & | operator[] (size_t n) const |
size_t | element_size () const |
size_t | size () const |
bool | is_null () const |
void | pop_front () |
Element_type * | array () const |
bool | operator== (const Bounds_checked_array< Element_type > &rhs) const |
bool | operator!= (const Bounds_checked_array< Element_type > &rhs) const |
A wrapper class which provides array bounds checking. We do *not* own the array, we simply have a pointer to the first element, and a length.
Element_type | The type of the elements of the container. |
void Bounds_checked_array< Element_type >::resize | ( | size_t | new_size | ) | [inline] |
Set a new bound on the array. Does not resize the underlying array, so the new size must be smaller than or equal to the current size.