Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
strong_typedef.hpp File Reference
#include <boost/config.hpp>
#include <boost/operators.hpp>
Include dependency graph for strong_typedef.hpp:
This graph shows which files directly or indirectly include this file:

Macros

#define BOOST_STRONG_TYPEDEF(T, D)
 

Macro Definition Documentation

#define BOOST_STRONG_TYPEDEF (   T,
 
)
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: operators.hpp:407
T
Definition: mem_fn_cc.hpp:25
bool operator==(const array< T, N > &x, const array< T, N > &y)
Definition: array.hpp:342
cpp_int_backend & operator=(const cpp_int_backend< MinBits2, MaxBits2, SignType2, Checked2, Allocator2 > &other)
Definition: cpp_int.hpp:1117
bool operator<(const array< T, N > &x, const array< T, N > &y)
Definition: array.hpp:346
in t
Definition: flyweight.hpp:430