Holder for the is-most-derived flag. More...
#include <IsMostDerivedFlag.h>
Public Member Functions | |
IsMostDerivedFlag (bool flag) | |
IsMostDerivedFlag (const IsMostDerivedFlag &) | |
operator bool () const | |
IsMostDerivedFlag & | operator= (const IsMostDerivedFlag &) |
IsMostDerivedFlag & | operator= (bool flag) |
Holder for the is-most-derived flag.
This acts like a bool, except that when the class containing it gets copied via a copy/move constructor, it is initialized to false. This allows us to maintain the flags when the containers have only implicit copy constructors for the derived classes. After copy construction, the flags will get set correctly by the first call to testInsert
.