17#ifndef MIR_INT_WRAPPER_H_
18#define MIR_INT_WRAPPER_H_
24template<
typename Tag,
typename ValueType=
int>
30 explicit constexpr IntWrapper(ValueType value) : value(value) {}
31 ValueType
constexpr as_value()
const {
return value; }
37template<
typename Tag,
typename ValueType>
44template<
typename Tag,
typename ValueType>
50template<
typename Tag,
typename ValueType>
56template<
typename Tag,
typename ValueType>
62template<
typename Tag,
typename ValueType>
68template<
typename Tag,
typename ValueType>
78template<
typename Tag,
typename ValueType>
84 return self(
id.as_value());
Definition int_wrapper.h:26
constexpr IntWrapper(ValueType value)
Definition int_wrapper.h:30
ValueType constexpr as_value() const
Definition int_wrapper.h:31
constexpr IntWrapper()
Definition int_wrapper.h:28
Definition splash_session.h:22
constexpr bool operator<=(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition int_wrapper.h:57
constexpr bool operator!=(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition int_wrapper.h:51
constexpr bool operator>=(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition int_wrapper.h:63
std::ostream & operator<<(std::ostream &out, IntWrapper< Tag, ValueType > const &value)
Definition int_wrapper.h:38
constexpr bool operator==(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition int_wrapper.h:45
constexpr bool operator<(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition int_wrapper.h:69