/usr/include/boost/intrusive
NameSizeModeActions
detail/-0755rm
any_hook.hpp105060644editdlrm
avltree.hpp241240644editdlrm
avltree_algorithms.hpp289780644editdlrm
avl_set.hpp453820644editdlrm
avl_set_hook.hpp109650644editdlrm
bstree.hpp952080644editdlrm
bstree_algorithms.hpp800710644editdlrm
bs_set.hpp448980644editdlrm
bs_set_hook.hpp105010644editdlrm
circular_list_algorithms.hpp153760644editdlrm
circular_slist_algorithms.hpp150290644editdlrm
derivation_value_traits.hpp27490644editdlrm
hashtable.hpp1560710644editdlrm
intrusive_fwd.hpp163820644editdlrm
linear_slist_algorithms.hpp119680644editdlrm
link_mode.hpp20910644editdlrm
list.hpp580890644editdlrm
list_hook.hpp101710644editdlrm
member_value_traits.hpp34810644editdlrm
options.hpp109960644editdlrm
pack_options.hpp101740644editdlrm
parent_from_member.hpp20050644editdlrm
pointer_plus_bits.hpp37520644editdlrm
pointer_rebind.hpp63060644editdlrm
pointer_traits.hpp138980644editdlrm
priority_compare.hpp18120644editdlrm
rbtree.hpp242450644editdlrm
rbtree_algorithms.hpp259740644editdlrm
set.hpp447510644editdlrm
set_hook.hpp108120644editdlrm
sgtree.hpp418930644editdlrm
sgtree_algorithms.hpp175150644editdlrm
sg_set.hpp457290644editdlrm
slist.hpp884920644editdlrm
slist_hook.hpp108680644editdlrm
splaytree.hpp283250644editdlrm
splaytree_algorithms.hpp297510644editdlrm
splay_set.hpp475350644editdlrm
treap.hpp588700644editdlrm
treap_algorithms.hpp293270644editdlrm
treap_set.hpp473870644editdlrm
trivial_value_traits.hpp23810644editdlrm
unordered_set.hpp450700644editdlrm
unordered_set_hook.hpp167700644editdlrm
Edit: /usr/include/boost/intrusive/derivation_value_traits.hpp (2749B)
///////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2006-2013 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // See http://www.boost.org/libs/intrusive for documentation. // ///////////////////////////////////////////////////////////////////////////// #ifndef BOOST_INTRUSIVE_DERIVATION_VALUE_TRAITS_HPP #define BOOST_INTRUSIVE_DERIVATION_VALUE_TRAITS_HPP #include #include #include #include #if defined(BOOST_HAS_PRAGMA_ONCE) # pragma once #endif namespace boost { namespace intrusive { //!This value traits template is used to create value traits //!from user defined node traits where value_traits::value_type will //!derive from node_traits::node template struct derivation_value_traits { public: typedef NodeTraits node_traits; typedef T value_type; typedef typename node_traits::node node; typedef typename node_traits::node_ptr node_ptr; typedef typename node_traits::const_node_ptr const_node_ptr; typedef typename pointer_traits:: template rebind_pointer::type pointer; typedef typename pointer_traits:: template rebind_pointer::type const_pointer; typedef typename boost::intrusive:: pointer_traits::reference reference; typedef typename boost::intrusive:: pointer_traits::reference const_reference; static const link_mode_type link_mode = LinkMode; static node_ptr to_node_ptr(reference value) { return node_ptr(&value); } static const_node_ptr to_node_ptr(const_reference value) { return node_ptr(&value); } static pointer to_value_ptr(const node_ptr &n) { return pointer_traits::pointer_to(static_cast(*n)); } static const_pointer to_value_ptr(const const_node_ptr &n) { return pointer_traits::pointer_to(static_cast(*n)); } }; } //namespace intrusive } //namespace boost #include #endif //BOOST_INTRUSIVE_DERIVATION_VALUE_TRAITS_HPP