Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
takum_traits.hpp File Reference
#include <type_traits>
#include <universal/traits/integral_constant.hpp>

Classes

struct  sw::universal::is_takum_trait< _Ty >
struct  sw::universal::is_takum_trait< takum< nbits, rbits, BlockType > >
struct  sw::universal::is_takum_log_trait< _Ty >
struct  sw::universal::is_takum_log_trait< takum_log< nbits, rbits, BlockType > >

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Typedefs

template<typename _Ty>
using sw::universal::enable_if_takum = std::enable_if_t<is_takum<_Ty>, _Ty>
template<typename _Ty>
using sw::universal::enable_if_takum_log = std::enable_if_t<is_takum_log<_Ty>, _Ty>
template<typename _Ty>
using sw::universal::enable_if_any_takum = std::enable_if_t<is_any_takum<_Ty>, _Ty>

Variables

template<typename _Ty>
constexpr bool sw::universal::is_takum = is_takum_trait<_Ty>::value
template<typename _Ty>
constexpr bool sw::universal::is_takum_log = is_takum_log_trait<_Ty>::value
template<typename _Ty>
constexpr bool sw::universal::is_any_takum = is_takum<_Ty> || is_takum_log<_Ty>