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

Struct template derivation_value_traits

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 template derivation_value_traits

boost::intrusive::derivation_value_traits

Synopsis

// In header: <boost/intrusive/derivation_value_traits.hpp>
template<typename T, typename NodeTraits, link_mode_type LinkMode = safe_link> 
struct derivation_value_traits {
  // types
  typedef NodeTraits                                                                    node_traits;    
  typedef T                                                                             value_type;     
  typedef node_traits::node                                                             node;           
  typedef node_traits::node_ptr                                                         node_ptr;       
  typedef node_traits::const_node_ptr                                                   const_node_ptr; 
  typedef pointer_traits< node_ptr >::template rebind_pointer< value_type >::type       pointer;        
  typedef pointer_traits< node_ptr >::template rebind_pointer< const value_type >::type const_pointer;  
  typedef boost::intrusive::pointer_traits< pointer >::reference                        reference;      
  typedef boost::intrusive::pointer_traits< const_pointer >::reference                  const_reference;
  // public static functions
  static node_ptr to_node_ptr(reference);
  static const_node_ptr to_node_ptr(const_reference);
  static pointer to_value_ptr(const node_ptr &);
  static const_pointer to_value_ptr(const const_node_ptr &);
  // public data members
  static const link_mode_type link_mode;
};

Description

Этот шаблон признаков значений используется для создания признаков значений из определенных пользователем признаков узла, где значение_traits::value_type будет происходить из узла_traits::node

derivation_value_traits public static functions

  1. <
    staticnode_ptrto_node_ptr(referencevalue);
    >
  2. <
    staticconst_node_ptrto_node_ptr(const_referencevalue);
    >
  3. <
    staticpointerto_value_ptr(constnode_ptr&n);
    >
  4. <
    staticconst_pointerto_value_ptr(constconst_node_ptr&n);
    >

PrevUpHomeNext

Статья Struct template derivation_value_traits раздела 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 04:59:06/0.0052740573883057/1