STD::_ENABLE_DESTRUCTOR(3cxx)

πŸ’– NAME πŸ’–

std::_Enable_destructor< _Switch, _Tag > β€” a lil mixin helper whose whole job is to conditionally enable or disable the default destructor. That's it, that's the gig. πŸŽ€

This page lives in the 3cxx manual, bestie, so you know it's C++ library territory. ✨


🌸 SYNOPSIS 🌸

#include <enable_special_members.h>

And heads up β€” it's inherited by:

std::_Enable_special_members< _Default, _Destructor, _Copy, _CopyAssignment, _Move, _MoveAssignment, _Tag >

...but privately, so mind your business about it. πŸ™ˆ


πŸ¦‹ DETAILED DESCRIPTION πŸ¦‹

✨ Template Declaration ✨

template<bool _Switch, typename _Tag = void>
struct std::_Enable_destructor< _Switch, _Tag >

A mixin helper to conditionally enable or disable the default destructor. Literally what it says on the tin β€” _Switch decides, and _Tag defaults to void so you don't even have to think about it. πŸ‘‘

πŸ”Ž See also

  • _Enable_special_members

iykyk, they run together. 🫢


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. Not a human, just a robot doing its little thing and honestly? Slay. πŸ€–πŸ’…


okay that's the whole page, no cap β€” source is libstdc++, manual section 3cxx, and this came off the Doxygen pipeline. bye bestie, go enable some destructors (or don't, that's literally the point) πŸ’œβœ¨

πŸ“¦ where this page comes from