/usr/include/boost/container/detail
NameSizeModeActions
adaptive_node_pool.hpp55690644editdlrm
adaptive_node_pool_impl.hpp540880644editdlrm
addressof.hpp10630644editdlrm
advanced_insert_int.hpp176680644editdlrm
algorithm.hpp38800644editdlrm
allocation_type.hpp20170644editdlrm
allocator_version_traits.hpp56320644editdlrm
alloc_helpers.hpp18670644editdlrm
alloc_lib.h117420644editdlrm
auto_link.hpp16570644editdlrm
block_list.hpp41990644editdlrm
block_slist.hpp45030644editdlrm
compare_functors.hpp39920644editdlrm
config_begin.hpp36370644editdlrm
config_end.hpp4800644editdlrm
construct_in_place.hpp29520644editdlrm
container_or_allocator_rebind.hpp17430644editdlrm
container_rebind.hpp66100644editdlrm
copy_move_algo.hpp385310644editdlrm
destroyers.hpp93380644editdlrm
dispatch_uses_allocator.hpp197330644editdlrm
dlmalloc.hpp34440644editdlrm
flat_tree.hpp616630644editdlrm
function_detector.hpp35580644editdlrm
is_container.hpp22130644editdlrm
is_contiguous_container.hpp17120644editdlrm
is_sorted.hpp14650644editdlrm
iterator.hpp25900644editdlrm
iterators.hpp298820644editdlrm
iterator_to_raw_pointer.hpp9710644editdlrm
math_functions.hpp38720644editdlrm
minimal_char_traits_header.hpp10570644editdlrm
min_max.hpp9970644editdlrm
mpl.hpp38340644editdlrm
multiallocation_chain.hpp103170644editdlrm
mutex.hpp86650644editdlrm
next_capacity.hpp21400644editdlrm
node_alloc_holder.hpp176510644editdlrm
node_pool.hpp48080644editdlrm
node_pool_impl.hpp131710644editdlrm
pair.hpp212810644editdlrm
pair_key_mapped_of_value.hpp14660644editdlrm
placement_new.hpp9140644editdlrm
pool_common.hpp16060644editdlrm
pool_common_alloc.hpp27300644editdlrm
pool_resource.hpp77440644editdlrm
singleton.hpp44650644editdlrm
std_fwd.hpp14500644editdlrm
thread_mutex.hpp44490644editdlrm
transform_iterator.hpp51030644editdlrm
tree.hpp570380644editdlrm
type_traits.hpp27140644editdlrm
value_functors.hpp11180644editdlrm
value_init.hpp11350644editdlrm
variadic_templates_tools.hpp49590644editdlrm
version_type.hpp24160644editdlrm
workaround.hpp45010644editdlrm
Edit: /usr/include/boost/container/detail/compare_functors.hpp (3992B)
/////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2014-2014. 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/container for documentation. // /////////////////////////////////////////////////////////////////////////////// #ifndef BOOST_CONTAINER_DETAIL_COMPARE_FUNCTORS_HPP #define BOOST_CONTAINER_DETAIL_COMPARE_FUNCTORS_HPP #ifndef BOOST_CONFIG_HPP # include #endif #if defined(BOOST_HAS_PRAGMA_ONCE) # pragma once #endif #include namespace boost { namespace container { template class equal_to_value { typedef ValueType value_type; const value_type &t_; public: explicit equal_to_value(const value_type &t) : t_(t) {} bool operator()(const value_type &t)const { return t_ == t; } }; template struct value_to_node_compare : Pred { typedef Pred predicate_type; typedef Node node_type; value_to_node_compare() : Pred() {} explicit value_to_node_compare(Pred pred) : Pred(pred) {} Ret operator()(const Node &a, const Node &b) const { return static_cast(*this)(a.get_data(), b.get_data()); } Ret operator()(const Node &a) const { return static_cast(*this)(a.get_data()); } Ret operator()(const Node &a, const Node &b) { return static_cast(*this)(a.get_data(), b.get_data()); } Ret operator()(const Node &a) { return static_cast(*this)(a.get_data()); } predicate_type & predicate() { return static_cast(*this); } const predicate_type & predicate() const { return static_cast(*this); } }; template struct key_node_pred : public boost::intrusive::detail::ebo_functor_holder { BOOST_CONTAINER_FORCEINLINE explicit key_node_pred(const KeyPred &comp) : base_t(comp) {} typedef boost::intrusive::detail::ebo_functor_holder base_t; typedef KeyPred key_predicate; typedef KeyOfValue key_of_value; typedef typename KeyOfValue::type key_type; BOOST_CONTAINER_FORCEINLINE static const key_type &key_from(const Node &n) { return key_of_value()(n.get_data()); } template BOOST_CONTAINER_FORCEINLINE static const T & key_from(const T &t) { return t; } BOOST_CONTAINER_FORCEINLINE const key_predicate &key_pred() const { return static_cast(*this); } BOOST_CONTAINER_FORCEINLINE key_predicate &key_pred() { return static_cast(*this); } BOOST_CONTAINER_FORCEINLINE Ret operator()(const key_type &key) const { return this->key_pred()(key); } template BOOST_CONTAINER_FORCEINLINE Ret operator()(const U &nonkey) const { return this->key_pred()(this->key_from(nonkey)); } BOOST_CONTAINER_FORCEINLINE bool operator()(const key_type &key1, const key_type &key2) const { return this->key_pred()(key1, key2); } template BOOST_CONTAINER_FORCEINLINE bool operator()(const key_type &key1, const U &nonkey2) const { return this->key_pred()(key1, this->key_from(nonkey2)); } template BOOST_CONTAINER_FORCEINLINE bool operator()(const U &nonkey1, const key_type &key2) const { return this->key_pred()(this->key_from(nonkey1), key2); } template BOOST_CONTAINER_FORCEINLINE bool operator()(const U &nonkey1, const V &nonkey2) const { return this->key_pred()(this->key_from(nonkey1), this->key_from(nonkey2)); } }; } //namespace container { } //namespace boost { #endif //BOOST_CONTAINER_DETAIL_COMPARE_FUNCTORS_HPP