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

eagine::any_enum_value< LibId > Struct Template Reference

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

#include <eagine/enum_class.hpp>

Public Member Functions

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

Friends

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

Detailed Description

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

Type erasure for instantiations of enum_value from a specified library.

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

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).