std:: constructible_from
From cppreference.net
C++
Concepts library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||
|
Definido en el encabezado
<concepts>
|
||
|
template
<
class
T,
class
...
Args
>
concept constructible_from
=
|
(desde C++20) | |
El concepto
constructible_from
especifica que una variable de tipo
T
puede ser inicializada con el conjunto dado de tipos de argumentos
Args...
.
Referencias
- Estándar C++23 (ISO/IEC 14882:2024):
-
-
18.4.11 Concepto
constructible_from[concept.constructible]
-
18.4.11 Concepto
- 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)
|
verifica si un tipo tiene un constructor para argumentos específicos
(plantilla de clase) |