From cppreference.com
| Defined in header <meta>
|
||
consteval std::string_view display_string_of( std::meta::info r );
|
(1) | (since C++26) |
consteval std::u8string_view u8display_string_of( std::meta::info r );
|
(2) | (since C++26) |
Returns an implementation-defined string. Implementations are encouraged to produce text that is helpful in identifying what r represents.
Parameters
| r | - | a reflection value |
Return value
An implementation-defined string. Where possible, the string should be suitable for identifying the represented construct.
Notes
The result V is null-terminated: V.data()[V.size()] is guaranteed to be '\0'. Each element in V is a potentially non-unique object with static storage duration that is usable in constant expressions; a pointer to such an element is not suitable for use as a template argument for a non-type template parameter of pointer type.
Example
| This section is incomplete Reason: no example |
See also
(C++26) |
if the reflected entity has an identifier, obtains its name (function) |