Proton
1.1.1
Make porting easy from Python to C++11
|
tuple support. More...
#include <tuple>
#include <algorithm>
#include <iostream>
#include <initializer_list>
#include <stdexcept>
#include <limits>
#include <proton/base.hpp>
Go to the source code of this file.
Namespaces | |
namespace | proton |
The main proton namespace. | |
namespace | proton::detail |
The implementation namespace of proton. |
Functions | |
template<long index, typename... T> | |
detail::at_index < detail::get_index(index, sizeof...(T)), T...>::type | proton::at (const std::tuple< T...> &x) |
like x[index] in python | |
template<long begin, long end = std::numeric_limits<long>::max(), typename... T> | |
detail::sub< std::tuple< T...> , detail::fix_index(begin, sizeof...(T)), detail::fix_size(begin, end, sizeof...(T))>::type | proton::sub (const std::tuple< T...> &x) |
get a slice of tuple x[begin:end] in python | |
template<typename... T> | |
std::ostream & | proton::operator<< (std::ostream &s, const std::tuple< T...> &x) |
general output for tuple. | |
template<typename T2 , typename... T1> | |
auto | proton::operator+ (const std::tuple< T1...> &x, T2 &&y)-> decltype(std |
tuple + tuple | |
template<typename... T> | |
auto | proton::_t (T &&...x)-> decltype(std |
eq to make_tuple | |
template<typename... T> | |
auto | proton::_f (T &&...x)-> decltype(std |
eq to forward_as_tuple |