Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::constructible_from

The constructible_from concept specifies that a variable of type T can be initialized with the given set of argument types Args....

Concepts
  • C++11
  • C++20
1 min readView on cppreference
NotebookLM
Defined in header <concepts>
template< class T, class... Args >
concept constructible_from =
    std::destructible<T> && std::is_constructible_v<T, Args...>;
(since C++20)

The constructible_from concept specifies that a variable of type T can be initialized with the given set of argument types Args....

References

  • C++23 standard (ISO/IEC 14882:2024):
  • 18.4.11 Concept constructible_from [concept.constructible]
  • C++20 standard (ISO/IEC 14882:2020):
  • 18.4.11 Concept constructible_from [concept.constructible]

See also

checks if a type has a constructor for specific arguments
(class template)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.