std::constructible_from(3)
std::constructible_from(3) π β¨
okay bestie, we are in the C++ Standard Libary and this page is about std::constructible_from, a concept that is lowkey doing the most important vibe check on types. It's giving main character energy: βcan I build a T out of these Args...?β π₯
π NAME π
std::constructible_from - std::constructible_from
β¨ Synopsis β¨
This cutie is defined in header <concepts>, and hereβs the exact synopsis with zero edits, bestie:
Defined in header <concepts>
template< class T, class... Args >
concept constructible_from =
(since C++20)
std::destructible<T> && std::is_constructible_v<T, Args...>;
The constructible_from concept specifies that a variable of type T can be initialized with the given set of argument types Args.... Thatβs the whole assignment, and it ate. π
π See also π
is_constructibleis_trivially_constructibleis_nothrow_constructibleβ checks if a type has a constructor for specific arguments(C++11)(class template)(C++11)(C++11)
Those are the related entries, with every (C++11) and the (class template) marker kept safe and sound. π«Ά
mwah π source/version/date check: http://cppreference.com, 2024.06.10, manual page std::constructible_from(3) β periodt. π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms