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::const_cast_< T > Struct Template Reference

const_cast_<> is a PolymorphicFunctionObject for const-casting a parameter to a cv qualification. More...

#include <xpressive_fwd.hpp>

Public Types

typedef T result_type
 

Public Member Functions

template<typename Value >
T operator() (Value const &val) const
 

Detailed Description

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

const_cast_<> is a PolymorphicFunctionObject for const-casting a parameter to a cv qualification.

Template Parameters
TThe type to which to const-cast the parameter.

Member Typedef Documentation

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

Member Function Documentation

template<typename T >
template<typename Value >
T boost::xpressive::op::const_cast_< T >::operator() ( Value const &  val) const
inline
Parameters
valThe value to const-cast.
Precondition
Types T and Value differ only in cv-qualification.
Returns
const_cast<T>(val)

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


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