Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
typelist
Length.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_TYPELIST_LENGTH_H_
36
#define _BLAZE_UTIL_TYPELIST_LENGTH_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/util/IntegralConstant.h
>
44
#include <
blaze/util/typelist/TypeList.h
>
45
46
47
namespace
blaze {
48
49
//=================================================================================================
50
//
51
// CLASS DEFINITION
52
//
53
//=================================================================================================
54
55
//*************************************************************************************************
70
template
<
typename
TL >
// Type of the type list
71
struct
Length
;
72
//*************************************************************************************************
73
74
75
//*************************************************************************************************
80
template
<
typename
... Ts >
// Type list elements
81
struct
Length
<
TypeList
<Ts...> >
82
:
public
Size_t
< sizeof...( Ts ) >
83
{};
85
//*************************************************************************************************
86
87
88
//*************************************************************************************************
101
template
<
typename
TL >
// Type of the type list
102
constexpr
size_t
Length_v
=
Length<TL>::value
;
103
//*************************************************************************************************
104
105
}
// namespace blaze
106
107
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::Length_v
constexpr size_t Length_v
Auxiliary variable template for the Length type trait.
Definition
Length.h:102
blaze::Size_t
IntegralConstant< size_t, N > Size_t
Compile time integral constant wrapper for size_t.
Definition
IntegralConstant.h:258
blaze::Length
Calculating the length of a type list.
Definition
Length.h:71
blaze::TypeList
Implementation of a type list.
Definition
TypeList.h:120
TypeList.h
Header file for the TypeList class template.
Generated by
1.18.0