Namespaces
Variants

std::meta::reflect_object

From cppreference.com
< cpp | meta
Defined in header <meta>
template< class T >
consteval std::meta::info reflect_object( T& expr );
(since C++26)

Returns a reflection that represents the object referred to by expr.

The program is ill-formed if T is not an object type.

Parameters

r - an lvalue that refers to a valid object

Return value

A reflection that represents an object.

Exceptions

Throws std::meta::exception unless a glvalue constant expression E that refers to the object expr is a valid template argument for a template parameter of type T&.

Example

See also

returns a reflection representing a value or template parameter object, suitable for use as a constant template argument
(function template) [edit]
returns a reflection representing a function, suitable for use as a constant template argument
(function template) [edit]
substitutes the given arguments in the given template, and returns a reflection of the result of substitution
(function template) [edit]