Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Struct make_pair

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Reference

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

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<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<typenameFirst,typenameSecond>
      std::pair<First,Second>
     operator()(Firstconst&first,Secondconst&second)const;
    >

    Параметры:

    <first>

    Первый элемент пары

    <second>

    Второй элемент пары

    Возвращение:

    <std::make_pair(first, second)>


PrevUpHomeNext

Статья Struct make_pair раздела The Boost C++ Libraries BoostBook Documentation Subset Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-07-04 10:29:31/0.0083820819854736/1