File indexing completed on 2025-09-17 08:52:30
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_UNORDERED_DETAIL_FOA_NODE_SET_HANDLE_HPP
0011 #define BOOST_UNORDERED_DETAIL_FOA_NODE_SET_HANDLE_HPP
0012
0013 #include <boost/unordered/detail/foa/node_handle.hpp>
0014
0015 namespace boost{
0016 namespace unordered{
0017 namespace detail{
0018 namespace foa{
0019
0020 template <class TypePolicy, class Allocator>
0021 struct node_set_handle
0022 : public detail::foa::node_handle_base<TypePolicy, Allocator>
0023 {
0024 private:
0025 using base_type = detail::foa::node_handle_base<TypePolicy, Allocator>;
0026
0027 using typename base_type::type_policy;
0028
0029 public:
0030 using value_type = typename TypePolicy::value_type;
0031
0032 constexpr node_set_handle() noexcept = default;
0033 node_set_handle(node_set_handle&& nh) noexcept = default;
0034 node_set_handle& operator=(node_set_handle&&) noexcept = default;
0035
0036 value_type& value() const
0037 {
0038 BOOST_ASSERT(!this->empty());
0039 return const_cast<value_type&>(this->data());
0040 }
0041 };
0042
0043 }
0044 }
0045 }
0046 }
0047
0048 #endif