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 an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Struct template reference<Converter, TypeOut, void>

boost::cnv::reference<Converter, TypeOut, void>

Synopsis

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

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

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

  // public member functions
  this_type & value_or(TypeOut const &);
  template<typename TypeIn> TypeOut operator()(TypeIn const &);
};

Description

reference public construct/copy/destruct

  1. reference(Converter const & cnv);

reference public member functions

  1. this_type & value_or(TypeOut const & fallback);
  2. template<typename TypeIn> TypeOut operator()(TypeIn const & value_in);

PrevUpHomeNext