std::meta::substitute
From cppreference.com
| Defined in header <meta>
|
||
template< std::meta::reflection_range R = std::initializer_list<std::meta::info> >
consteval std::meta::info substitute( std::meta::info templ, R&& arguments );
|
(since C++26) | |
Let Z denote the template represented by templ, Args... denote the values, types, or templates represented by successive elements of arguments, returns a reflection of Z<Args...>.
Parameters
| templ | - | a reflection of template |
| arguments | - | a range of reflections |
Return value
A reflection of the substitution result.
Exceptions
Throws std::meta::exception unless std::meta::can_substitute(templ, arguments) is true.
Example
| This section is incomplete Reason: no example |
See also
(C++26) |
checks whether the given arguments can be substituted in the given template (function template) |
(C++26) |
returns a reflection representing a value or template parameter object, suitable for use as a constant template argument (function template) |
(C++26) |
returns a reflection representing an object, suitable for use as a constant template argument (function template) |
(C++26) |
returns a reflection representing a function, suitable for use as a constant template argument (function template) |