Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::universal::integral_constant< Ty, val > Struct Template Reference

#include <integral_constant.hpp>

Public Types

using value_type = Ty
using type = integral_constant

Public Member Functions

constexpr operator value_type () const noexcept
constexpr value_type operator() () const noexcept

Static Public Attributes

static constexpr Ty value = val

Member Typedef Documentation

◆ type

template<typename Ty, Ty val>
using sw::universal::integral_constant< Ty, val >::type = integral_constant

◆ value_type

template<typename Ty, Ty val>
using sw::universal::integral_constant< Ty, val >::value_type = Ty

Member Function Documentation

◆ operator value_type()

template<typename Ty, Ty val>
sw::universal::integral_constant< Ty, val >::operator value_type ( ) const
inlineconstexprnoexcept

◆ operator()()

template<typename Ty, Ty val>
value_type sw::universal::integral_constant< Ty, val >::operator() ( ) const
inlineconstexprnoexcept

Member Data Documentation

◆ value

template<typename Ty, Ty val>
Ty sw::universal::integral_constant< Ty, val >::value = val
staticconstexpr

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