Struct make_pair
boost::xpressive::op::make_pair — make_pair is a PolymorphicFunctionObject for building a std::pair out of two parameters
Synopsis
struct make_pair {
template<typename Sig>
struct result {
};
template<typename This, typename First, typename Second>
struct result<This(First, Second)> {
typedef decay< First >::type first_type;
typedef decay< Second >::type second_type;
typedef std::pair< first_type, second_type > type;
};
template<typename First, typename Second>
std::pair< First, Second > operator()(First const &, Second const &) const;
};
Description
make_pair public member functions
- <
template<typenameFirst,typenameSecond>
std::pair<First,Second>
operator()(Firstconst&first,Secondconst&second)const;
>Параметры: | <first> | Первый элемент пары | <second> | Второй элемент пары |
|
Возвращение: | <std::make_pair(first, second)> |