| Home | Libraries | People | FAQ | More

## Struct template as

boost::xpressive::op::as

## Synopsis

    // In header: <boost/xpressive/regex_actions.hpp>

    template<typename T>
    struct as {
      // types
      typedef T result_type;

      // public member functions
      template<typename Value> T operator()(Value const &) const;
      T operator()(csub_match const &) const;
      T operator()(wcsub_match const &) const;
      template<typename BidiIter>
        T operator()(sub_match< BidiIter > const &) const;

      // private member functions
      template<typename RandIter>
        T impl(sub_match< RandIter > const &, mpl::true_) const;
      template<typename BidiIter>
        T impl(sub_match< BidiIter > const &, mpl::false_) const;
    };

## Description

### `as` public member functions

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

2.     T operator()(csub_match const & val) const;

3.     T operator()(wcsub_match const & val) const;

4.     template<typename BidiIter>
         T operator()(sub_match< BidiIter > const & val) const;

### `as` private member functions

1.     template<typename RandIter>
         T impl(sub_match< RandIter > const & val, mpl::true_) const;

2.     template<typename BidiIter>
         T impl(sub_match< BidiIter > const & val, mpl::false_) const;