std::experi...onstructible(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

std::experi...onstructible(3)

okay bestie, welcome to std::experi...onstructible(3) from the C++ Standard Libary manual πŸ’–βœ¨ yes, that spelling is staying exactly as-is, no cap.


🌸 NAME 🌸

std::experimental::ranges::DefaultConstructible β€” std::experimental::ranges::DefaultConstructible

yup, the NAME section literally repeats it twice, and we respect the iconique duplication πŸ«ΆπŸ’…


✨ Synopsis ✨

Defined in header <experimental/ranges/concepts> πŸŽ€

template< class T >                                    (ranges TS)
concept bool DefaultConstructible = Constructible<T>;

so the DefaultConstructible concept is literally a shorthand for the common case where the question is: can this type be constructed with no arguments? πŸ‘‘βœ¨


πŸ¦‹ See also πŸ¦‹

  • Constructible β€” specifies that a variable of the type can be constructed from or bound to a set of argument types (concept)
  • is_default_constructible (C++11) β€” checks if a type has a default constructor (class template)
  • is_trivially_default_constructible (C++11) β€” checks if a type has a default constructor (class template)
  • is_nothrow_default_constructible (C++11) β€” checks if a type has a default constructor (class template)

mwah πŸ’‹ this cutie was sourced from http://cppreference.com, dated 2024.06.10 β€” and that’s the whole page, bestie πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from