...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::is_reference_wrapper — Determine if a type T
is an instantiation of reference_wrapper
.
// In header: <boost/ref.hpp> template<typename T> class is_reference_wrapper { public: // static constants static const bool value = unspecified; };
The value
static
constant will be true
iff the
type T
is a specialization of
reference_wrapper
.