STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Static Public Member Functions | Public Types
stapl::tuple_ops::result_of::ensure_tuple< T > Struct Template Reference

Metafunction that wraps a non-tuple type into a tuple of size one. If the type is already a tuple, it acts as an identity. More...

Static Public Member Functions

template<typename U >
static type apply (U &&u)
 

Public Types

using type = stapl::tuple< T >
 

Detailed Description

template<typename T>
struct stapl::tuple_ops::result_of::ensure_tuple< T >

Metafunction that wraps a non-tuple type into a tuple of size one. If the type is already a tuple, it acts as an identity.

For example, ensure_tuple<char> would return tuple<char> but ensure_tuple<tuple<char,float>> would return tuple<char,float>.

Template Parameters
TThe type to obtain the tuple from.

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