VIGRA - TemplateArrayVector class Reference

[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]

| ArrayVector Class Template Reference |
--- | --- | ---

`#include "vigra/array_vector.hxx"`

## Detailed Description

### template<class T, class Alloc = std::allocator<T>>
class vigra::ArrayVector< T, Alloc >

Replacement for `std::vector`.

This template implements the same functionality as `std::vector`. However, it gives two usful guarantees, that `std::vector` fails to provide:

- The memory is always allocated as one contigous piece
- The iterator is always a `T *`

This means that memory managed by `ArrayVector` can be passed to algorithms that expect raw memory. This is especially important when lagacy or C code has to be called, but it is also useful for certain optimizations.

Refer to the documentation of `std::vector` for a detailed description of `ArrayVector` functionality.

#include "vigra/array_vector.hxx"
Namespace: vigra

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

- vigra/array_vector.hxx

© Ullrich Köthe (koethe@informatik.uni-hamburg.de) Cognitive Systems Group, University of Hamburg, Germany | html generated using doxygen and Python VIGRA 1.5.0 (7 Dec 2006)