cppreference.com
Create account
Namespaces
Variants
Actions
 
 
 
Reflection library
 
Reflection types and queries
Reflection queries
Reflection layout queries
Type properties
Type property queries
 
Defined in header <meta>
consteval bool is_annotation( std::meta::info r );
(since C++26)

Returns true if r represents an annotation. Otherwise returns false.

Parameters

r - a reflection value

Return value

true if r represents an annotation; otherwise false.

Example

See also

obtains the annotations applying to the reflected entity
(function)