Pothos  0.7.0-gf7fbae99
The Pothos dataflow programming software suite
Classes | Typedefs
Integer sequence implementation for C++11

Classes

struct  Pothos::Util::integer_sequence< T, Ints >
 

Typedefs

template<std::size_t... Ints>
using Pothos::Util::index_sequence = integer_sequence< std::size_t, Ints... >
 
template<typename T , T N>
using Pothos::Util::make_integer_sequence = typename GenSeq< T, int(N)>::Type
 
template<std::size_t N>
using Pothos::Util::make_index_sequence = make_integer_sequence< std::size_t, N >
 
template<typename... T>
using Pothos::Util::index_sequence_for = make_index_sequence< sizeof...(T)>
 

Detailed Description


This can be removed when C++14 is required.

See also
http://en.cppreference.com/w/cpp/utility/integer_sequence

Typedef Documentation

◆ index_sequence

template<std::size_t... Ints>
using Pothos::Util::index_sequence = typedef integer_sequence<std::size_t, Ints...>

Specialize the integer sequence for size_t

Template Parameters
Intsthe parameter pack of integers

◆ index_sequence_for

template<typename... T>
using Pothos::Util::index_sequence_for = typedef make_index_sequence<sizeof...(T)>

Make an index sequence from a parameter pack

Template Parameters
Tthe parameter pack

◆ make_index_sequence

template<std::size_t N>
using Pothos::Util::make_index_sequence = typedef make_integer_sequence<std::size_t, N>

Make an index sequence from the length

Template Parameters
Nthe length

◆ make_integer_sequence

template<typename T , T N>
using Pothos::Util::make_integer_sequence = typedef typename GenSeq<T, int(N)>::Type

Make an integer sequence from the length

Template Parameters
Tthe integer type
Nthe length