...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::intrusive::bucket_traits_impl
// In header: <boost/intrusive/hashtable.hpp> template<typename BucketPtr, typename SizeType> struct bucket_traits_impl { // construct/copy/destruct bucket_traits_impl(bucket_ptr, size_type); bucket_traits_impl(const bucket_traits_impl &); bucket_traits_impl(bucket_traits_impl &&); bucket_traits_impl & operator=(bucket_traits_impl &&); bucket_traits_impl & operator=(BOOST_COPY_ASSIGN_REF(bucket_traits_impl)); // public member functions bucket_ptr bucket_begin() const; size_type bucket_count() const noexcept; };
bucket_traits_impl
public
construct/copy/destructbucket_traits_impl(bucket_ptr buckets, size_type len);
bucket_traits_impl(const bucket_traits_impl & x);
bucket_traits_impl(bucket_traits_impl && x);
bucket_traits_impl & operator=(bucket_traits_impl && x);
bucket_traits_impl & operator=(BOOST_COPY_ASSIGN_REF(bucket_traits_impl) x);
bucket_traits_impl
public member functionsbucket_ptr bucket_begin() const;
size_type bucket_count() const noexcept;