Go to the source code of this file.
◆ BOOST_STRONG_TYPEDEF
| #define BOOST_STRONG_TYPEDEF |
( |
|
T, |
|
|
|
D |
|
) |
| |
Value:struct D \
, boost::totally_ordered2< D, T \
> > \
{ \
T t; \
explicit D(
const T t_) : t(t_) {}; \
D(): t() {}; \
D(const D & t_) : t(t_.t){} \
D & operator=(const D & rhs) { t = rhs.t; return *this;} \
D & operator=(
const T & rhs) { t = rhs;
return *
this;} \
operator
const T & ()
const {
return t; } \
operator
T & () {
return t; } \
bool
operator==(
const D & rhs)
const {
return t == rhs.t; } \
bool
operator<(
const D & rhs)
const {
return t < rhs.t; } \
};
Definition at line 28 of file strong_typedef.hpp.