Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
typetraits
IsDestructible.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_TYPETRAITS_ISDESTRUCTIBLE_H_
36
#define _BLAZE_UTIL_TYPETRAITS_ISDESTRUCTIBLE_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <type_traits>
44
#include <
blaze/util/IntegralConstant.h
>
45
46
47
namespace
blaze {
48
49
//=================================================================================================
50
//
51
// CLASS ISDESTRUCTIBLE
52
//
53
//=================================================================================================
54
55
//*************************************************************************************************
71
template
<
typename
T >
72
struct
IsDestructible
73
:
public
BoolConstant
< std::is_destructible<T>::value >
74
{};
75
//*************************************************************************************************
76
77
78
//*************************************************************************************************
91
template
<
typename
T >
92
constexpr
bool
IsDestructible_v
=
IsDestructible<T>::value
;
93
//*************************************************************************************************
94
95
96
97
98
//=================================================================================================
99
//
100
// CLASS ISNOTHROWDESTRUCTIBLE
101
//
102
//=================================================================================================
103
104
//*************************************************************************************************
120
template
<
typename
T >
121
struct
IsNothrowDestructible
122
:
public
BoolConstant
< std::is_nothrow_destructible<T>::value >
123
{};
124
//*************************************************************************************************
125
126
127
//*************************************************************************************************
140
template
<
typename
T >
141
constexpr
bool
IsNothrowDestructible_v
=
IsNothrowDestructible<T>::value
;
142
//*************************************************************************************************
143
144
}
// namespace blaze
145
146
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::IsDestructible_v
constexpr bool IsDestructible_v
Auxiliary variable template for the IsDestructible type trait.
Definition
IsDestructible.h:92
blaze::IsNothrowDestructible_v
constexpr bool IsNothrowDestructible_v
Auxiliary variable template for the IsNothrowDestructible type trait.
Definition
IsDestructible.h:141
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
blaze::IsDestructible
Compile time type check.
Definition
IsDestructible.h:74
blaze::IsNothrowDestructible
Compile time type check.
Definition
IsDestructible.h:123
Generated by
1.18.0