DeduceHyperParameterTypes< T, Args... >::IsCollectionType< Type > Struct Template Reference

A type function to check whether Type is a collection type (for that it should define value_type). More...

Public Types

using No = char[2]
 
using Yes = char[1]
 

Static Public Member Functions

template
<
typename
TypeToCheck
>
static YesCheck (typename TypeToCheck::value_type *)
 
template
<
typename
>
static NoCheck (...)
 

Static Public Attributes

static const bool value
 

Detailed Description


template<typename T, typename... Args>

template
<
typename
Type
>

struct mlpack::hpt::DeduceHyperParameterTypes< T, Args... >::IsCollectionType< Type >

A type function to check whether Type is a collection type (for that it should define value_type).

Definition at line 69 of file deduce_hp_types.hpp.

Member Typedef Documentation

◆ No

using No = char[2]

Definition at line 72 of file deduce_hp_types.hpp.

◆ Yes

using Yes = char[1]

Definition at line 71 of file deduce_hp_types.hpp.

Member Function Documentation

◆ Check() [1/2]

static Yes& Check ( typename TypeToCheck::value_type *  )
static

◆ Check() [2/2]

static No& Check (   ...)
static

Member Data Documentation

◆ value

const bool value
static
Initial value:
=
sizeof(decltype(Check<Type>(0))) == sizeof(Yes)

Definition at line 79 of file deduce_hp_types.hpp.


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