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 an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Struct make_pair

boost::xpressive::op::make_pair

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<This(First, Second)> {
    // types
    typedef std::pair< typename remove_const< typename remove_reference< First >::type >::type, typename remove_const< typename remove_reference< Second >::type >::type > type;
  };

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

Description

make_pair public member functions

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

PrevUpHomeNext