Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::xpressive::op::as< T > Struct Template Reference

as<> is a PolymorphicFunctionObject for lexically casting a parameter to a different type. More...

#include <xpressive_fwd.hpp>

Public Types

typedef T result_type
 

Public Member Functions

template<typename Value >
T operator() (Value const &val) const
 
T operator() (csub_match const &val) const
 INTERNAL ONLY. More...
 
T operator() (wcsub_match const &val) const
 INTERNAL ONLY. More...
 
template<typename BidiIter >
T operator() (sub_match< BidiIter > const &val) const
 INTERNAL ONLY. More...
 

Detailed Description

template<typename T>
struct boost::xpressive::op::as< T >

as<> is a PolymorphicFunctionObject for lexically casting a parameter to a different type.

Template Parameters
TThe type to which to lexically cast the parameter.

Member Typedef Documentation

template<typename T >
typedef T boost::xpressive::op::as< T >::result_type

Member Function Documentation

template<typename T >
template<typename Value >
T boost::xpressive::op::as< T >::operator() ( Value const &  val) const
inline
Parameters
valThe value to lexically cast.
Returns
boost::lexical_cast<T>(val)

References boost::lexical_cast(), T, and boost::xpressive::val().

template<typename T >
T boost::xpressive::op::as< T >::operator() ( csub_match const &  val) const
inline
template<typename T >
T boost::xpressive::op::as< T >::operator() ( wcsub_match const &  val) const
inline

INTERNAL ONLY.

template<typename T >
template<typename BidiIter >
T boost::xpressive::op::as< T >::operator() ( sub_match< BidiIter > const &  val) const
inline

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