Polymake Template Library (PTL): pm::Vector< E > Class Template Reference
Polymake Template Library (PTL)  4.2
pm::Vector< E > Class Template Reference

Vector type class which holds the elements in a contiguous array More...

Collaboration diagram for pm::Vector< E >:

Public Member Functions

 Vector ()
 create as empty
 
 Vector (Int n)
 create vector of length n
 
Int size () const
 number of elements
 
void clear ()
 truncate to zero size
 
void resize (Int n)
 change the size, initialize appended elements with default constructor
 
template<typename Vector2 , typename E2 , typename = std::enable_if_t<can_initialize<E2, E>::value>>
Vectoroperator|= (const GenericVector< Vector2, E2 > &v)
 append a GenericVector
 
template<typename E2 , typename = std::enable_if_t<can_initialize<E2, E>::value>>
Vectoroperator|= (E2 &&r)
 append an element
 

Detailed Description

template<typename E>
class pm::Vector< E >

Vector type class which holds the elements in a contiguous array


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