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

Struct first

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 first

boost::proto::functional::first — A PolymorphicFunctionObject type that returns the first element of a std::pair<>.

Synopsis

// In header: <boost/proto/functional/std/utility.hpp>

struct first :  proto::callable {
  // member classes/structs/unions
  template<typename This, typename Pair> 
  struct result<This(Pair)> {
    // types
    typedef typename Pair::first_type type;
  };
  template<typename This, typename Pair> 
  struct result<This(Pair &)> {
    // types
    typedef typename Pair::first_type & type;
  };
  template<typename This, typename Pair> 
  struct result<This(Pair const &)> {
    // types
    typedef typename Pair::first_type const & type;
  };
  // public member functions
  template<typename Pair> typename Pair::first_type & operator()(Pair &) const;
  template<typename Pair> 
    typename Pair::first_type const & operator()(Pair const &) const;
};

Description

Тип PolymorphicFunctionObject, возвращающий первый элемент std::pair<>.

first public member functions

  1. templatetypenametypenamefirst_typeоператор(&ПараПара;конст;

  • templatetypenametypenamefirst_typePair&const&constПара;const;


  • PrevUpHomeNext

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




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



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


    реклама


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

    Время компиляции файла: 2024-08-30 11:47:00
    2025-07-05 09:42:40/0.0061359405517578/0