Spec-Zone.ru › C++

std::meta::is_function

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

is_function
(C++11)
checks if a type is a function type
(class template)
is_function_template
(C++26)
checks if reflected entity is a function template
(function)
is_vararg_function
(C++26)
checks if reflection represents a function or function type with an ellipsis parameter
(function)
is_conversion_function
(C++26)
checks if reflection represents a conversion function
(function)
is_operator_function
(C++26)
checks if reflection represents an operator overload
(function)
is_literal_operator
(C++26)
checks if reflection represents a user-defined literal operator
(function)
is_special_member_function
(C++26)
checks if reflection represents a special member function
(function)
is_constructoris_default_constructoris_copy_constructoris_move_constructor
(C++26)(C++26)(C++26)(C++26)
checks if the reflected entity is a constructor of this kind
(function)
is_destructor
(C++26)
checks if the reflected entity is a destructor
(function)
is_assignmentis_copy_assignmentis_move_assignment
(C++26)(C++26)(C++26)
checks if the reflected entity is an assignment operator of this kind
(function)
is_invocable_typeis_invocable_r_typeis_nothrow_invocable_typeis_nothrow_invocable_r_type
(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)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/meta/is_function

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API