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

eagine::no_c_api_constant< T, Tag, IsIndexed > Struct Template Reference

Class wrapping a constant with missing or unknown value. More...

#include <eagine/c_api_wrap.hpp>

Public Member Functions

template<typename I >
constexpr auto operator+ (I) const noexcept -> std::enable_if_t<(IsIndexed &&std::is_integral_v< I >), no_enum_value< T, Tag >>
 Adds the specified value to the constant (it it IsIndexed).
 
- Public Member Functions inherited from eagine::c_api_constant_base
constexpr auto name () const noexcept
 Returns the name of the constant as a string.
 
- Public Member Functions inherited from eagine::no_enum_value< T, nothing_t >
constexpr operator T () const noexcept
 Explicit conversion to the value type.
 
constexpr operator bool () const noexcept
 Indicates whether the value is valid or not (always false here).
 

Additional Inherited Members

- Public Types inherited from eagine::no_enum_value< T, nothing_t >
using value_type = T
 The constant or enumerator value type.
 
using tag_type = nothing_t
 The tag type specified as template argument.
 

Detailed Description

template<typename T, typename Tag = nothing_t, bool IsIndexed = false>
struct eagine::no_c_api_constant< T, Tag, IsIndexed >

Class wrapping a constant with missing or unknown 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).