Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
typetraits
IsBaseOf.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_TYPETRAITS_ISBASEOF_H_
36
#define _BLAZE_UTIL_TYPETRAITS_ISBASEOF_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <type_traits>
44
#include <
blaze/util/IntegralConstant.h
>
45
#include <
blaze/util/typetraits/RemoveCV.h
>
46
47
48
namespace
blaze {
49
50
//=================================================================================================
51
//
52
// CLASS DEFINITION
53
//
54
//=================================================================================================
55
56
//*************************************************************************************************
79
template
<
typename
Base,
typename
Derived >
80
class
IsBaseOf
81
:
public
BoolConstant
< std::is_base_of< RemoveCV_t<Base>, RemoveCV_t<Derived> >::value >
82
{};
83
//*************************************************************************************************
84
85
86
//*************************************************************************************************
99
template
<
typename
Base,
typename
Derived >
100
constexpr
bool
IsBaseOf_v
=
IsBaseOf<Base,Derived>::value
;
101
//*************************************************************************************************
102
103
}
// namespace blaze
104
105
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
RemoveCV.h
Header file for the RemoveCV type trait.
blaze::IsBaseOf
Compile time analysis of an inheritance relationship.
Definition
IsBaseOf.h:82
blaze::IsBaseOf_v
constexpr bool IsBaseOf_v
Auxiliary variable template for the IsBaseOf type trait.
Definition
IsBaseOf.h:100
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
Generated by
1.18.0