Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
GetAllocator.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_GETALLOCATOR_H_
36
#define _BLAZE_MATH_TYPETRAITS_GETALLOCATOR_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/Aliases.h
>
44
#include <
blaze/math/typetraits/UnderlyingElement.h
>
45
#include <
blaze/util/NullAllocator.h
>
46
#include <
blaze/util/typetraits/IsDetected.h
>
47
48
49
namespace
blaze {
50
51
//=================================================================================================
52
//
53
// CLASS DEFINITION
54
//
55
//=================================================================================================
56
57
//*************************************************************************************************
79
template
<
typename
T >
80
using
GetAllocator
=
DetectedOr< NullAllocator< UnderlyingElement_t<T>
>,
AllocatorType_t
, T >;
81
//*************************************************************************************************
82
83
84
//*************************************************************************************************
97
template
<
typename
T >
98
using
GetAllocator_t
=
typename
GetAllocator<T>::Type
;
99
//*************************************************************************************************
100
101
}
// namespace blaze
102
103
#endif
Aliases.h
Header file for auxiliary alias declarations.
blaze::AllocatorType_t
typename T::AllocatorType AllocatorType_t
Alias declaration for nested AllocatorType type definitions.
Definition
Aliases.h:70
IsDetected.h
Header file for the IsDetected type trait.
NullAllocator.h
Header file for the NullAllocator implementation.
UnderlyingElement.h
Header file for the UnderlyingElement type trait.
blaze::GetAllocator
DetectedOr< NullAllocator< UnderlyingElement_t< T > >, AllocatorType_t, T > GetAllocator
Determines the type of allocator of the given type.
Definition
GetAllocator.h:80
blaze::GetAllocator_t
typename GetAllocator< T >::Type GetAllocator_t
Auxiliary alias declaration for the GetAllocator type trait.
Definition
GetAllocator.h:98
blaze::DetectedOr
Detector< Default, void, OP, Ts... > DetectedOr
Compile time detection of type properties.
Definition
IsDetected.h:116
Generated by
1.18.0