Spec-Zone.ru › C++

std::meta::substitute

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

can_substitute
(C++26)
checks whether the reflected arguments can be substituted in the reflected template
(function template)
reflect_constant
(C++26)
returns a reflection representing a value or template parameter object, suitable for use as a constant template argument
(function template)
reflect_object
(C++26)
returns a reflection representing an object, suitable for use as a constant template argument
(function template)
reflect_function
(C++26)
returns a reflection representing a function, suitable for use as a constant template argument
(function template)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/meta/substitute

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API