commons 0.1.5
Header-only C++23 library of common/shared types for the C++ libraries
Loading...
Searching...
No Matches
comms::IHasFlags Class Referenceabstract

Abstract read-only view of a type that owns a FlagSet. More...

#include <flag.hpp>

Inheritance diagram for comms::IHasFlags:

Public Member Functions

virtual const FlagSetflags () const noexcept=0
 The owned flag set (insertion order preserved).
 

Detailed Description

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.


The documentation for this class was generated from the following file: