std:: constructible_from
From cppreference.net
C++
Concepts library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||
|
Definiert im Header
<concepts>
|
||
|
template
<
class
T,
class
...
Args
>
concept constructible_from
=
|
(seit C++20) | |
Das
constructible_from
Konzept spezifiziert, dass eine Variable vom Typ
T
mit den gegebenen Argumenttypen
Args...
initialisiert werden kann.
Referenzen
- C++23-Standard (ISO/IEC 14882:2024):
-
-
18.4.11 Konzept
constructible_from[concept.constructible]
-
18.4.11 Konzept
- C++20-Standard (ISO/IEC 14882:2020):
-
-
18.4.11 Konzept
constructible_from[concept.constructible]
-
18.4.11 Konzept
Siehe auch
|
(C++11)
(C++11)
(C++11)
|
prüft, ob ein Typ einen Konstruktor für spezifische Argumente besitzt
(Klassentemplate) |