STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Types
stapl::select_parameter< Passed, Default > Struct Template Reference

Type metafunction used by class templates with default template parameters that might be lengthy in type / name. Shortens symbol names for better debug output and compile times. More...

Public Types

using type = Passed
 

Detailed Description

template<typename Passed, typename Default>
struct stapl::select_parameter< Passed, Default >

Type metafunction used by class templates with default template parameters that might be lengthy in type / name. Shortens symbol names for better debug output and compile times.

Template Parameters
Passedparameter passed to the user's class template
Defaultthe type which should be used if Passed is use_default

usage: template<typename T, typename Q = use_default) class foo { // use int as default type typedef typename select_parameter<Q, really_long_type>::type Q_t; ... };

foo<float> // Q_t = really_long_type foo<<float, int> // Q_t = int

primary template reflects Passed (Default != use_default).


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