Namespaces
Variants

std::meta::substitute

From cppreference.com
< cpp | meta
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

See also

checks whether the given arguments can be substituted in the given template
(function template) [edit]
returns a reflection representing a value or template parameter object, suitable for use as a constant template argument
(function template) [edit]
returns a reflection representing an object, suitable for use as a constant template argument
(function template) [edit]
returns a reflection representing a function, suitable for use as a constant template argument
(function template) [edit]