Boost C++ Libraries

...one 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 a snapshot of the develop branch, built from commit c5994560ca.
PrevUpHomeNext

Struct template reference

boost::cnv::reference

Synopsis

// In header: <boost/convert.hpp>

template<typename Converter, typename TypeOut, typename TypeIn> 
struct reference {
  // types
  typedef reference this_type;

  // construct/copy/destruct
  reference(Converter const &);
  reference(Converter &&);

  // public member functions
  this_type & value_or(TypeOut const &);
  TypeOut operator()(TypeIn const &) const;
};

Description

reference public construct/copy/destruct

  1. reference(Converter const & cnv);
  2. reference(Converter && cnv);

reference public member functions

  1. this_type & value_or(TypeOut const & fallback);
  2. TypeOut operator()(TypeIn const & value_in) const;

PrevUpHomeNext