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

检查类型是否为指针/Check if type is a pointer More...

#include <type_traits.hpp>

Static Public Attributes

static constexpr bool value = std::is_pointer_v<T>
 

Detailed Description

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

检查类型是否为指针/Check if type is a pointer

Template Parameters
T要检查的类型/Type to check
static_assert(is_pointer<int*>::value);
static_assert(is_pointer<void*>::value);
static_assert(!is_pointer<int>::value);
static_assert(!is_pointer<int&>::value);
检查类型是否为指针/Check if type is a pointer
Definition type_traits.hpp:748

Member Data Documentation

◆ value

template<typename T >
constexpr bool toolbox::traits::is_pointer< T >::value = std::is_pointer_v<T>
staticconstexpr

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