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

Struct front

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 front

boost::xpressive::op::front — front is a PolymorphicFunctionObject for fetching the front element of a container.

Synopsis

// In header: <boost/xpressive/regex_actions.hpp>

struct front {
  // member classes/structs/unions
  template<typename Sig> 
  struct result {
  };
  template<typename This, typename Sequence> 
  struct result<This(Sequence)> {
    // types
    typedef remove_reference< Sequence >::type                                                                                              sequence_type;
    typedef mpl::if_c< is_const< sequence_type >::value, typename sequence_type::const_reference, typename sequence_type::reference >::type type;         
  };
  // public member functions
  template<typename Sequence> 
    result< front(Sequence &)>::type operator()(Sequence &) const;
};

Description

front public member functions

  1. <
    template<typenameSequence>
     result<front(Sequence&)>::typeoperator()(Sequence&seq)const;
    >

    Параметры:

    <seq>

    Последовательность, из которой можно извлечь переднюю часть.

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

    <seq.front()>


PrevUpHomeNext

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




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



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


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 20:13:09/0.0062539577484131/0