mlpack 3.4.2
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
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...

#include <deduce_hp_types.hpp>

Public Types

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

Static Public Member Functions

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

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 No & Check (   ...)
static

◆ Check() [2/2]

static Yes & Check ( typename TypeToCheck::value_type *  )
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: