A simple wrapper for a terminal, provided for ease of use. More...
#include <proto_fwd.hpp>
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 |
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
.
typedef detail::term_traits<T>::const_reference boost::proto::utility::literal< T, Domain >::const_reference |
typedef detail::term_traits<T>::reference boost::proto::utility::literal< T, Domain >::reference |
typedef detail::term_traits<T>::value_type boost::proto::utility::literal< T, Domain >::value_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References boost::proto::value().
|
inline |
References boost::proto::value().