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>
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 >
101 //*************************************************************************************************
102 
103 } // namespace blaze
104 
105 #endif
Header file for the RemoveCV type trait.
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
constexpr bool IsBaseOf_v
Auxiliary variable template for the IsBaseOf type trait.The IsBaseOf_v variable template provides a c...
Definition: IsBaseOf.h:100
Header file for the IntegralConstant class template.
Compile time analysis of an inheritance relationship.This type trait tests for an inheritance relatio...
Definition: IsBaseOf.h:80