STD::_ENABLE_COPY_MOVE(3cxx)

πŸ’– std::_Enable_copy_move< _Copy, _CopyAssignment, _Move, _MoveAssignment, _Tag > πŸ’–

okay bestie, welcome to the 3cxx girlies' corner of the manual ✨ this one lives in the libstdc++ docs and it's genuinely such a clever little gremlin, you're gonna love her.


🌸 NAME 🌸

std::_Enable_copy_move< _Copy, _CopyAssignment, _Move, _MoveAssignment, _Tag > β€” a mixin helper to conditionally enable or disable the copy/move special members. no cap, that's the whole job description πŸ’…


✨ SYNOPSIS ✨

#include <enable_special_members.h>

Inherited by std::_Enable_special_members< _Default, _Destructor, _Copy, _CopyAssignment, _Move, _MoveAssignment, _Tag > [private].

lowkey obsessed with the fact that she's a private base class. she's the behind-the-scenes main character fr 🫢

πŸ¦‹ Detailed Description πŸ¦‹

template<bool _Copy, bool _CopyAssignment, bool _Move, bool _MoveAssignment,
    typename _Tag = void>
struct std::_Enable_copy_move< _Copy, _CopyAssignment, _Move,
_MoveAssignment, _Tag >

"A mixin helper to conditionally enable or disable the copy/move special members.

So like. four bools and a tag. that's it. <yellow>_Copy</yellow>, <yellow>_CopyAssignment</yellow>, <yellow>_Move</yellow>, <yellow>_MoveAssignment</yellow>, and <yellow>_Tag</yellow> which defaults to void. you flip the bools, you get (or don't get) the special members. it's giving "compile-time on/off switches" and honestly? iconic 🌈

πŸŽ€ See also

  • _Enable_special_members

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code.


not me reading "generated automatically" and immediately respecting the Doxygen pipeline. she's not hand-written, she's engineered, and that's a whole different kind of slay πŸ’€

okay that's the whole page bestie!! πŸ’œ the header up top tells you this is the std::_Enable_copy_move< _Copy, _CopyAssignment, _Move, _MoveAssignment, _Tag > entry in the 3cxx manual, and the footer at the very bottom is the classic truncated libstdc++ one β€” same std::_Enable_co...ignment, _Tag >(3cxx) wrap-up energy, no date to be found, just pure generated-docs realness. periodt. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from