Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::proto::utility::literal< T, Domain > Struct Template Reference

A simple wrapper for a terminal, provided for ease of use. More...

#include <proto_fwd.hpp>

Inheritance diagram for boost::proto::utility::literal< T, Domain >:
Collaboration diagram for boost::proto::utility::literal< T, Domain >:

Public Types

typedef detail::term_traits< T >
::value_type 
value_type
 
typedef detail::term_traits< T >
::reference 
reference
 
typedef detail::term_traits< T >
::const_reference 
const_reference
 

Public Member Functions

 literal ()
 
template<typename U >
 literal (U &u)
 
template<typename U >
 literal (U const &u)
 
template<typename U >
 literal (literal< U, Domain > const &u)
 
reference get ()
 
const_reference get () const
 

Detailed Description

template<typename T, typename Domain>
struct boost::proto::utility::literal< T, Domain >

A simple wrapper for a terminal, provided for ease of use.

A simple wrapper for a terminal, provided for ease of use. In all cases, literal<X> l(x); is equivalent to terminal<X>::type l = {x};.

The Domain template parameter defaults to proto::default_domain.

Member Typedef Documentation

template<typename T, typename Domain>
typedef detail::term_traits<T>::const_reference boost::proto::utility::literal< T, Domain >::const_reference
template<typename T, typename Domain>
typedef detail::term_traits<T>::reference boost::proto::utility::literal< T, Domain >::reference
template<typename T, typename Domain>
typedef detail::term_traits<T>::value_type boost::proto::utility::literal< T, Domain >::value_type

Constructor & Destructor Documentation

template<typename T, typename Domain>
boost::proto::utility::literal< T, Domain >::literal ( )
inline
template<typename T, typename Domain>
template<typename U >
boost::proto::utility::literal< T, Domain >::literal ( U &  u)
inline
template<typename T, typename Domain>
template<typename U >
boost::proto::utility::literal< T, Domain >::literal ( U const &  u)
inline
template<typename T, typename Domain>
template<typename U >
boost::proto::utility::literal< T, Domain >::literal ( literal< U, Domain > const &  u)
inline

Member Function Documentation

template<typename T, typename Domain>
reference boost::proto::utility::literal< T, Domain >::get ( )
inline

References boost::proto::value().

template<typename T, typename Domain>
const_reference boost::proto::utility::literal< T, Domain >::get ( ) const
inline

References boost::proto::value().


The documentation for this struct was generated from the following file: