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
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms