cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
toolbox::traits::is_heap_allocated< T > Struct Template Reference

检查类型是否必须堆分配/Check if type must be heap allocated More...

#include <type_traits.hpp>

Static Public Attributes

static constexpr bool value
 

Detailed Description

template<typename T>
struct toolbox::traits::is_heap_allocated< T >

检查类型是否必须堆分配/Check if type must be heap allocated

Template Parameters
T要检查的类型/Type to check
class Abstract { virtual void foo() = 0; };
class Concrete {};
static constexpr bool value
Definition type_traits.hpp:554

Member Data Documentation

◆ value

template<typename T >
constexpr bool toolbox::traits::is_heap_allocated< T >::value
staticconstexpr
Initial value:
=
static constexpr bool must_be_heap_allocated
Definition type_traits.hpp:101

The documentation for this struct was generated from the following file: