chsvlib
chsv helper source code
subtuple< Tpl, Begin, End > Struct Template Reference

Defines a type field which is an alias for a subtuple consisting of elements within the specified range of a given tuple. More...

#include <chsvmemex.h>

Public Types

typedef subtuple_type type
 Type of the extracted tuple.
 

Detailed Description

template<class Tpl, std::size_t Begin, std::size_t End>
struct Chusov::Memory::subtuple< Tpl, Begin, End >

Defines a type field which is an alias for a subtuple consisting of elements within the specified range of a given tuple.

Template Parameters
Beginis an inclusive index of a first type to include in the subtuple.
Endis an exclusive index of a first (pseudo-) element beyond the range of elements to include in the subtuple.
Tplis a tuple from which to extracts elementary types.
See also
make_subtuple;
forward_subtuple.

The template is SFINAE friendly in the sense that if the specified type Tpl is not a tuple, or if the specified indexes do not designate a valid range [Begin, End) of elements within the source tuple, the type field is not defined.


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