Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit dcea408971.
PrevUpHomeNext

Struct second

boost::xpressive::op::second — second is a PolymorphicFunctionObject for fetching the second element of a pair.

Synopsis

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


struct second {
  // member classes/structs/unions
  template<typename Sig> 
  struct result {
  };
  template<typename This, typename Pair> 
  struct result<This(Pair)> {
    // types
    typedef remove_reference< Pair >::type::second_type type;
  };

  // public member functions
  template<typename Pair> Pair::second_type operator()(Pair const &) const;
};

Description

second public member functions

  1. template<typename Pair> Pair::second_type operator()(Pair const & p) const;

    Parameters:

    p

    The pair from which to fetch the second element.

    Returns:

    p.second


PrevUpHomeNext