ofvector Class Template Reference

A vector where the memory allocation is performed in the constructor. More...

#include <ovector_tlate.h>

Inheritance diagram for ofvector:

ovector_tlate ovector_base_tlate ovector_const_view_tlate

Detailed Description

template<size_t N = 0>
class ofvector< N >

This can be useful, for example to easily make C-style arrays of ovector objects with a fixed size. For example,
      ofvector<8> x[10];
would mean x is a 10-dimensional array of ovector object with initial length 8.

Idea for future:
Consider making allocate() and free() functions private for this class?

Definition at line 1891 of file ovector_tlate.h.


The documentation for this class was generated from the following file:

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page