| Home | Libraries | People | FAQ | More

## 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<This(First, Second)> {
        // types
        typedef decay< First >::type                 first_type;   // For exposition only.
        typedef decay< Second >::type                second_type;  // For exposition only.
        typedef std::pair< first_type, second_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;

   Parameters: |
   `first` | The first element of the pair
   `second` | The second element of the pair
   Returns: | `std::make_pair(first, second)`