Go to the documentation of this file.
19 #ifndef MIR_INT_WRAPPER_H_
20 #define MIR_INT_WRAPPER_H_
26 template<
typename Tag,
typename ValueType=
int>
32 explicit constexpr
IntWrapper(ValueType value) : value(value) {}
33 ValueType constexpr
as_value()
const {
return value; }
39 template<
typename Tag,
typename ValueType>
46 template<
typename Tag,
typename ValueType>
52 template<
typename Tag,
typename ValueType>
58 template<
typename Tag,
typename ValueType>
64 template<
typename Tag,
typename ValueType>
70 template<
typename Tag,
typename ValueType>
80 template<
typename Tag,
typename ValueType>
86 return self(
id.as_value());
91 #endif // MIR_INT_WRAPPER_H_
constexpr bool operator>=(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition: int_wrapper.h:65
constexpr IntWrapper()
Definition: int_wrapper.h:30
constexpr IntWrapper(ValueType value)
Definition: int_wrapper.h:32
constexpr bool operator<=(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition: int_wrapper.h:59
Definition: splash_session.h:24
constexpr bool operator<(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition: int_wrapper.h:71
constexpr bool operator==(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition: int_wrapper.h:47
constexpr std::size_t operator()(::mir::IntWrapper< Tag, ValueType > const &id) const
Definition: int_wrapper.h:84
constexpr bool operator!=(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition: int_wrapper.h:53
constexpr ValueType as_value() const
Definition: int_wrapper.h:33
Definition: int_wrapper.h:28
std::ostream & operator<<(std::ostream &out, IntWrapper< Tag, ValueType > const &value)
Definition: int_wrapper.h:40
Copyright © 2012-2020
Canonical Ltd.
Generated on Sun Sep 27 19:03:53 UTC 2020
This documentation is licensed under the GPL version 2 or 3.