close
Namespaces
Variants

std::meta::reflect_object

From cppreference.com
< cpp | meta
 
 
Metaprogramming library
Type traits
Type categories
(C++11)
(C++11)(DR*)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11) 
(C++11)
(C++11)
Type properties
(C++11)
(C++11)
(C++14)
(C++11)(deprecated in C++26)
(C++11)(until C++20*)
(C++11)(deprecated in C++20)
(C++11)
Type trait constants
Metafunctions
(C++17)
Supported operations
Relationships and property queries
Type modifications
(C++11)(C++11)(C++11)
Type transformations
(C++11)(deprecated in C++23)
(C++11)(deprecated in C++23)
(C++11)
(C++11)(until C++20*)(C++17)

(C++11)
(C++17)
Compile-time rational arithmetic
Compile-time integer sequences
 
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