Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct make_pair

boost::xpressive::op::make_pair — make_pair is a PolymorphicFunctionObject for building a std::pair out of two parameters

Synopsis

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


struct make_pair {
  // member classes/structs/unions
  template<typename Sig> 
  struct result {
  };
  template<typename This, typename First, typename Second> 
  struct result<, > {
    // types
    typedef                  ;   // For exposition only. 
    typedef                 ;  // For exposition only. 
    typedef std::pair<  ;       
  };

  // public member functions
  template<typename First, typename Second> 
    std::pair<  (, ) ;
};

Description

make_pair public member functions

  1. template<typename First, typename Second> 
      std::pair<  
      ( first,  second) ;

    Parameters:

    first

    The first element of the pair

    second

    The second element of the pair

    Returns:

    std::make_pair(first, second)


PrevUpHomeNext