OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine::any_enum_class< LibId > Struct Template Reference

Type erasure for instantiations of enum_class from a specified library. More...

#include <eagine/enum_class.hpp>

Public Member Functions

constexpr any_enum_class () noexcept=default
 Default constructor.
 
template<typename Self , typename T , identifier_t Id>
constexpr any_enum_class (const enum_class< Self, T, LibId, Id > &) noexcept
 Construction from enum_class from the same "library" or API.
 
constexpr any_enum_class (const any_enum_value< LibId > &aev) noexcept
 Construction from any_enum_value from the same "library" or API.
 
constexpr operator bool () const noexcept
 Indicates if this is a valid enumeration class.
 

Friends

auto operator== (const any_enum_class &a, const any_enum_class &b) noexcept
 Equality comparison.
 
auto operator!= (const any_enum_class &a, const any_enum_class &b) noexcept
 Nonequality comparison.
 

Detailed Description

template<identifier_t LibId>
struct eagine::any_enum_class< LibId >

Type erasure for instantiations of enum_class from a specified library.

Template Parameters
LibIdunique identifier of a "library" or API the enums belong to.
See also
enum_class
any_enum_value

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

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).