Macros
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:

Go to the source code of this file.

Macros

#define BOOST_STRONG_TYPEDEF(T, D)
 

Macro Definition Documentation

◆ BOOST_STRONG_TYPEDEF

#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 at line 28 of file strong_typedef.hpp.

boost::operator<
bool operator<(optional< T > const &x, optional< T > const &y)
Definition: optional_relops.hpp:33
T
T
Definition: mem_fn_cc.hpp:25
boost::operators_impl::totally_ordered1
Definition: operators.hpp:413
boost::operator==
BOOST_CONSTEXPR bool operator==(arg< I > const &, arg< I > const &)
Definition: bind/arg.hpp:41


sick_visionary_ros
Author(s): SICK AG TechSupport 3D Snapshot
autogenerated on Thu Feb 8 2024 03:56:21