Spec-Zone.ru › C++

std::meta::reflect_object

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

reflect_constant
(C++26)
returns a reflection representing a value or template parameter object, suitable for use as a constant template argument
(function template)
reflect_function
(C++26)
returns a reflection representing a function, suitable for use as a constant template argument
(function template)
substitute
(C++26)
substitutes reflected arguments in the reflected template
(function template)
is_object_type
(C++26)
checks if reflected type is an object type
(function)

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

Spec-Zone.ru

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