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

PrevUpHomeNext

Function lit

boost::proto::lit — A helper function for creating a proto::literal<> wrapper.

Synopsis

// In header: <boost/proto/literal.hpp>


template<typename T> proto::literal< T & > const lit(T & t);
template<typename T> proto::literal< T const & > const lit(T const & t);

Description

Parameters:

t

The object to wrap.

Returns:

proto::literal<T &>(t)

Throws:

Will not throw.

Notes:

The returned value holds the argument by reference.


PrevUpHomeNext