std::constructible_from
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Concepts library
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)
constructible_from
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Exposition-only concepts
(C++20)
Defined in header
<concepts>
template< class T, class... Args >
(since C++20)
concept constructible_from =
The constructible_from
concept specifies that a variable of type T
can be initialized with the given set of argument types Args...
.
[edit] References
- C++23 standard (ISO/IEC 14882:2024):
- 18.4.11 Concept
constructible_from
[concept.constructible]
- 18.4.11 Concept
- C++20 standard (ISO/IEC 14882:2020):
- 18.4.11 Concept
constructible_from
[concept.constructible]
- 18.4.11 Concept
[edit] See also
(C++11)(C++11)(C++11)
(class template) [edit]