Proton  1.1.1
Make porting easy from Python to C++11
vector.hpp File Reference

vector support. More...

#include <vector>
#include <algorithm>
#include <iostream>
#include <initializer_list>
#include <stdexcept>
#include <proton/base.hpp>
#include <proton/pool.hpp>
#include <proton/ref.hpp>

Go to the source code of this file.

Classes

class  proton::vector_< T, A >
 a vector extension implementing python's list-like interfaces. More...

Namespaces

namespace  proton
 The main proton namespace.

Functions

template<typename T , typename A , typename V >
std::vector< T, A > & proton::operator<< (std::vector< T, A > &x, V &&val)
 add an item in streaming style.
template<typename T , typename A , typename V >
std::vector< T, A > & proton::operator>> (std::vector< T, A > &x, V &val)
 pop an item in streaming style.
template<typename T , typename A >
std::ostream & proton::operator<< (std::ostream &s, const std::vector< T, A > &x)
 general output for vector.
template<typename T , typename A , typename X >
vector_< T, A > proton::operator+ (const std::vector< T, A > &s, X &&t)
 vector + vector
template<typename T , typename A >
vector_< T, A > proton::operator* (const std::vector< T, A > &s, size_t n)
 vector_ * n
template<typename T , typename A >
vector_< T, A > proton::operator* (size_t n, const std::vector< T, A > &s)
 n * vector_
template<typename T , typename A >
vector_< T, A > & proton::cast_ (std::vector< T, A > &x)
 cast to proton::vector_<>& from std::vector<>&.

Detailed Description

vector support.

Please include this header instead of <vector>.

Definition in file vector.hpp.