|
commons 0.1.5
Header-only C++23 library of common/shared types for the C++ libraries
|
Abstract read-only view of a type that owns a FlagSet.
More...
#include <flag.hpp>

Public Member Functions | |
| virtual const FlagSet & | flags () const noexcept=0 |
| The owned flag set (insertion order preserved). | |
Abstract read-only view of a type that owns a FlagSet.
Lets a caller hold a const IHasFlags&/* to any flag owner — a HasFlags holder or a FlagBuilderGetters builder — and query it polymorphically. The single pure virtual is flags(); the has_flag helpers are built on top of it.