tinympl  0.2
mini MPL library for C++11
tinympl::vector< Args > Class Template Reference

A compile time vector of types Vector is the simplest tinympl sequence type. It provides standard modifiers and random access to its elements. More...

#include <tinympl/vector.hpp>

Classes

struct  at
 Access the i-th element. More...
 
struct  back
 Return the last element of the vector. More...
 
struct  erase
 Return a new vector constructed by erasing the elements in the range [first,last) of the current vector. More...
 
struct  front
 Return the first element of the vector. More...
 
struct  insert
 Return a new vector constructed by inserting the elements Ts... in the current vector starting at the index i More...
 
struct  pop_back
 Return a new vector constructed by removing the last element of the current vector. More...
 
struct  pop_front
 Return a new vector constructed by removing the first element of the current vector. More...
 
struct  push_back
 Return a new vector constructed by inserting T on the back of the current vector. More...
 
struct  push_front
 Return a new vector constructed by inserting T on the front of the current vector. More...
 

Public Types

enum  { size = sizeof ... (Args) }
 
enum  { empty = (size == 0) }
 

Detailed Description

template<class... Args>
class tinympl::vector< Args >

A compile time vector of types Vector is the simplest tinympl sequence type. It provides standard modifiers and random access to its elements.

Member Enumeration Documentation

template<class... Args>
anonymous enum
Enumerator
size 

The size of the vector.

template<class... Args>
anonymous enum
Enumerator
empty 

Determine whether the vector is empty.


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