smgl 0.11.0
Structured Metadata Engine and Graph Objects Library
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Variables
TypeTraits.hpp File Reference
#include <memory>
#include <type_traits>
Include dependency graph for TypeTraits.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  smgl::type_traits::remove_cvref< T >
 Removes const-qualifications and references from type. More...
 
struct  smgl::type_traits::is_ptr_to_base_helper< Ptr, Base >
 
struct  smgl::type_traits::is_ptr_to_base< Ptr, Base >
 Checks if Ptr element type can be converted to Base. More...
 

Namespaces

namespace  smgl
 Project top-level namespace.
 
namespace  smgl::type_traits
 Custom type traits namespace.
 

Typedefs

template<typename T >
using smgl::type_traits::remove_cvref_t = typename remove_cvref< T >::type
 Removes const-qualifications and references from type.
 
template<bool... v>
using smgl::type_traits::all_true = std::is_same< bool_pack< true, v... >, bool_pack< v..., true > >
 Checks if all template conditions are true.
 

Variables

template<bool... v>
constexpr bool smgl::type_traits::all_true_v = all_true<v...>::value
 Checks if all template conditions are true.
 
template<typename Ptr , typename Base >
constexpr bool smgl::type_traits::is_ptr_to_base_v = is_ptr_to_base<Ptr, Base>::value
 Checks if Ptr element type can be converted to Base.