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

检查类型是否为函数/Check if type is a function More...

#include <type_traits.hpp>

Static Public Attributes

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

Detailed Description

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

检查类型是否为函数/Check if type is a function

Template Parameters
T要检查的类型/Type to check
void func(int);
static_assert(is_function<decltype(func)>::value);
static_assert(!is_function<int>::value);
static_assert(!is_function<void(*)()>::value);
检查类型是否为函数/Check if type is a function
Definition type_traits.hpp:704
static constexpr bool value
Definition type_traits.hpp:705

Member Data Documentation

◆ value

template<typename T >
constexpr bool toolbox::traits::is_function< T >::value = std::is_function_v<T>
staticconstexpr

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