LibreOffice Module o3tl (master) 1
Classes | Public Types | Static Public Attributes | List of all members
o3tl::is_typed_flags< E, M > Struct Template Reference

Mark a (scoped) enumeration as a set of bit flags, with accompanying operations. More...

#include <typed_flags_set.hxx>

Classes

class  Wrap
 

Public Types

typedef E Self
 

Static Public Attributes

static std::underlying_type< E >::type const mask = M
 

Detailed Description

template<typename E, typename std::underlying_type< E >::type M>
struct o3tl::is_typed_flags< E, M >

Mark a (scoped) enumeration as a set of bit flags, with accompanying operations.

template<> struct o3tl::typed_flags<TheE>: o3tl::is_typed_flags<TheE, TheM> {};

All relevant values must be non-negative. (Typically, the enumeration's underlying type will either be fixed and unsigned, or it will be unfixed— and can thus default to a signed type—and all enumerators will have non- negative values.)

Parameters
Ethe enumeration type.
Mthe all-bits-set value for the bit flags.

Definition at line 65 of file typed_flags_set.hxx.

Member Typedef Documentation

◆ Self

template<typename E , typename std::underlying_type< E >::type M>
typedef E o3tl::is_typed_flags< E, M >::Self

Definition at line 69 of file typed_flags_set.hxx.

Member Data Documentation

◆ mask

template<typename E , typename std::underlying_type< E >::type M>
std::underlying_type<E>::type const o3tl::is_typed_flags< E, M >::mask = M
static

Definition at line 98 of file typed_flags_set.hxx.


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