std::meta::is_function
From cppreference.com
| 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
Run this code
#include <meta>
static_assert(!is_function(^^std));
static_assert(is_function(^^std::meta::is_function));
// TODO
int main() {}
See also
(C++11) |
checks if a type is a function type (class template) |
(C++26) |
checks if reflected entity is a function template (function) |
(C++26) |
checks if reflection represents a function or function type with an ellipsis parameter (function) |
(C++26) |
checks if reflection represents a conversion function (function) |
(C++26) |
checks if reflection represents an operator overload (function) |
(C++26) |
checks if reflection represents a user-defined literal operator (function) |
(C++26) |
checks if reflection represents a special member function (function) |
(C++26)(C++26)(C++26)(C++26) |
checks if the reflected entity is a constructor of this kind (function) |
(C++26) |
checks if the reflected entity is a destructor (function) |
(C++26)(C++26)(C++26) |
checks if the reflected entity is an assignment operator of this kind (function) |
(C++26)(C++26)(C++26)(C++26) |
checks if the reflected type can be invoked (as if by std::invoke) with the given argument types (function template) |