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

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Struct template node_cast_adaptor

boost::intrusive::node_cast_adaptor

Synopsis

// In header: <boost/intrusive/hashtable.hpp>

template<typename F, typename SlistNodePtr, typename NodePtr> 
struct node_cast_adaptor {
  // types
  typedef unspecified                                  base_t;    
  typedef pointer_traits< SlistNodePtr >::element_type slist_node;
  typedef pointer_traits< NodePtr >::element_type      node;      

  // construct/copy/destruct
  template<typename ConvertibleToF, typename RealValuTraits> 
    node_cast_adaptor(const ConvertibleToF &, const RealValuTraits *);

  // public member functions
  base_t::node_ptr operator()(const slist_node &);
  void operator()(SlistNodePtr);
};

Description

node_cast_adaptor public construct/copy/destruct

  1. template<typename ConvertibleToF, typename RealValuTraits> 
      node_cast_adaptor(const ConvertibleToF & c2f, const RealValuTraits * traits);

node_cast_adaptor public member functions

  1. base_t::node_ptr operator()(const slist_node & to_clone);
  2. void operator()(SlistNodePtr to_clone);

PrevUpHomeNext