std::constructible_from
De cppreference.com
<tbody>
</tbody>
| Definido en el archivo de encabezado <concepts>
|
||
template < class T, class... Args > concept constructible_from = std::destructible<T> && std::is_constructible_v<T, Args...>; |
(desde C++20) | |
El concepto constructible_from (construible de/a partir de) especifica que una variable de tipo T puede inicializarse con el conjunto de tipos de argumento dado Args....
Referencias
- El estándar C++23 (ISO/IEC 14882:2023):
- 18.4.11 Concepto
constructible_from[concept.constructible]
- 18.4.11 Concepto
- El estándar C++20 (ISO/IEC 14882:2020):
- 18.4.11 Concepto
constructible_from[concept.constructible]
- 18.4.11 Concepto
Véase también
(C++11)(C++11)(C++11) |
Comprueba si un tipo tiene un constructor de argumentos concretos Original: checks if a type has a constructor for specific arguments The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (plantilla de clase) |