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

Struct template named_parameter

Boost , Boost.Test , Header <boost/test/utils/named_params.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

Struct template named_parameter

boost::nfp::named_parameter

Synopsis

// In header: <boost/test/utils/named_params.hpp>
template<typename T, typename unique_id, typename RefType = T&> 
struct named_parameter {
  // types
  typedef T         data_type;
  typedef RefType   ref_type; 
  typedef unique_id id;       
  // construct/copy/destruct
  explicit named_parameter(ref_type);
  named_parameter(named_parameter const &);
  // public member functions
  ref_type operator[](keyword< unique_id, true >) const;
  ref_type operator[](keyword< unique_id, false >) const;
  template<typename UnknownId> 
    nil operator[](keyword< UnknownId, false >) const;
  bool has(keyword< unique_id, false >) const;
  template<typename UnknownId> bool has(keyword< UnknownId, false >) const;
  void erase(keyword< unique_id, false >) const;
  template<typename UnknownId> void erase(keyword< UnknownId, false >) const;
  template<typename Visitor> void apply_to(Visitor &) const;
  named_parameter_combine< NP, named_parameter< T, unique_id, RefType > > 
  operator,(NP const &) const;
};

Description

named_parameter public construct/copy/destruct

  1. <
    explicitnamed_parameter(ref_typev);
    >
  2. <
    named_parameter(named_parameterconst&np);
    >

named_parameter public member functions

  1. <
    ref_typeoperator[](keyword<unique_id,true>)const;
    >
  2. <
    ref_typeoperator[](keyword<unique_id,false>)const;
    >
  3. <
    template<typenameUnknownId>niloperator[](keyword<UnknownId,false>)const;
    >
  4. <
    boolhas(keyword<unique_id,false>)const;
    >
  5. <
    template<typenameUnknownId>boolhas(keyword<UnknownId,false>)const;
    >
  6. <
    voiderase(keyword<unique_id,false>)const;
    >
  7. <
    template<typenameUnknownId>voiderase(keyword<UnknownId,false>)const;
    >
  8. <
    template<typenameVisitor>voidapply_to(Visitor&V)const;
    >
  9. <
    named_parameter_combine<NP,named_parameter<T,unique_id,RefType>>
    operator,(NPconst&np)const;
    >

PrevUpHomeNext

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




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



:: Главная :: Header <boost/test/utils/named_params.hpp> ::


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 21:41:47/0.0083911418914795/1