Struct template literalboost::proto::literal — A simple wrapper for a terminal, provided for ease of use. Synopsistemplate<typename T, typename Domain = proto::default_domain> struct literal : proto::extends<typename proto::terminal<T>::type, proto::literal<T, Domain>, Domain> { // types typedef typename proto::terminal<T>::type X; // For exposition only typedef typename proto::result_of::value<X>::type value_type; typedef typename proto::result_of::value<X &>::type reference; typedef typename proto::result_of::value<X const &>::type const_reference; // construct/copy/destruct template<typename U> literal(U &); template<typename U> literal(U const &); template<typename U> literal(proto::literal< U, Domain > const &); // public member functions reference get(); const_reference get() const; }; Description
A simple wrapper for a terminal, provided for ease of use. In all cases,
The
|
Returns: |
proto::value(*this) |
const_reference get() const;
Returns: |
proto::value(*this) |