Namespaces
Variants

std::meta::is_function

From cppreference.com
< cpp | meta
 
 
 
Reflection library
 
Reflection types and queries
Type properties
Type property queries
 
Defined in header <meta>
consteval bool is_function( std::meta::info r );
(since C++26)

Returns true if r represents a function. Otherwise returns false.

Parameters

r - a reflection value

Return value

true if r represents a function; otherwise false.

Example

#include <meta>

static_assert(!is_function(^^std));
static_assert(is_function(^^std::meta::is_function));
// TODO

int main() {}

See also

checks if a type is a function type
(class template) [edit]
checks if reflected entity is a function template
(function) [edit]
checks if reflection represents a function or function type with an ellipsis parameter
(function) [edit]
checks if reflection represents a conversion function
(function) [edit]
checks if reflection represents an operator overload
(function) [edit]
checks if reflection represents a user-defined literal operator
(function) [edit]
checks if reflection represents a special member function
(function) [edit]
checks if the reflected entity is a constructor of this kind
(function) [edit]
checks if the reflected entity is a destructor
(function) [edit]
checks if the reflected entity is an assignment operator of this kind
(function) [edit]
checks if the reflected type can be invoked (as if by std::invoke) with the given argument types
(function template) [edit]