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

Class template singleton

Boost , Boost.Test , Header <boost/test/data/monomorphic/singleton.hpp>

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

Class template singleton

boost::unit_test::data::monomorphic::singleton — Models a single element data set.

Synopsis

// In header: <boost/test/data/monomorphic/singleton.hpp>
template<typename T> 
class singleton {
public:
  // types
  typedef boost::decay< T >::type sample;
  // member classes/structs/unions
  struct iterator {
    // construct/copy/destruct
    explicit iterator(singleton< T > const *);
    // public member functions
    sample const & operator*() const;
    void operator++();
  };
  enum @9 { arity = = 1 };
  // construct/copy/destruct
  explicit singleton(T &&);
  singleton(singleton &&);
  // public member functions
  T const & value() const;
  data::size_t size() const;
  iterator begin() const;
};

Description

singleton public construct/copy/destruct

  1. explicit singleton(T &&value);
    Конструктор.
  2. singleton(singleton && s);
    Двигай конструктор.

singleton public member functions

  1. T const & value() const;
    Метод доступа к ценностям.
  2. data::size_t ize() const;
    dataset interface
  3. iterator начать()const;

PrevUpHomeNext

Статья Class template singleton раздела Boost.Test Header <boost/test/data/monomorphic/singleton.hpp> может быть полезна для разработчиков на c++ и boost.




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



:: Главная :: Header <boost/test/data/monomorphic/singleton.hpp> ::


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 07:11:57/0.0075750350952148/1