Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Struct template is_reference_wrapper

boost::is_reference_wrapper — Determine if a type T is an instantiation of reference_wrapper.


// In header: <boost/core/ref.hpp>

template<typename T> 
struct is_reference_wrapper {

  // public data members
  static constexpr bool value;


The value static constant will be true if the type T is a specialization of reference_wrapper.