Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
ah-convert-common.H File Reference

Conversions between std::vector and Aleph-w containers shared by ah-convert.H and ah-stl-utils.H. More...

#include <vector>
#include <htlist.H>
#include <tpl_dynArray.H>
Include dependency graph for ah-convert-common.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Aleph
 Main namespace for Aleph-w library functions.
 

Functions

template<class C >
std::vector< typename C::Item_Type > Aleph::to_vector (const C &c)
 Convert a container to a std::vector.
 
template<class T >
DynList< T > Aleph::vector_to_DynList (const std::vector< T > &v)
 Convert a std::vector to a DynList.
 
template<class T >
DynArray< T > Aleph::vector_to_DynArray (const std::vector< T > &v)
 Convert a std::vector to a DynArray.
 

Detailed Description

Conversions between std::vector and Aleph-w containers shared by ah-convert.H and ah-stl-utils.H.

Both headers offer to_vector(), vector_to_DynList() and vector_to_DynArray(). They are defined here once, so that the two headers can be included in the same translation unit, in either order. Include ah-convert.H or ah-stl-utils.H rather than this header.

Author
Leandro Rabindranath León

Definition in file ah-convert-common.H.