diff --git a/doc/intrusive.qbk b/doc/intrusive.qbk index 3e3f3d6..c03b63e 100644 --- a/doc/intrusive.qbk +++ b/doc/intrusive.qbk @@ -1852,9 +1852,14 @@ And they also can receive additional options: in containers. The comparison functor must induce a strict weak ordering. Default: `compare< std::less >` +* [*`priority_of_value`]: A function object + that specifies the type of the priority (`priority_type`) of a treap + container and an operator to obtain it from a value type. + Default: `priority_type` is equal to `value_type` (set-like interface). + * [*`priority`]: Priority Comparison function for the objects to be inserted in containers. The comparison functor must induce a strict weak ordering. - Default: `priority< priority_compare >` + Default: `priority< priority_compare >` * [*`key_of_value`]: A function object that will define the `key_type` of the value type to be stored. This type will allow a map-like interface. See @@ -3884,6 +3889,7 @@ to be inserted in intrusive containers are allocated using `std::vector` or `std [section:release_notes_boost_1_71_00 Boost 1.71 Release] * Fixed bugs: + * [@https://github.com/boostorg/intrusive/pull/42 GitHub #42: ['Documentation does not describe treap priority_of_value changes]] * [@https://github.com/boostorg/intrusive/pull/43 GitHub #43: ['Fix tests with BOOST_INTRUSIVE_VARIADIC_TEMPLATES enabled]] * [@https://github.com/boostorg/intrusive/pull/45 GitHub #45: ['Disable variadic templates for MSVC-12 to avoid ICEs]] diff --git a/include/boost/intrusive/treap.hpp b/include/boost/intrusive/treap.hpp index 5656975..d5e3c0c 100644 --- a/include/boost/intrusive/treap.hpp +++ b/include/boost/intrusive/treap.hpp @@ -82,7 +82,7 @@ struct treap_tag; //! The container supports the following options: //! \c base_hook<>/member_hook<>/value_traits<>, //! \c constant_time_size<>, \c size_type<>, -//! \c compare<> and \c priority_compare<> +//! \c compare<>, \c priority<> and \c priority_of_value<> #if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED) template #else diff --git a/include/boost/intrusive/treap_set.hpp b/include/boost/intrusive/treap_set.hpp index 6c0ea3b..31d0f6a 100644 --- a/include/boost/intrusive/treap_set.hpp +++ b/include/boost/intrusive/treap_set.hpp @@ -41,7 +41,7 @@ class treap_multiset_impl; //! The container supports the following options: //! \c base_hook<>/member_hook<>/value_traits<>, //! \c constant_time_size<>, \c size_type<>, -//! \c compare<> and \c priority_compare<> +//! \c compare<>, \c priority<> and \c priority_of_value<> #if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED) template #else @@ -600,7 +600,7 @@ class treap_set //! The container supports the following options: //! \c base_hook<>/member_hook<>/value_traits<>, //! \c constant_time_size<>, \c size_type<>, -//! \c compare<> and \c priority_compare<> +//! \c compare<>, \c priority<> and \c priority_of_value<> #if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED) template #else