30#ifndef TINS_SMALL_UINT_H
31#define TINS_SMALL_UINT_H
39 const char* what()
const throw() {
40 return "Value is too large";
54 template<
bool cond,
typename OnTrue,
typename OnFalse>
59 template<
typename OnTrue,
typename OnFalse>
66 typedef typename if_then_else<
69 typename if_then_else<
72 typename if_then_else<
81 template<u
int64_t base, u
int64_t pow>
86 template<u
int64_t base>
87 struct power<
base, 0> {
Represents a range of addresses.
Definition address_range.h:167
Represents a field of n bits.
Definition small_uint.h:52
static const repr_type max_value
Definition small_uint.h:99
small_uint()
Definition small_uint.h:104
best_type< n >::type repr_type
Definition small_uint.h:94
small_uint(repr_type val)
Copy constructs the stored value.
Definition small_uint.h:114
Definition small_uint.h:37
The Tins namespace.
Definition address_range.h:38