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

Struct top

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 top

boost::xpressive::op::top — top is a PolymorphicFunctionObject for fetching the top element of a stack.

Synopsis

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

struct top {
  // 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::value_type const &, typename sequence_type::value_type & >::type type;         
  };
  // public member functions
  template<typename Sequence> 
    result< top(Sequence &)>::type operator()(Sequence &) const;
};

Description

top public member functions

  1. templatetypename>const
<65 Последовательность, из которой можно извлечь верх.

Возврат:

seq.top()


PrevUpHomeNext

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




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



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


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 01:33:10/0.0052070617675781/1