Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct first

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

Synopsis

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


struct first {
  // member classes/structs/unions
  template<typename Sig> 
  struct result {
  };
  template<typename This, typename Pair> 
  struct result<> {
    // types
    typedef  ;
  };

  // public member functions
  template<typename Pair>  () ;
};

Description

first public member functions

  1. template<typename Pair>  ( p) ;

    Parameters:

    p

    The pair from which to fetch the first element.

    Returns:

    p.first


PrevUpHomeNext