Namespaces
Variants

std::meta::is_variable

From cppreference.com
< cpp | meta
 
 
 
Reflection library
 
Reflection types and queries
Type properties
Type property queries
 
Defined in header <meta>
consteval bool is_variable( std::meta::info r );
(since C++26)

Returns true if r represents a variable. Otherwise returns false.

Parameters

r - a reflection value

Return value

true if r represents a variable; otherwise false.

Example

See also

(C++26)
checks if reflection represents a static object
(function) [edit]
(C++26)
checks if reflection represents a (scalar) value
(function) [edit]
Morty Proxy This is a proxified and sanitized view of the page, visit original site.