std::default_initializable(3cxx)

πŸ“¦
version 16-20260322 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

🌸 NAME 🌸

std::default_initializable β€” ok bestie, this is the [concept.defaultinitializable] vibe, aka the concept known as default_initializable. that's it, that's the name, she's iconic πŸ’…


✨ SYNOPSIS ✨

first things first, you gotta bring her in:

#include <concepts>

πŸŽ€ Concept definition πŸŽ€

here's the whole look, no notes, copy it exactly:

template<typename _Tp>
concept std::default_initializable =  constructible_from<_Tp>
      && requires
      {
        _Tp{};
        (void) ::new _Tp;
      }

πŸ’– Detailed Description πŸ’–

[concept.defaultinitializable], concept default_initializable. yeah. that's the whole description fr fr. short queen energy, she said what she said πŸ’€


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. (so like, not a human, a robot wrote this, and honestly? slay πŸ€–βœ¨)


and that's the page bestie!! brought to you by libstdc++ and the std::default_initializable(3cxx) section of the manual πŸ’– no cap, go forth and default-initialize responsibly, ily, bye!! πŸ¦‹πŸŒΈπŸ’