passenger 6.0.26 → 6.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +28 -1
- data/CONTRIBUTING.md +2 -2
- data/build/agent.rb +0 -2
- data/build/basics.rb +2 -0
- data/build/common_library.rb +0 -6
- data/build/misc.rb +0 -2
- data/build/schema_printer.rb +0 -2
- data/build/support/cxx_dependency_map.rb +57 -254
- data/dev/copy_boost_headers +3 -14
- data/dev/index_cxx_dependencies.rb +1 -1
- data/doc/AiInstructions.md +112 -0
- data/doc/CxxMockingStrategy.md +42 -0
- data/doc/CxxTestingGuide.md +110 -0
- data/doc/DesignAspects/LimitedGemDependencies.md +22 -14
- data/doc/TempFileHandling.md +15 -0
- data/passenger.gemspec +1 -1
- data/resources/templates/standalone/server.erb +1 -0
- data/src/agent/Core/ApiServer.h +0 -1
- data/src/agent/Core/ApplicationPool/AbstractSession.h +10 -1
- data/src/agent/Core/ApplicationPool/Group/ProcessListManagement.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/SessionManagement.cpp +33 -18
- data/src/agent/Core/ApplicationPool/Group.h +0 -1
- data/src/agent/Core/ApplicationPool/Implementation.cpp +0 -3
- data/src/agent/Core/ApplicationPool/Session.h +14 -19
- data/src/agent/Core/ApplicationPool/Socket.h +15 -5
- data/src/agent/Core/ApplicationPool/TestSession.h +74 -15
- data/src/agent/Core/Config.h +2 -34
- data/src/agent/Core/ConfigChange.cpp +1 -41
- data/src/agent/Core/Controller/CheckoutSession.cpp +100 -14
- data/src/agent/Core/Controller/Client.h +0 -1
- data/src/agent/Core/Controller/Config.h +1 -1
- data/src/agent/Core/Controller/Hooks.cpp +13 -0
- data/src/agent/Core/Controller/InitRequest.cpp +2 -0
- data/src/agent/Core/Controller/InternalUtils.cpp +12 -0
- data/src/agent/Core/Controller/Request.h +3 -2
- data/src/agent/Core/Controller.h +12 -13
- data/src/agent/Core/CoreMain.cpp +1 -56
- data/src/agent/Core/OptionParser.h +1 -7
- data/src/agent/Core/SecurityUpdateChecker.h +0 -1
- data/src/agent/Watchdog/Config.h +2 -21
- data/src/agent/Watchdog/WatchdogMain.cpp +0 -2
- data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp +0 -20
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp +0 -60
- data/src/apache2_module/Hooks.cpp +0 -4
- data/src/apache2_module/ServerConfig/AutoGeneratedManifestGeneration.cpp +0 -44
- data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h +0 -52
- data/src/cxx_supportlib/Algorithms/Hasher.cpp +1 -1
- data/src/cxx_supportlib/Algorithms/Hasher.h +4 -7
- data/src/cxx_supportlib/Algorithms/MovingAverage.h +1 -160
- data/src/cxx_supportlib/Constants.h +2 -1
- data/src/cxx_supportlib/DataStructures/StringMap.h +2 -3
- data/src/cxx_supportlib/FileTools/FileManip.h +2 -0
- data/src/cxx_supportlib/Hooks.h +0 -1
- data/src/cxx_supportlib/IOTools/IOUtils.cpp +49 -60
- data/src/cxx_supportlib/IOTools/IOUtils.h +65 -73
- data/src/cxx_supportlib/ServerKit/AcceptLoadBalancer.h +2 -0
- data/src/cxx_supportlib/ServerKit/HttpHeaderParser.h +8 -6
- data/src/cxx_supportlib/StrIntTools/StrIntUtils.h +2 -2
- data/src/cxx_supportlib/SystemTools/SystemMetricsCollector.h +0 -2
- data/src/cxx_supportlib/Utils/FastStringStream.h +7 -7
- data/src/cxx_supportlib/Utils/IniFile.h +24 -25
- data/src/cxx_supportlib/Utils.h +0 -30
- data/src/cxx_supportlib/oxt/detail/tracable_exception_disabled.hpp +4 -0
- data/src/cxx_supportlib/oxt/detail/tracable_exception_enabled.hpp +1 -0
- data/src/cxx_supportlib/oxt/implementation.cpp +41 -2
- data/src/cxx_supportlib/oxt/system_calls.cpp +1 -0
- data/src/cxx_supportlib/oxt/system_calls.hpp +3 -4
- data/src/cxx_supportlib/vendor-modified/boost/container/allocator.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/deque.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_begin.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/container_or_allocator_rebind.hpp +1 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/container_rebind.hpp +23 -13
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/flat_tree.hpp +72 -49
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/function_detector.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_contiguous_container.hpp +15 -11
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/tree.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/devector.hpp +36 -9
- data/src/cxx_supportlib/vendor-modified/boost/container/flat_map.hpp +9 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/list.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/options.hpp +21 -17
- data/src/cxx_supportlib/vendor-modified/boost/container/slist.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/small_vector.hpp +10 -6
- data/src/cxx_supportlib/vendor-modified/boost/container/stable_vector.hpp +8 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/static_vector.hpp +21 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/string.hpp +5 -15
- data/src/cxx_supportlib/vendor-modified/boost/container/vector.hpp +73 -14
- data/src/cxx_supportlib/vendor-modified/boost/detail/basic_pointerbuf.hpp +1 -2
- data/src/cxx_supportlib/vendor-modified/boost/detail/lcast_precision.hpp +18 -29
- data/src/cxx_supportlib/vendor-modified/boost/function/function_template.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_rt.hpp +6 -10
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/avl_set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/bs_set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree.hpp +12 -4
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/function_detector.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/parent_from_member.hpp +5 -4
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/workaround.hpp +10 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/list.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/sg_set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/slist.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/splay_set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical_streams.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/inf_nan.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_unsigned_converters.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/adl_move_swap.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/core.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/meta_utils.hpp +1 -20
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/meta_utils_core.hpp +15 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/nsec_clock.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/placement_new.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/std_ns_begin.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/std_ns_end.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_count.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/mp11/version.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/none.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/none_t.hpp +10 -4
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/experimental_traits.hpp +4 -49
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_aligned_storage.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_config.hpp +13 -4
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_reference_spec.hpp +47 -46
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_relops.hpp +11 -11
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_swap.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_trivially_copyable_base.hpp +12 -252
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_utility.hpp +41 -0
- data/src/cxx_supportlib/vendor-modified/boost/optional/optional.hpp +101 -592
- data/src/cxx_supportlib/vendor-modified/boost/optional/optional_io.hpp +1 -5
- data/src/cxx_supportlib/vendor-modified/boost/pointer_cast.hpp +12 -24
- data/src/cxx_supportlib/vendor-modified/boost/random/beta_distribution.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/random/hyperexponential_distribution.hpp +15 -15
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/allocate_shared_array.hpp +37 -44
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/bad_weak_ptr.hpp +1 -23
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/deprecated_macros.hpp +52 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/local_counted_base.hpp +14 -18
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/local_sp_deleter.hpp +7 -15
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/shared_count.hpp +39 -90
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_convertible.hpp +0 -16
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_nt.hpp +13 -14
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp +16 -17
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_impl.hpp +16 -55
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_noexcept.hpp +5 -14
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_type_traits.hpp +55 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_std_atomic.hpp +5 -6
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/enable_shared_from_this.hpp +7 -10
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ptr.hpp +32 -110
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ref_counter.hpp +17 -18
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared.hpp +2 -6
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp +10 -9
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_object.hpp +28 -565
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_unique.hpp +11 -17
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/scoped_array.hpp +17 -21
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/scoped_ptr.hpp +20 -22
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_array.hpp +34 -68
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_ptr.hpp +78 -356
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/weak_ptr.hpp +31 -89
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_map.hpp +195 -12
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_set.hpp +206 -17
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_node_map.hpp +1202 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_node_map_fwd.hpp +67 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_node_set.hpp +1065 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_node_set_fwd.hpp +67 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/concurrent_static_asserts.hpp +30 -8
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/concurrent_table.hpp +248 -47
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/core.hpp +24 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/flat_map_types.hpp +10 -2
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/flat_set_types.hpp +8 -2
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_handle.hpp +120 -5
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_map_handle.hpp +56 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_map_types.hpp +15 -4
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_set_handle.hpp +48 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_set_types.hpp +13 -4
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/tuple_rotate_right.hpp +11 -10
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/types_constructibility.hpp +172 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/implementation.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/map.hpp +0 -17
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/set.hpp +0 -17
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/type_traits.hpp +11 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_map.hpp +32 -44
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_set.hpp +31 -35
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_printers.hpp +414 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/version.hpp +2 -2
- data/src/nginx_module/ConfigGeneral/AutoGeneratedDefinitions.c +8 -32
- data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c +6 -0
- data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c +12 -48
- data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c +5 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedHeaderSerialization.c +21 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c +13 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedMergeFunction.c +3 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h +4 -0
- data/src/nginx_module/MainConfig/AutoGeneratedCreateFunction.c +0 -24
- data/src/nginx_module/MainConfig/AutoGeneratedManifestGeneration.c +0 -48
- data/src/nginx_module/MainConfig/AutoGeneratedStruct.h +0 -16
- data/src/nginx_module/ngx_http_passenger_module.c +0 -4
- data/src/ruby_native_extension/passenger_native_support.c +19 -3
- data/src/ruby_supportlib/phusion_passenger/apache2/config_options.rb +8 -24
- data/src/ruby_supportlib/phusion_passenger/common_library.rb +0 -3
- data/src/ruby_supportlib/phusion_passenger/constants.rb +1 -0
- data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +6 -28
- data/src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb +9 -8
- data/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb +2 -27
- data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +0 -30
- data/src/ruby_supportlib/phusion_passenger/standalone/config_options_list.rb +8 -20
- data/src/ruby_supportlib/phusion_passenger.rb +7 -7
- data/src/schema_printer/SchemaPrinterMain.cpp +0 -4
- metadata +19 -670
- data/dev/websocketpp.patch +0 -39
- data/src/agent/Core/AdminPanelConnector.h +0 -680
- data/src/cxx_supportlib/DataStructures/HashMap.h +0 -60
- data/src/cxx_supportlib/FileTools/LargeFiles.cpp +0 -41
- data/src/cxx_supportlib/FileTools/LargeFiles.h +0 -43
- data/src/cxx_supportlib/WebSocketCommandReverseServer.h +0 -975
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_executor.hpp +0 -338
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_handler.hpp +0 -824
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp +0 -353
- data/src/cxx_supportlib/vendor-modified/boost/asio/append.hpp +0 -67
- data/src/cxx_supportlib/vendor-modified/boost/asio/as_tuple.hpp +0 -154
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_allocator.hpp +0 -216
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_cancellation_slot.hpp +0 -223
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_executor.hpp +0 -237
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_immediate_executor.hpp +0 -283
- data/src/cxx_supportlib/vendor-modified/boost/asio/associator.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/async_result.hpp +0 -950
- data/src/cxx_supportlib/vendor-modified/boost/asio/awaitable.hpp +0 -144
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +0 -1364
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +0 -712
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_file.hpp +0 -826
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_io_object.hpp +0 -288
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_random_access_file.hpp +0 -691
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +0 -1358
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_readable_pipe.hpp +0 -628
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +0 -825
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +0 -989
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +0 -650
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +0 -1938
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +0 -2710
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_iostream.hpp +0 -333
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_streambuf.hpp +0 -644
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_file.hpp +0 -746
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +0 -1165
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf.hpp +0 -452
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf_fwd.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +0 -826
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_writable_pipe.hpp +0 -624
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_allocator.hpp +0 -598
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_cancellation_slot.hpp +0 -615
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_executor.hpp +0 -666
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_immediate_executor.hpp +0 -618
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffer.hpp +0 -2755
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffer_registration.hpp +0 -320
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream.hpp +0 -275
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream_fwd.hpp +0 -27
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream.hpp +0 -294
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream_fwd.hpp +0 -27
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream.hpp +0 -267
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream_fwd.hpp +0 -27
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffers_iterator.hpp +0 -523
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancel_after.hpp +0 -303
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancel_at.hpp +0 -296
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_signal.hpp +0 -247
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_state.hpp +0 -237
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_type.hpp +0 -159
- data/src/cxx_supportlib/vendor-modified/boost/asio/co_composed.hpp +0 -1323
- data/src/cxx_supportlib/vendor-modified/boost/asio/co_spawn.hpp +0 -525
- data/src/cxx_supportlib/vendor-modified/boost/asio/completion_condition.hpp +0 -269
- data/src/cxx_supportlib/vendor-modified/boost/asio/compose.hpp +0 -130
- data/src/cxx_supportlib/vendor-modified/boost/asio/composed.hpp +0 -415
- data/src/cxx_supportlib/vendor-modified/boost/asio/connect.hpp +0 -1348
- data/src/cxx_supportlib/vendor-modified/boost/asio/connect_pipe.hpp +0 -85
- data/src/cxx_supportlib/vendor-modified/boost/asio/consign.hpp +0 -77
- data/src/cxx_supportlib/vendor-modified/boost/asio/coroutine.hpp +0 -330
- data/src/cxx_supportlib/vendor-modified/boost/asio/deadline_timer.hpp +0 -40
- data/src/cxx_supportlib/vendor-modified/boost/asio/default_completion_token.hpp +0 -91
- data/src/cxx_supportlib/vendor-modified/boost/asio/defer.hpp +0 -220
- data/src/cxx_supportlib/vendor-modified/boost/asio/deferred.hpp +0 -721
- data/src/cxx_supportlib/vendor-modified/boost/asio/detached.hpp +0 -107
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array.hpp +0 -32
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array_fwd.hpp +0 -32
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/assert.hpp +0 -32
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/atomic_count.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_cancellation_state.hpp +0 -166
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_completion_cond.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +0 -713
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/blocking_executor_op.hpp +0 -109
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_resize_guard.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_sequence_adapter.hpp +0 -839
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffered_stream_storage.hpp +0 -128
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/call_stack.hpp +0 -127
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono.hpp +0 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono_time_traits.hpp +0 -192
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_handler.hpp +0 -90
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_message.hpp +0 -129
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_payload.hpp +0 -222
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_payload_handler.hpp +0 -81
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/composed_work.hpp +0 -254
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/concurrency_hint.hpp +0 -94
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_event.hpp +0 -122
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_mutex.hpp +0 -151
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +0 -1413
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/consuming_buffers.hpp +0 -445
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstddef.hpp +0 -29
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstdint.hpp +0 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/date_time_fwd.hpp +0 -34
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/deadline_timer_service.hpp +0 -341
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dependent_type.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_ops.hpp +0 -181
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_read_op.hpp +0 -190
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_write_op.hpp +0 -189
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dev_poll_reactor.hpp +0 -249
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/epoll_reactor.hpp +0 -297
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/event.hpp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/eventfd_select_interrupter.hpp +0 -85
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/exception.hpp +0 -31
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_function.hpp +0 -154
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_op.hpp +0 -86
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fd_set_adapter.hpp +0 -41
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fenced_block.hpp +0 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/functional.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/future.hpp +0 -32
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/global.hpp +0 -52
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +0 -123
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_cont_helpers.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_tracking.hpp +0 -268
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_type_requirements.hpp +0 -555
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_work.hpp +0 -513
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/hash_map.hpp +0 -333
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/buffer_sequence_adapter.ipp +0 -120
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +0 -996
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.hpp +0 -113
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.ipp +0 -471
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.hpp +0 -111
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.ipp +0 -828
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/eventfd_select_interrupter.ipp +0 -173
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +0 -400
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_descriptor_service.ipp +0 -207
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_file_service.ipp +0 -142
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.hpp +0 -114
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.ipp +0 -916
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_socket_service_base.ipp +0 -251
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.hpp +0 -115
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.ipp +0 -610
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/null_event.ipp +0 -76
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/pipe_select_interrupter.ipp +0 -131
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_event.ipp +0 -65
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_mutex.ipp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_serial_port_service.ipp +0 -170
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_thread.ipp +0 -86
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_tss_ptr.ipp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_descriptor_service.ipp +0 -234
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_socket_service_base.ipp +0 -314
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/resolver_service_base.ipp +0 -160
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/scheduler.ipp +0 -677
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.hpp +0 -126
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.ipp +0 -402
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.hpp +0 -95
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.ipp +0 -199
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/signal_set_service.ipp +0 -828
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_ops.ipp +0 -4046
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_select_interrupter.ipp +0 -187
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.hpp +0 -348
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.ipp +0 -160
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.hpp +0 -88
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.ipp +0 -204
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/thread_context.ipp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/throw_error.ipp +0 -51
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_ptime.ipp +0 -99
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_set.ipp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiate_defer.hpp +0 -209
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiate_dispatch.hpp +0 -195
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiate_post.hpp +0 -209
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiation_base.hpp +0 -64
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_control.hpp +0 -86
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_object_impl.hpp +0 -179
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_at_op.hpp +0 -197
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_op.hpp +0 -192
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_service.hpp +0 -689
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_at_op.hpp +0 -191
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_op.hpp +0 -187
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_file_service.hpp +0 -263
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_null_buffers_op.hpp +0 -116
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_operation.hpp +0 -86
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_service.hpp +0 -321
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_accept_op.hpp +0 -282
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_connect_op.hpp +0 -142
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recv_op.hpp +0 -207
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvfrom_op.hpp +0 -208
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvmsg_op.hpp +0 -194
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_send_op.hpp +0 -193
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_sendto_op.hpp +0 -196
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service.hpp +0 -631
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service_base.hpp +0 -665
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_wait_op.hpp +0 -114
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_buffer_sequence.hpp +0 -298
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_executor.hpp +0 -128
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/keyword_tss_ptr.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/kqueue_reactor.hpp +0 -273
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/limits.hpp +0 -21
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/local_free_on_block_exit.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +0 -128
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/mutex.hpp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/non_const_lvalue.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/noncopyable.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_event.hpp +0 -108
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_fenced_block.hpp +0 -49
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_global.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_mutex.hpp +0 -62
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_reactor.hpp +0 -85
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_signal_blocker.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_socket_service.hpp +0 -521
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_static_mutex.hpp +0 -62
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_thread.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_tss_ptr.hpp +0 -70
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/object_pool.hpp +0 -173
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/op_queue.hpp +0 -164
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/operation.hpp +0 -40
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pipe_select_interrupter.hpp +0 -91
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pop_options.hpp +0 -157
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_event.hpp +0 -177
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_fd_set_adapter.hpp +0 -120
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_global.hpp +0 -82
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_mutex.hpp +0 -78
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_serial_port_service.hpp +0 -251
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_signal_blocker.hpp +0 -87
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_static_mutex.hpp +0 -66
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_thread.hpp +0 -111
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_tss_ptr.hpp +0 -81
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/push_options.hpp +0 -228
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_descriptor_service.hpp +0 -572
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_null_buffers_op.hpp +0 -133
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_accept_op.hpp +0 -325
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_connect_op.hpp +0 -164
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recv_op.hpp +0 -199
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvfrom_op.hpp +0 -205
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvmsg_op.hpp +0 -186
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_send_op.hpp +0 -202
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_sendto_op.hpp +0 -196
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service.hpp +0 -635
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service_base.hpp +0 -757
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_wait_op.hpp +0 -133
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor.hpp +0 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op.hpp +0 -73
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op_queue.hpp +0 -214
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/recycling_allocator.hpp +0 -116
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/regex_fwd.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_endpoint_op.hpp +0 -142
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_op.hpp +0 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_query_op.hpp +0 -152
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service.hpp +0 -149
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service_base.hpp +0 -160
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler.hpp +0 -243
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_operation.hpp +0 -80
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_task.hpp +0 -51
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_thread_info.hpp +0 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_lock.hpp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_ptr.hpp +0 -89
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_interrupter.hpp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_reactor.hpp +0 -293
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/service_registry.hpp +0 -165
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_blocker.hpp +0 -46
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_handler.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_init.hpp +0 -49
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_op.hpp +0 -55
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_set_service.hpp +0 -294
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_holder.hpp +0 -100
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_ops.hpp +0 -377
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_option.hpp +0 -318
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_select_interrupter.hpp +0 -93
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_types.hpp +0 -429
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/source_location.hpp +0 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/static_mutex.hpp +0 -52
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_event.hpp +0 -185
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_fenced_block.hpp +0 -59
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_global.hpp +0 -67
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_mutex.hpp +0 -70
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_static_mutex.hpp +0 -78
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_thread.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_executor_service.hpp +0 -175
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_service.hpp +0 -146
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/string_view.hpp +0 -49
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread.hpp +0 -60
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_context.hpp +0 -53
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_group.hpp +0 -101
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_info_base.hpp +0 -262
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_error.hpp +0 -64
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_exception.hpp +0 -57
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timed_cancel_op.hpp +0 -363
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue.hpp +0 -391
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_base.hpp +0 -70
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_ptime.hpp +0 -105
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_set.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler_fwd.hpp +0 -44
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/tss_ptr.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/type_traits.hpp +0 -180
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/utility.hpp +0 -85
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_handler.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_op.hpp +0 -51
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/winsock_init.hpp +0 -130
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/work_dispatcher.hpp +0 -145
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wrapped_handler.hpp +0 -197
- data/src/cxx_supportlib/vendor-modified/boost/asio/dispatch.hpp +0 -199
- data/src/cxx_supportlib/vendor-modified/boost/asio/error.hpp +0 -390
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp +0 -280
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/any_executor.hpp +0 -1935
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bad_executor.hpp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking.hpp +0 -1362
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking_adaptation.hpp +0 -1082
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context.hpp +0 -193
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context_as.hpp +0 -192
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp +0 -118
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/bad_executor.ipp +0 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/invocable_archetype.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/mapping.hpp +0 -1004
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/occupancy.hpp +0 -186
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/outstanding_work.hpp +0 -755
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/prefer_only.hpp +0 -330
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/relationship.hpp +0 -753
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution.hpp +0 -33
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution_context.hpp +0 -390
- data/src/cxx_supportlib/vendor-modified/boost/asio/executor.hpp +0 -365
- data/src/cxx_supportlib/vendor-modified/boost/asio/executor_work_guard.hpp +0 -364
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/append.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_single.hpp +0 -134
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_tuple.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/awaitable_operators.hpp +0 -538
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_channel.hpp +0 -516
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_concurrent_channel.hpp +0 -516
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/cancellation_condition.hpp +0 -154
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_error.hpp +0 -88
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_traits.hpp +0 -303
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_composed.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_spawn.hpp +0 -189
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/concurrent_channel.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro.hpp +0 -295
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro_traits.hpp +0 -230
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/deferred.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_operation.hpp +0 -363
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_receive_op.hpp +0 -128
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_functions.hpp +0 -202
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_op.hpp +0 -149
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_service.hpp +0 -681
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_completion_handler.hpp +0 -171
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_promise_allocator.hpp +0 -142
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/has_signature.hpp +0 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/impl/channel_service.hpp +0 -625
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/partial_promise.hpp +0 -199
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_single.hpp +0 -183
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/channel_error.ipp +0 -63
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/coro.hpp +0 -1224
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/parallel_group.hpp +0 -790
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/promise.hpp +0 -257
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_coro.hpp +0 -216
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_promise.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/parallel_group.hpp +0 -457
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/prepend.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/promise.hpp +0 -226
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_coro.hpp +0 -191
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_promise.hpp +0 -113
- data/src/cxx_supportlib/vendor-modified/boost/asio/file_base.hpp +0 -168
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/basic_endpoint.hpp +0 -191
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/datagram_protocol.hpp +0 -125
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/endpoint.hpp +0 -135
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/impl/endpoint.ipp +0 -112
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/raw_protocol.hpp +0 -123
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/seq_packet_protocol.hpp +0 -124
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/stream_protocol.hpp +0 -129
- data/src/cxx_supportlib/vendor-modified/boost/asio/handler_continuation_hook.hpp +0 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/high_resolution_timer.hpp +0 -41
- data/src/cxx_supportlib/vendor-modified/boost/asio/immediate.hpp +0 -144
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_completion_executor.ipp +0 -128
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_io_executor.ipp +0 -136
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/append.hpp +0 -171
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/as_tuple.hpp +0 -278
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/awaitable.hpp +0 -1198
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +0 -406
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +0 -386
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/cancel_after.hpp +0 -270
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/cancel_at.hpp +0 -270
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/cancellation_signal.ipp +0 -98
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/co_spawn.hpp +0 -459
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +0 -705
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.hpp +0 -75
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.ipp +0 -151
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/consign.hpp +0 -146
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/deferred.hpp +0 -149
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/detached.hpp +0 -79
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/error.ipp +0 -130
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.hpp +0 -79
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.ipp +0 -84
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.hpp +0 -319
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.ipp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.hpp +0 -435
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.ipp +0 -178
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/multiple_exceptions.ipp +0 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/prepend.hpp +0 -172
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +0 -904
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +0 -564
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +0 -2670
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/redirect_error.hpp +0 -289
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.ipp +0 -556
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +0 -1402
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +0 -93
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.hpp +0 -36
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.ipp +0 -94
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_executor.hpp +0 -181
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.hpp +0 -279
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.ipp +0 -144
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_awaitable.hpp +0 -303
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +0 -709
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +0 -782
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +0 -482
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_context.hpp +0 -1507
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_context_strand.hpp +0 -398
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_service.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_service_strand.hpp +0 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address.hpp +0 -283
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4.hpp +0 -423
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_iterator.hpp +0 -158
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_range.hpp +0 -130
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6.hpp +0 -409
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_iterator.hpp +0 -180
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_range.hpp +0 -126
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/bad_address_cast.hpp +0 -65
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_endpoint.hpp +0 -284
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver.hpp +0 -1114
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_entry.hpp +0 -115
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_iterator.hpp +0 -190
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_query.hpp +0 -262
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_results.hpp +0 -309
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/endpoint.hpp +0 -143
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/impl/endpoint.ipp +0 -197
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/socket_option.hpp +0 -568
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/host_name.hpp +0 -44
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/icmp.hpp +0 -117
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.ipp +0 -237
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.ipp +0 -208
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.ipp +0 -344
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/basic_endpoint.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/host_name.ipp +0 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.hpp +0 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.ipp +0 -220
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.hpp +0 -55
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.ipp +0 -189
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/multicast.hpp +0 -193
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v4.hpp +0 -259
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v6.hpp +0 -233
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_base.hpp +0 -131
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_query_base.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/tcp.hpp +0 -157
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/udp.hpp +0 -113
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/unicast.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/v6_only.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_applicable_property.hpp +0 -63
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_contiguous_iterator.hpp +0 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_executor.hpp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_read_buffered.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_write_buffered.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/basic_endpoint.hpp +0 -245
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/connect_pair.hpp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/datagram_protocol.hpp +0 -82
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/endpoint.hpp +0 -141
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/impl/endpoint.ipp +0 -133
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/seq_packet_protocol.hpp +0 -86
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/stream_protocol.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/multiple_exceptions.hpp +0 -54
- data/src/cxx_supportlib/vendor-modified/boost/asio/packaged_task.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/placeholders.hpp +0 -83
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +0 -775
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +0 -561
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor_base.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/stream_descriptor.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/post.hpp +0 -215
- data/src/cxx_supportlib/vendor-modified/boost/asio/prefer.hpp +0 -581
- data/src/cxx_supportlib/vendor-modified/boost/asio/prepend.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/query.hpp +0 -315
- data/src/cxx_supportlib/vendor-modified/boost/asio/random_access_file.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/read.hpp +0 -1549
- data/src/cxx_supportlib/vendor-modified/boost/asio/read_at.hpp +0 -830
- data/src/cxx_supportlib/vendor-modified/boost/asio/read_until.hpp +0 -3204
- data/src/cxx_supportlib/vendor-modified/boost/asio/readable_pipe.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/recycling_allocator.hpp +0 -140
- data/src/cxx_supportlib/vendor-modified/boost/asio/redirect_error.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/registered_buffer.hpp +0 -346
- data/src/cxx_supportlib/vendor-modified/boost/asio/require.hpp +0 -437
- data/src/cxx_supportlib/vendor-modified/boost/asio/require_concept.hpp +0 -347
- data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port_base.hpp +0 -169
- data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set_base.hpp +0 -173
- data/src/cxx_supportlib/vendor-modified/boost/asio/socket_base.hpp +0 -561
- data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +0 -873
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context.hpp +0 -764
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context_base.hpp +0 -211
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/buffered_handshake_op.hpp +0 -121
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/engine.hpp +0 -171
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/handshake_op.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/engine.ipp +0 -379
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/openssl_init.ipp +0 -171
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +0 -378
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_init.hpp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_types.hpp +0 -34
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/password_callback.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/read_op.hpp +0 -74
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/shutdown_op.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/stream_core.hpp +0 -219
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/verify_callback.hpp +0 -64
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/write_op.hpp +0 -78
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/error.hpp +0 -129
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/host_name_verification.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.ipp +0 -1324
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/error.ipp +0 -126
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/host_name_verification.ipp +0 -75
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/rfc2818_verification.ipp +0 -166
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/src.hpp +0 -29
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/rfc2818_verification.hpp +0 -100
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream.hpp +0 -1044
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream_base.hpp +0 -54
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_context.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_mode.hpp +0 -65
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl.hpp +0 -28
- data/src/cxx_supportlib/vendor-modified/boost/asio/static_thread_pool.hpp +0 -33
- data/src/cxx_supportlib/vendor-modified/boost/asio/steady_timer.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +0 -559
- data/src/cxx_supportlib/vendor-modified/boost/asio/stream_file.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/streambuf.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_context.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_executor.hpp +0 -673
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_timer.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/this_coro.hpp +0 -269
- data/src/cxx_supportlib/vendor-modified/boost/asio/thread_pool.hpp +0 -965
- data/src/cxx_supportlib/vendor-modified/boost/asio/time_traits.hpp +0 -88
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/equality_comparable.hpp +0 -102
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_member.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_free.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_member.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_free.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_member.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_static_constexpr_member.hpp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_free.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_member.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_free.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_member.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_query.hpp +0 -104
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require.hpp +0 -117
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require_concept.hpp +0 -118
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/buffer.hpp +0 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/executor.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/internet.hpp +0 -40
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/io_context.hpp +0 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/net.hpp +0 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/netfwd.hpp +0 -238
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/socket.hpp +0 -27
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/timer.hpp +0 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/unyield.hpp +0 -21
- data/src/cxx_supportlib/vendor-modified/boost/asio/use_awaitable.hpp +0 -163
- data/src/cxx_supportlib/vendor-modified/boost/asio/use_future.hpp +0 -161
- data/src/cxx_supportlib/vendor-modified/boost/asio/uses_executor.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +0 -23
- data/src/cxx_supportlib/vendor-modified/boost/asio/wait_traits.hpp +0 -58
- data/src/cxx_supportlib/vendor-modified/boost/asio/writable_pipe.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/write.hpp +0 -1528
- data/src/cxx_supportlib/vendor-modified/boost/asio/write_at.hpp +0 -843
- data/src/cxx_supportlib/vendor-modified/boost/asio/yield.hpp +0 -23
- data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +0 -195
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/old_optional_implementation.hpp +0 -1059
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/operator_bool.hpp +0 -64
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/requires_cxx11.hpp +0 -23
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_forward.hpp +0 -52
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_nullptr_t.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/websocketpp/COPYING +0 -145
- data/src/cxx_supportlib/vendor-modified/websocketpp/changelog.md +0 -444
- data/src/cxx_supportlib/vendor-modified/websocketpp/readme.md +0 -49
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/base64/base64.hpp +0 -178
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/client.hpp +0 -33
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/close.hpp +0 -353
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/asio.hpp +0 -141
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/asio_ssl.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/chrono.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/connection_hdl.hpp +0 -52
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/cpp11.hpp +0 -162
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/functional.hpp +0 -100
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/md5.hpp +0 -448
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/memory.hpp +0 -88
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/network.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/platforms.hpp +0 -46
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/random.hpp +0 -82
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/regex.hpp +0 -59
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/stdint.hpp +0 -73
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/system_error.hpp +0 -84
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/thread.hpp +0 -88
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/time.hpp +0 -56
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/type_traits.hpp +0 -65
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/concurrency/basic.hpp +0 -46
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/concurrency/none.hpp +0 -80
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/asio.hpp +0 -77
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/asio_client.hpp +0 -77
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/asio_no_tls.hpp +0 -73
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/asio_no_tls_client.hpp +0 -73
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/boost_config.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/core.hpp +0 -297
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/core_client.hpp +0 -294
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/debug.hpp +0 -286
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/debug_asio.hpp +0 -77
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/debug_asio_no_tls.hpp +0 -73
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/minimal_client.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/minimal_server.hpp +0 -312
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/connection.hpp +0 -1642
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/connection_base.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/endpoint.hpp +0 -700
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/endpoint_base.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/error.hpp +0 -277
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/extensions/extension.hpp +0 -102
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/extensions/permessage_deflate/disabled.hpp +0 -129
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/extensions/permessage_deflate/enabled.hpp +0 -817
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/frame.hpp +0 -853
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/constants.hpp +0 -308
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/impl/parser.hpp +0 -200
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/impl/request.hpp +0 -191
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/impl/response.hpp +0 -266
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/parser.hpp +0 -629
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/request.hpp +0 -124
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/response.hpp +0 -188
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/impl/connection_impl.hpp +0 -2375
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/impl/endpoint_impl.hpp +0 -269
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/impl/utilities_impl.hpp +0 -87
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/logger/basic.hpp +0 -199
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/logger/levels.hpp +0 -203
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/logger/stub.hpp +0 -119
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/logger/syslog.hpp +0 -146
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/message_buffer/alloc.hpp +0 -105
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/message_buffer/message.hpp +0 -340
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/message_buffer/pool.hpp +0 -229
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/base.hpp +0 -299
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/hybi00.hpp +0 -462
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/hybi07.hpp +0 -78
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/hybi08.hpp +0 -83
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/hybi13.hpp +0 -1072
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/processor.hpp +0 -407
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/random/none.hpp +0 -60
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/random/random_device.hpp +0 -80
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/roles/client_endpoint.hpp +0 -173
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/roles/server_endpoint.hpp +0 -195
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/server.hpp +0 -33
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/sha1/sha1.hpp +0 -189
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/base.hpp +0 -232
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/connection.hpp +0 -1197
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/endpoint.hpp +0 -1182
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/security/base.hpp +0 -159
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/security/none.hpp +0 -372
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/security/tls.hpp +0 -474
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/base/connection.hpp +0 -238
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/base/endpoint.hpp +0 -77
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/debug/base.hpp +0 -104
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/debug/connection.hpp +0 -412
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/debug/endpoint.hpp +0 -140
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/iostream/base.hpp +0 -133
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/iostream/connection.hpp +0 -714
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/iostream/endpoint.hpp +0 -222
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/stub/base.hpp +0 -95
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/stub/connection.hpp +0 -286
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/stub/endpoint.hpp +0 -140
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/uri.hpp +0 -356
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/utf8_validator.hpp +0 -154
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/utilities.hpp +0 -180
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/version.hpp +0 -61
@@ -0,0 +1,1202 @@
|
|
1
|
+
/* Fast open-addressing, node-based concurrent hashmap.
|
2
|
+
*
|
3
|
+
* Copyright 2023 Christian Mazakas.
|
4
|
+
* Copyright 2023-2024 Joaquin M Lopez Munoz.
|
5
|
+
* Distributed under the Boost Software License, Version 1.0.
|
6
|
+
* (See accompanying file LICENSE_1_0.txt or copy at
|
7
|
+
* http://www.boost.org/LICENSE_1_0.txt)
|
8
|
+
*
|
9
|
+
* See https://www.boost.org/libs/unordered for library home page.
|
10
|
+
*/
|
11
|
+
|
12
|
+
#ifndef BOOST_UNORDERED_CONCURRENT_NODE_MAP_HPP
|
13
|
+
#define BOOST_UNORDERED_CONCURRENT_NODE_MAP_HPP
|
14
|
+
|
15
|
+
#include <boost/unordered/concurrent_node_map_fwd.hpp>
|
16
|
+
#include <boost/unordered/detail/concurrent_static_asserts.hpp>
|
17
|
+
#include <boost/unordered/detail/foa/concurrent_table.hpp>
|
18
|
+
#include <boost/unordered/detail/foa/element_type.hpp>
|
19
|
+
#include <boost/unordered/detail/foa/node_map_handle.hpp>
|
20
|
+
#include <boost/unordered/detail/foa/node_map_types.hpp>
|
21
|
+
#include <boost/unordered/detail/type_traits.hpp>
|
22
|
+
#include <boost/unordered/unordered_node_map_fwd.hpp>
|
23
|
+
|
24
|
+
#include <boost/container_hash/hash.hpp>
|
25
|
+
#include <boost/core/allocator_access.hpp>
|
26
|
+
#include <boost/core/serialization.hpp>
|
27
|
+
|
28
|
+
#include <type_traits>
|
29
|
+
|
30
|
+
namespace boost {
|
31
|
+
namespace unordered {
|
32
|
+
template <class Key, class T, class Hash, class Pred, class Allocator>
|
33
|
+
class concurrent_node_map
|
34
|
+
{
|
35
|
+
private:
|
36
|
+
template <class Key2, class T2, class Hash2, class Pred2,
|
37
|
+
class Allocator2>
|
38
|
+
friend class concurrent_node_map;
|
39
|
+
template <class Key2, class T2, class Hash2, class Pred2,
|
40
|
+
class Allocator2>
|
41
|
+
friend class unordered_node_map;
|
42
|
+
|
43
|
+
using type_policy = detail::foa::node_map_types<Key, T,
|
44
|
+
typename boost::allocator_void_pointer<Allocator>::type>;
|
45
|
+
|
46
|
+
using table_type =
|
47
|
+
detail::foa::concurrent_table<type_policy, Hash, Pred, Allocator>;
|
48
|
+
|
49
|
+
table_type table_;
|
50
|
+
|
51
|
+
template <class K, class V, class H, class KE, class A>
|
52
|
+
bool friend operator==(concurrent_node_map<K, V, H, KE, A> const& lhs,
|
53
|
+
concurrent_node_map<K, V, H, KE, A> const& rhs);
|
54
|
+
|
55
|
+
template <class K, class V, class H, class KE, class A, class Predicate>
|
56
|
+
friend typename concurrent_node_map<K, V, H, KE, A>::size_type erase_if(
|
57
|
+
concurrent_node_map<K, V, H, KE, A>& set, Predicate pred);
|
58
|
+
|
59
|
+
template<class Archive, class K, class V, class H, class KE, class A>
|
60
|
+
friend void serialize(
|
61
|
+
Archive& ar, concurrent_node_map<K, V, H, KE, A>& c,
|
62
|
+
unsigned int version);
|
63
|
+
|
64
|
+
public:
|
65
|
+
using key_type = Key;
|
66
|
+
using mapped_type = T;
|
67
|
+
using value_type = typename type_policy::value_type;
|
68
|
+
using init_type = typename type_policy::init_type;
|
69
|
+
using size_type = std::size_t;
|
70
|
+
using difference_type = std::ptrdiff_t;
|
71
|
+
using hasher = typename boost::unordered::detail::type_identity<Hash>::type;
|
72
|
+
using key_equal = typename boost::unordered::detail::type_identity<Pred>::type;
|
73
|
+
using allocator_type = typename boost::unordered::detail::type_identity<Allocator>::type;
|
74
|
+
using reference = value_type&;
|
75
|
+
using const_reference = value_type const&;
|
76
|
+
using pointer = typename boost::allocator_pointer<allocator_type>::type;
|
77
|
+
using const_pointer =
|
78
|
+
typename boost::allocator_const_pointer<allocator_type>::type;
|
79
|
+
using node_type = detail::foa::node_map_handle<type_policy,
|
80
|
+
typename boost::allocator_rebind<Allocator,
|
81
|
+
typename type_policy::value_type>::type>;
|
82
|
+
using insert_return_type =
|
83
|
+
detail::foa::iteratorless_insert_return_type<node_type>;
|
84
|
+
static constexpr size_type bulk_visit_size = table_type::bulk_visit_size;
|
85
|
+
|
86
|
+
#if defined(BOOST_UNORDERED_ENABLE_STATS)
|
87
|
+
using stats = typename table_type::stats;
|
88
|
+
#endif
|
89
|
+
|
90
|
+
concurrent_node_map()
|
91
|
+
: concurrent_node_map(detail::foa::default_bucket_count)
|
92
|
+
{
|
93
|
+
}
|
94
|
+
|
95
|
+
explicit concurrent_node_map(size_type n, const hasher& hf = hasher(),
|
96
|
+
const key_equal& eql = key_equal(),
|
97
|
+
const allocator_type& a = allocator_type())
|
98
|
+
: table_(n, hf, eql, a)
|
99
|
+
{
|
100
|
+
}
|
101
|
+
|
102
|
+
template <class InputIterator>
|
103
|
+
concurrent_node_map(InputIterator f, InputIterator l,
|
104
|
+
size_type n = detail::foa::default_bucket_count,
|
105
|
+
const hasher& hf = hasher(), const key_equal& eql = key_equal(),
|
106
|
+
const allocator_type& a = allocator_type())
|
107
|
+
: table_(n, hf, eql, a)
|
108
|
+
{
|
109
|
+
this->insert(f, l);
|
110
|
+
}
|
111
|
+
|
112
|
+
concurrent_node_map(concurrent_node_map const& rhs)
|
113
|
+
: table_(rhs.table_,
|
114
|
+
boost::allocator_select_on_container_copy_construction(
|
115
|
+
rhs.get_allocator()))
|
116
|
+
{
|
117
|
+
}
|
118
|
+
|
119
|
+
concurrent_node_map(concurrent_node_map&& rhs)
|
120
|
+
: table_(std::move(rhs.table_))
|
121
|
+
{
|
122
|
+
}
|
123
|
+
|
124
|
+
template <class InputIterator>
|
125
|
+
concurrent_node_map(
|
126
|
+
InputIterator f, InputIterator l, allocator_type const& a)
|
127
|
+
: concurrent_node_map(f, l, 0, hasher(), key_equal(), a)
|
128
|
+
{
|
129
|
+
}
|
130
|
+
|
131
|
+
explicit concurrent_node_map(allocator_type const& a)
|
132
|
+
: table_(detail::foa::default_bucket_count, hasher(), key_equal(), a)
|
133
|
+
{
|
134
|
+
}
|
135
|
+
|
136
|
+
concurrent_node_map(
|
137
|
+
concurrent_node_map const& rhs, allocator_type const& a)
|
138
|
+
: table_(rhs.table_, a)
|
139
|
+
{
|
140
|
+
}
|
141
|
+
|
142
|
+
concurrent_node_map(concurrent_node_map&& rhs, allocator_type const& a)
|
143
|
+
: table_(std::move(rhs.table_), a)
|
144
|
+
{
|
145
|
+
}
|
146
|
+
|
147
|
+
concurrent_node_map(std::initializer_list<value_type> il,
|
148
|
+
size_type n = detail::foa::default_bucket_count,
|
149
|
+
const hasher& hf = hasher(), const key_equal& eql = key_equal(),
|
150
|
+
const allocator_type& a = allocator_type())
|
151
|
+
: concurrent_node_map(n, hf, eql, a)
|
152
|
+
{
|
153
|
+
this->insert(il.begin(), il.end());
|
154
|
+
}
|
155
|
+
|
156
|
+
concurrent_node_map(size_type n, const allocator_type& a)
|
157
|
+
: concurrent_node_map(n, hasher(), key_equal(), a)
|
158
|
+
{
|
159
|
+
}
|
160
|
+
|
161
|
+
concurrent_node_map(
|
162
|
+
size_type n, const hasher& hf, const allocator_type& a)
|
163
|
+
: concurrent_node_map(n, hf, key_equal(), a)
|
164
|
+
{
|
165
|
+
}
|
166
|
+
|
167
|
+
template <typename InputIterator>
|
168
|
+
concurrent_node_map(
|
169
|
+
InputIterator f, InputIterator l, size_type n, const allocator_type& a)
|
170
|
+
: concurrent_node_map(f, l, n, hasher(), key_equal(), a)
|
171
|
+
{
|
172
|
+
}
|
173
|
+
|
174
|
+
template <typename InputIterator>
|
175
|
+
concurrent_node_map(InputIterator f, InputIterator l, size_type n,
|
176
|
+
const hasher& hf, const allocator_type& a)
|
177
|
+
: concurrent_node_map(f, l, n, hf, key_equal(), a)
|
178
|
+
{
|
179
|
+
}
|
180
|
+
|
181
|
+
concurrent_node_map(
|
182
|
+
std::initializer_list<value_type> il, const allocator_type& a)
|
183
|
+
: concurrent_node_map(
|
184
|
+
il, detail::foa::default_bucket_count, hasher(), key_equal(), a)
|
185
|
+
{
|
186
|
+
}
|
187
|
+
|
188
|
+
concurrent_node_map(std::initializer_list<value_type> il, size_type n,
|
189
|
+
const allocator_type& a)
|
190
|
+
: concurrent_node_map(il, n, hasher(), key_equal(), a)
|
191
|
+
{
|
192
|
+
}
|
193
|
+
|
194
|
+
concurrent_node_map(std::initializer_list<value_type> il, size_type n,
|
195
|
+
const hasher& hf, const allocator_type& a)
|
196
|
+
: concurrent_node_map(il, n, hf, key_equal(), a)
|
197
|
+
{
|
198
|
+
}
|
199
|
+
|
200
|
+
template <bool avoid_explicit_instantiation = true>
|
201
|
+
concurrent_node_map(
|
202
|
+
unordered_node_map<Key, T, Hash, Pred, Allocator>&& other)
|
203
|
+
: table_(std::move(other.table_))
|
204
|
+
{
|
205
|
+
}
|
206
|
+
|
207
|
+
~concurrent_node_map() = default;
|
208
|
+
|
209
|
+
concurrent_node_map& operator=(concurrent_node_map const& rhs)
|
210
|
+
{
|
211
|
+
table_ = rhs.table_;
|
212
|
+
return *this;
|
213
|
+
}
|
214
|
+
|
215
|
+
concurrent_node_map& operator=(concurrent_node_map&& rhs) noexcept(
|
216
|
+
noexcept(std::declval<table_type&>() = std::declval<table_type&&>()))
|
217
|
+
{
|
218
|
+
table_ = std::move(rhs.table_);
|
219
|
+
return *this;
|
220
|
+
}
|
221
|
+
|
222
|
+
concurrent_node_map& operator=(std::initializer_list<value_type> ilist)
|
223
|
+
{
|
224
|
+
table_ = ilist;
|
225
|
+
return *this;
|
226
|
+
}
|
227
|
+
|
228
|
+
/// Capacity
|
229
|
+
///
|
230
|
+
|
231
|
+
size_type size() const noexcept { return table_.size(); }
|
232
|
+
size_type max_size() const noexcept { return table_.max_size(); }
|
233
|
+
|
234
|
+
BOOST_ATTRIBUTE_NODISCARD bool empty() const noexcept
|
235
|
+
{
|
236
|
+
return size() == 0;
|
237
|
+
}
|
238
|
+
|
239
|
+
template <class F>
|
240
|
+
BOOST_FORCEINLINE size_type visit(key_type const& k, F f)
|
241
|
+
{
|
242
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F)
|
243
|
+
return table_.visit(k, f);
|
244
|
+
}
|
245
|
+
|
246
|
+
template <class F>
|
247
|
+
BOOST_FORCEINLINE size_type visit(key_type const& k, F f) const
|
248
|
+
{
|
249
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
250
|
+
return table_.visit(k, f);
|
251
|
+
}
|
252
|
+
|
253
|
+
template <class F>
|
254
|
+
BOOST_FORCEINLINE size_type cvisit(key_type const& k, F f) const
|
255
|
+
{
|
256
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
257
|
+
return table_.visit(k, f);
|
258
|
+
}
|
259
|
+
|
260
|
+
template <class K, class F>
|
261
|
+
BOOST_FORCEINLINE typename std::enable_if<
|
262
|
+
detail::are_transparent<K, hasher, key_equal>::value, size_type>::type
|
263
|
+
visit(K&& k, F f)
|
264
|
+
{
|
265
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F)
|
266
|
+
return table_.visit(std::forward<K>(k), f);
|
267
|
+
}
|
268
|
+
|
269
|
+
template <class K, class F>
|
270
|
+
BOOST_FORCEINLINE typename std::enable_if<
|
271
|
+
detail::are_transparent<K, hasher, key_equal>::value, size_type>::type
|
272
|
+
visit(K&& k, F f) const
|
273
|
+
{
|
274
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
275
|
+
return table_.visit(std::forward<K>(k), f);
|
276
|
+
}
|
277
|
+
|
278
|
+
template <class K, class F>
|
279
|
+
BOOST_FORCEINLINE typename std::enable_if<
|
280
|
+
detail::are_transparent<K, hasher, key_equal>::value, size_type>::type
|
281
|
+
cvisit(K&& k, F f) const
|
282
|
+
{
|
283
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
284
|
+
return table_.visit(std::forward<K>(k), f);
|
285
|
+
}
|
286
|
+
|
287
|
+
template<class FwdIterator, class F>
|
288
|
+
BOOST_FORCEINLINE
|
289
|
+
size_t visit(FwdIterator first, FwdIterator last, F f)
|
290
|
+
{
|
291
|
+
BOOST_UNORDERED_STATIC_ASSERT_BULK_VISIT_ITERATOR(FwdIterator)
|
292
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F)
|
293
|
+
return table_.visit(first, last, f);
|
294
|
+
}
|
295
|
+
|
296
|
+
template<class FwdIterator, class F>
|
297
|
+
BOOST_FORCEINLINE
|
298
|
+
size_t visit(FwdIterator first, FwdIterator last, F f) const
|
299
|
+
{
|
300
|
+
BOOST_UNORDERED_STATIC_ASSERT_BULK_VISIT_ITERATOR(FwdIterator)
|
301
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
302
|
+
return table_.visit(first, last, f);
|
303
|
+
}
|
304
|
+
|
305
|
+
template<class FwdIterator, class F>
|
306
|
+
BOOST_FORCEINLINE
|
307
|
+
size_t cvisit(FwdIterator first, FwdIterator last, F f) const
|
308
|
+
{
|
309
|
+
BOOST_UNORDERED_STATIC_ASSERT_BULK_VISIT_ITERATOR(FwdIterator)
|
310
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
311
|
+
return table_.visit(first, last, f);
|
312
|
+
}
|
313
|
+
|
314
|
+
template <class F> size_type visit_all(F f)
|
315
|
+
{
|
316
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F)
|
317
|
+
return table_.visit_all(f);
|
318
|
+
}
|
319
|
+
|
320
|
+
template <class F> size_type visit_all(F f) const
|
321
|
+
{
|
322
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
323
|
+
return table_.visit_all(f);
|
324
|
+
}
|
325
|
+
|
326
|
+
template <class F> size_type cvisit_all(F f) const
|
327
|
+
{
|
328
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
329
|
+
return table_.cvisit_all(f);
|
330
|
+
}
|
331
|
+
|
332
|
+
#if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS)
|
333
|
+
template <class ExecPolicy, class F>
|
334
|
+
typename std::enable_if<detail::is_execution_policy<ExecPolicy>::value,
|
335
|
+
void>::type
|
336
|
+
visit_all(ExecPolicy&& p, F f)
|
337
|
+
{
|
338
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F)
|
339
|
+
BOOST_UNORDERED_STATIC_ASSERT_EXEC_POLICY(ExecPolicy)
|
340
|
+
table_.visit_all(p, f);
|
341
|
+
}
|
342
|
+
|
343
|
+
template <class ExecPolicy, class F>
|
344
|
+
typename std::enable_if<detail::is_execution_policy<ExecPolicy>::value,
|
345
|
+
void>::type
|
346
|
+
visit_all(ExecPolicy&& p, F f) const
|
347
|
+
{
|
348
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
349
|
+
BOOST_UNORDERED_STATIC_ASSERT_EXEC_POLICY(ExecPolicy)
|
350
|
+
table_.visit_all(p, f);
|
351
|
+
}
|
352
|
+
|
353
|
+
template <class ExecPolicy, class F>
|
354
|
+
typename std::enable_if<detail::is_execution_policy<ExecPolicy>::value,
|
355
|
+
void>::type
|
356
|
+
cvisit_all(ExecPolicy&& p, F f) const
|
357
|
+
{
|
358
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
359
|
+
BOOST_UNORDERED_STATIC_ASSERT_EXEC_POLICY(ExecPolicy)
|
360
|
+
table_.cvisit_all(p, f);
|
361
|
+
}
|
362
|
+
#endif
|
363
|
+
|
364
|
+
template <class F> bool visit_while(F f)
|
365
|
+
{
|
366
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F)
|
367
|
+
return table_.visit_while(f);
|
368
|
+
}
|
369
|
+
|
370
|
+
template <class F> bool visit_while(F f) const
|
371
|
+
{
|
372
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
373
|
+
return table_.visit_while(f);
|
374
|
+
}
|
375
|
+
|
376
|
+
template <class F> bool cvisit_while(F f) const
|
377
|
+
{
|
378
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
379
|
+
return table_.cvisit_while(f);
|
380
|
+
}
|
381
|
+
|
382
|
+
#if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS)
|
383
|
+
template <class ExecPolicy, class F>
|
384
|
+
typename std::enable_if<detail::is_execution_policy<ExecPolicy>::value,
|
385
|
+
bool>::type
|
386
|
+
visit_while(ExecPolicy&& p, F f)
|
387
|
+
{
|
388
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F)
|
389
|
+
BOOST_UNORDERED_STATIC_ASSERT_EXEC_POLICY(ExecPolicy)
|
390
|
+
return table_.visit_while(p, f);
|
391
|
+
}
|
392
|
+
|
393
|
+
template <class ExecPolicy, class F>
|
394
|
+
typename std::enable_if<detail::is_execution_policy<ExecPolicy>::value,
|
395
|
+
bool>::type
|
396
|
+
visit_while(ExecPolicy&& p, F f) const
|
397
|
+
{
|
398
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
399
|
+
BOOST_UNORDERED_STATIC_ASSERT_EXEC_POLICY(ExecPolicy)
|
400
|
+
return table_.visit_while(p, f);
|
401
|
+
}
|
402
|
+
|
403
|
+
template <class ExecPolicy, class F>
|
404
|
+
typename std::enable_if<detail::is_execution_policy<ExecPolicy>::value,
|
405
|
+
bool>::type
|
406
|
+
cvisit_while(ExecPolicy&& p, F f) const
|
407
|
+
{
|
408
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
409
|
+
BOOST_UNORDERED_STATIC_ASSERT_EXEC_POLICY(ExecPolicy)
|
410
|
+
return table_.cvisit_while(p, f);
|
411
|
+
}
|
412
|
+
#endif
|
413
|
+
|
414
|
+
/// Modifiers
|
415
|
+
///
|
416
|
+
|
417
|
+
template <class Ty>
|
418
|
+
BOOST_FORCEINLINE auto insert(Ty&& value)
|
419
|
+
-> decltype(table_.insert(std::forward<Ty>(value)))
|
420
|
+
{
|
421
|
+
return table_.insert(std::forward<Ty>(value));
|
422
|
+
}
|
423
|
+
|
424
|
+
BOOST_FORCEINLINE bool insert(init_type&& obj)
|
425
|
+
{
|
426
|
+
return table_.insert(std::move(obj));
|
427
|
+
}
|
428
|
+
|
429
|
+
template <class InputIterator>
|
430
|
+
size_type insert(InputIterator begin, InputIterator end)
|
431
|
+
{
|
432
|
+
size_type count_elements = 0;
|
433
|
+
for (auto pos = begin; pos != end; ++pos, ++count_elements) {
|
434
|
+
table_.emplace(*pos);
|
435
|
+
}
|
436
|
+
return count_elements;
|
437
|
+
}
|
438
|
+
|
439
|
+
size_type insert(std::initializer_list<value_type> ilist)
|
440
|
+
{
|
441
|
+
return this->insert(ilist.begin(), ilist.end());
|
442
|
+
}
|
443
|
+
|
444
|
+
insert_return_type insert(node_type&& nh)
|
445
|
+
{
|
446
|
+
using access = detail::foa::node_handle_access;
|
447
|
+
|
448
|
+
if (nh.empty()) {
|
449
|
+
return {false, node_type{}};
|
450
|
+
}
|
451
|
+
|
452
|
+
// Caveat: get_allocator() incurs synchronization (not cheap)
|
453
|
+
BOOST_ASSERT(get_allocator() == nh.get_allocator());
|
454
|
+
|
455
|
+
if (table_.insert(std::move(access::element(nh)))) {
|
456
|
+
access::reset(nh);
|
457
|
+
return {true, node_type{}};
|
458
|
+
} else {
|
459
|
+
return {false, std::move(nh)};
|
460
|
+
}
|
461
|
+
}
|
462
|
+
|
463
|
+
template <class M>
|
464
|
+
BOOST_FORCEINLINE bool insert_or_assign(key_type const& k, M&& obj)
|
465
|
+
{
|
466
|
+
return table_.try_emplace_or_visit(k, std::forward<M>(obj),
|
467
|
+
[&](value_type& m) { m.second = std::forward<M>(obj); });
|
468
|
+
}
|
469
|
+
|
470
|
+
template <class M>
|
471
|
+
BOOST_FORCEINLINE bool insert_or_assign(key_type&& k, M&& obj)
|
472
|
+
{
|
473
|
+
return table_.try_emplace_or_visit(std::move(k), std::forward<M>(obj),
|
474
|
+
[&](value_type& m) { m.second = std::forward<M>(obj); });
|
475
|
+
}
|
476
|
+
|
477
|
+
template <class K, class M>
|
478
|
+
BOOST_FORCEINLINE typename std::enable_if<
|
479
|
+
detail::are_transparent<K, hasher, key_equal>::value, bool>::type
|
480
|
+
insert_or_assign(K&& k, M&& obj)
|
481
|
+
{
|
482
|
+
return table_.try_emplace_or_visit(std::forward<K>(k),
|
483
|
+
std::forward<M>(obj),
|
484
|
+
[&](value_type& m) { m.second = std::forward<M>(obj); });
|
485
|
+
}
|
486
|
+
|
487
|
+
template <class Ty, class F>
|
488
|
+
BOOST_FORCEINLINE auto insert_or_visit(Ty&& value, F f)
|
489
|
+
-> decltype(table_.insert_or_visit(std::forward<Ty>(value), f))
|
490
|
+
{
|
491
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F)
|
492
|
+
return table_.insert_or_visit(std::forward<Ty>(value), f);
|
493
|
+
}
|
494
|
+
|
495
|
+
template <class F>
|
496
|
+
BOOST_FORCEINLINE bool insert_or_visit(init_type&& obj, F f)
|
497
|
+
{
|
498
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F)
|
499
|
+
return table_.insert_or_visit(std::move(obj), f);
|
500
|
+
}
|
501
|
+
|
502
|
+
template <class InputIterator, class F>
|
503
|
+
size_type insert_or_visit(InputIterator first, InputIterator last, F f)
|
504
|
+
{
|
505
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F)
|
506
|
+
size_type count_elements = 0;
|
507
|
+
for (; first != last; ++first, ++count_elements) {
|
508
|
+
table_.emplace_or_visit(*first, f);
|
509
|
+
}
|
510
|
+
return count_elements;
|
511
|
+
}
|
512
|
+
|
513
|
+
template <class F>
|
514
|
+
size_type insert_or_visit(std::initializer_list<value_type> ilist, F f)
|
515
|
+
{
|
516
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F)
|
517
|
+
return this->insert_or_visit(ilist.begin(), ilist.end(), std::ref(f));
|
518
|
+
}
|
519
|
+
|
520
|
+
template <class F>
|
521
|
+
insert_return_type insert_or_visit(node_type&& nh, F f)
|
522
|
+
{
|
523
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F)
|
524
|
+
using access = detail::foa::node_handle_access;
|
525
|
+
|
526
|
+
if (nh.empty()) {
|
527
|
+
return {false, node_type{}};
|
528
|
+
}
|
529
|
+
|
530
|
+
// Caveat: get_allocator() incurs synchronization (not cheap)
|
531
|
+
BOOST_ASSERT(get_allocator() == nh.get_allocator());
|
532
|
+
|
533
|
+
if (table_.insert_or_visit(std::move(access::element(nh)), f)) {
|
534
|
+
access::reset(nh);
|
535
|
+
return {true, node_type{}};
|
536
|
+
} else {
|
537
|
+
return {false, std::move(nh)};
|
538
|
+
}
|
539
|
+
}
|
540
|
+
|
541
|
+
template <class Ty, class F>
|
542
|
+
BOOST_FORCEINLINE auto insert_or_cvisit(Ty&& value, F f)
|
543
|
+
-> decltype(table_.insert_or_cvisit(std::forward<Ty>(value), f))
|
544
|
+
{
|
545
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
546
|
+
return table_.insert_or_cvisit(std::forward<Ty>(value), f);
|
547
|
+
}
|
548
|
+
|
549
|
+
template <class F>
|
550
|
+
BOOST_FORCEINLINE bool insert_or_cvisit(init_type&& obj, F f)
|
551
|
+
{
|
552
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
553
|
+
return table_.insert_or_cvisit(std::move(obj), f);
|
554
|
+
}
|
555
|
+
|
556
|
+
template <class InputIterator, class F>
|
557
|
+
size_type insert_or_cvisit(InputIterator first, InputIterator last, F f)
|
558
|
+
{
|
559
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
560
|
+
size_type count_elements = 0;
|
561
|
+
for (; first != last; ++first, ++count_elements) {
|
562
|
+
table_.emplace_or_cvisit(*first, f);
|
563
|
+
}
|
564
|
+
return count_elements;
|
565
|
+
}
|
566
|
+
|
567
|
+
template <class F>
|
568
|
+
size_type insert_or_cvisit(std::initializer_list<value_type> ilist, F f)
|
569
|
+
{
|
570
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
571
|
+
return this->insert_or_cvisit(ilist.begin(), ilist.end(), std::ref(f));
|
572
|
+
}
|
573
|
+
|
574
|
+
template <class F>
|
575
|
+
insert_return_type insert_or_cvisit(node_type&& nh, F f)
|
576
|
+
{
|
577
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
578
|
+
using access = detail::foa::node_handle_access;
|
579
|
+
|
580
|
+
if (nh.empty()) {
|
581
|
+
return {false, node_type{}};
|
582
|
+
}
|
583
|
+
|
584
|
+
// Caveat: get_allocator() incurs synchronization (not cheap)
|
585
|
+
BOOST_ASSERT(get_allocator() == nh.get_allocator());
|
586
|
+
|
587
|
+
if (table_.insert_or_cvisit(std::move(access::element(nh)), f)) {
|
588
|
+
access::reset(nh);
|
589
|
+
return {true, node_type{}};
|
590
|
+
} else {
|
591
|
+
return {false, std::move(nh)};
|
592
|
+
}
|
593
|
+
}
|
594
|
+
|
595
|
+
template <class Ty, class F1, class F2>
|
596
|
+
BOOST_FORCEINLINE auto insert_and_visit(Ty&& value, F1 f1, F2 f2)
|
597
|
+
-> decltype(table_.insert_and_visit(std::forward<Ty>(value), f1, f2))
|
598
|
+
{
|
599
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F1)
|
600
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F2)
|
601
|
+
return table_.insert_and_visit(std::forward<Ty>(value), f1, f2);
|
602
|
+
}
|
603
|
+
|
604
|
+
template <class F1, class F2>
|
605
|
+
BOOST_FORCEINLINE bool insert_and_visit(init_type&& obj, F1 f1, F2 f2)
|
606
|
+
{
|
607
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F1)
|
608
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F2)
|
609
|
+
return table_.insert_and_visit(std::move(obj), f1, f2);
|
610
|
+
}
|
611
|
+
|
612
|
+
template <class InputIterator, class F1, class F2>
|
613
|
+
size_type insert_and_visit(
|
614
|
+
InputIterator first, InputIterator last, F1 f1, F2 f2)
|
615
|
+
{
|
616
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F1)
|
617
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F2)
|
618
|
+
size_type count_elements = 0;
|
619
|
+
for (; first != last; ++first, ++count_elements) {
|
620
|
+
table_.emplace_and_visit(*first, f1, f2);
|
621
|
+
}
|
622
|
+
return count_elements;
|
623
|
+
}
|
624
|
+
|
625
|
+
template <class F1, class F2>
|
626
|
+
size_type insert_and_visit(
|
627
|
+
std::initializer_list<value_type> ilist, F1 f1, F2 f2)
|
628
|
+
{
|
629
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F1)
|
630
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F2)
|
631
|
+
return this->insert_and_visit(
|
632
|
+
ilist.begin(), ilist.end(), std::ref(f1), std::ref(f2));
|
633
|
+
}
|
634
|
+
|
635
|
+
template <class F1, class F2>
|
636
|
+
insert_return_type insert_and_visit(node_type&& nh, F1 f1, F2 f2)
|
637
|
+
{
|
638
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F1)
|
639
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F2)
|
640
|
+
using access = detail::foa::node_handle_access;
|
641
|
+
|
642
|
+
if (nh.empty()) {
|
643
|
+
return {false, node_type{}};
|
644
|
+
}
|
645
|
+
|
646
|
+
// Caveat: get_allocator() incurs synchronization (not cheap)
|
647
|
+
BOOST_ASSERT(get_allocator() == nh.get_allocator());
|
648
|
+
|
649
|
+
if (table_.insert_and_visit(std::move(access::element(nh)), f1, f2)) {
|
650
|
+
access::reset(nh);
|
651
|
+
return {true, node_type{}};
|
652
|
+
} else {
|
653
|
+
return {false, std::move(nh)};
|
654
|
+
}
|
655
|
+
}
|
656
|
+
|
657
|
+
template <class Ty, class F1, class F2>
|
658
|
+
BOOST_FORCEINLINE auto insert_and_cvisit(Ty&& value, F1 f1, F2 f2)
|
659
|
+
-> decltype(table_.insert_and_cvisit(std::forward<Ty>(value), f1, f2))
|
660
|
+
{
|
661
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F1)
|
662
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F2)
|
663
|
+
return table_.insert_and_cvisit(std::forward<Ty>(value), f1, f2);
|
664
|
+
}
|
665
|
+
|
666
|
+
template <class F1, class F2>
|
667
|
+
BOOST_FORCEINLINE bool insert_and_cvisit(init_type&& obj, F1 f1, F2 f2)
|
668
|
+
{
|
669
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F1)
|
670
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F2)
|
671
|
+
return table_.insert_and_cvisit(std::move(obj), f1, f2);
|
672
|
+
}
|
673
|
+
|
674
|
+
template <class InputIterator, class F1, class F2>
|
675
|
+
size_type insert_and_cvisit(
|
676
|
+
InputIterator first, InputIterator last, F1 f1, F2 f2)
|
677
|
+
{
|
678
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F1)
|
679
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F2)
|
680
|
+
size_type count_elements = 0;
|
681
|
+
for (; first != last; ++first, ++count_elements) {
|
682
|
+
table_.emplace_and_cvisit(*first, f1, f2);
|
683
|
+
}
|
684
|
+
return count_elements;
|
685
|
+
}
|
686
|
+
|
687
|
+
template <class F1, class F2>
|
688
|
+
size_type insert_and_cvisit(
|
689
|
+
std::initializer_list<value_type> ilist, F1 f1, F2 f2)
|
690
|
+
{
|
691
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F1)
|
692
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F2)
|
693
|
+
return this->insert_and_cvisit(
|
694
|
+
ilist.begin(), ilist.end(), std::ref(f1), std::ref(f2));
|
695
|
+
}
|
696
|
+
|
697
|
+
template <class F1, class F2>
|
698
|
+
insert_return_type insert_and_cvisit(node_type&& nh, F1 f1, F2 f2)
|
699
|
+
{
|
700
|
+
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F1)
|
701
|
+
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F2)
|
702
|
+
using access = detail::foa::node_handle_access;
|
703
|
+
|
704
|
+
if (nh.empty()) {
|
705
|
+
return {false, node_type{}};
|
706
|
+
}
|
707
|
+
|
708
|
+
// Caveat: get_allocator() incurs synchronization (not cheap)
|
709
|
+
BOOST_ASSERT(get_allocator() == nh.get_allocator());
|
710
|
+
|
711
|
+
if (table_.insert_and_cvisit(std::move(access::element(nh)), f1, f2)) {
|
712
|
+
access::reset(nh);
|
713
|
+
return {true, node_type{}};
|
714
|
+
} else {
|
715
|
+
return {false, std::move(nh)};
|
716
|
+
}
|
717
|
+
}
|
718
|
+
|
719
|
+
template <class... Args> BOOST_FORCEINLINE bool emplace(Args&&... args)
|
720
|
+
{
|
721
|
+
return table_.emplace(std::forward<Args>(args)...);
|
722
|
+
}
|
723
|
+
|
724
|
+
template <class Arg, class... Args>
|
725
|
+
BOOST_FORCEINLINE bool emplace_or_visit(Arg&& arg, Args&&... args)
|
726
|
+
{
|
727
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_INVOCABLE(Arg, Args...)
|
728
|
+
return table_.emplace_or_visit(
|
729
|
+
std::forward<Arg>(arg), std::forward<Args>(args)...);
|
730
|
+
}
|
731
|
+
|
732
|
+
template <class Arg, class... Args>
|
733
|
+
BOOST_FORCEINLINE bool emplace_or_cvisit(Arg&& arg, Args&&... args)
|
734
|
+
{
|
735
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_CONST_INVOCABLE(Arg, Args...)
|
736
|
+
return table_.emplace_or_cvisit(
|
737
|
+
std::forward<Arg>(arg), std::forward<Args>(args)...);
|
738
|
+
}
|
739
|
+
|
740
|
+
template <class Arg1, class Arg2, class... Args>
|
741
|
+
BOOST_FORCEINLINE bool emplace_and_visit(
|
742
|
+
Arg1&& arg1, Arg2&& arg2, Args&&... args)
|
743
|
+
{
|
744
|
+
BOOST_UNORDERED_STATIC_ASSERT_PENULTIMATE_ARG_INVOCABLE(
|
745
|
+
Arg1, Arg2, Args...)
|
746
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_INVOCABLE(Arg2, Args...)
|
747
|
+
return table_.emplace_and_visit(
|
748
|
+
std::forward<Arg1>(arg1), std::forward<Arg2>(arg2),
|
749
|
+
std::forward<Args>(args)...);
|
750
|
+
}
|
751
|
+
|
752
|
+
template <class Arg1, class Arg2, class... Args>
|
753
|
+
BOOST_FORCEINLINE bool emplace_and_cvisit(
|
754
|
+
Arg1&& arg1, Arg2&& arg2, Args&&... args)
|
755
|
+
{
|
756
|
+
BOOST_UNORDERED_STATIC_ASSERT_PENULTIMATE_ARG_INVOCABLE(
|
757
|
+
Arg1, Arg2, Args...)
|
758
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_CONST_INVOCABLE(Arg2, Args...)
|
759
|
+
return table_.emplace_and_cvisit(
|
760
|
+
std::forward<Arg1>(arg1), std::forward<Arg2>(arg2),
|
761
|
+
std::forward<Args>(args)...);
|
762
|
+
}
|
763
|
+
|
764
|
+
template <class... Args>
|
765
|
+
BOOST_FORCEINLINE bool try_emplace(key_type const& k, Args&&... args)
|
766
|
+
{
|
767
|
+
return table_.try_emplace(k, std::forward<Args>(args)...);
|
768
|
+
}
|
769
|
+
|
770
|
+
template <class... Args>
|
771
|
+
BOOST_FORCEINLINE bool try_emplace(key_type&& k, Args&&... args)
|
772
|
+
{
|
773
|
+
return table_.try_emplace(std::move(k), std::forward<Args>(args)...);
|
774
|
+
}
|
775
|
+
|
776
|
+
template <class K, class... Args>
|
777
|
+
BOOST_FORCEINLINE typename std::enable_if<
|
778
|
+
detail::are_transparent<K, hasher, key_equal>::value, bool>::type
|
779
|
+
try_emplace(K&& k, Args&&... args)
|
780
|
+
{
|
781
|
+
return table_.try_emplace(
|
782
|
+
std::forward<K>(k), std::forward<Args>(args)...);
|
783
|
+
}
|
784
|
+
|
785
|
+
template <class Arg, class... Args>
|
786
|
+
BOOST_FORCEINLINE bool try_emplace_or_visit(
|
787
|
+
key_type const& k, Arg&& arg, Args&&... args)
|
788
|
+
{
|
789
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_INVOCABLE(Arg, Args...)
|
790
|
+
return table_.try_emplace_or_visit(
|
791
|
+
k, std::forward<Arg>(arg), std::forward<Args>(args)...);
|
792
|
+
}
|
793
|
+
|
794
|
+
template <class Arg, class... Args>
|
795
|
+
BOOST_FORCEINLINE bool try_emplace_or_cvisit(
|
796
|
+
key_type const& k, Arg&& arg, Args&&... args)
|
797
|
+
{
|
798
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_CONST_INVOCABLE(Arg, Args...)
|
799
|
+
return table_.try_emplace_or_cvisit(
|
800
|
+
k, std::forward<Arg>(arg), std::forward<Args>(args)...);
|
801
|
+
}
|
802
|
+
|
803
|
+
template <class Arg, class... Args>
|
804
|
+
BOOST_FORCEINLINE bool try_emplace_or_visit(
|
805
|
+
key_type&& k, Arg&& arg, Args&&... args)
|
806
|
+
{
|
807
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_INVOCABLE(Arg, Args...)
|
808
|
+
return table_.try_emplace_or_visit(
|
809
|
+
std::move(k), std::forward<Arg>(arg), std::forward<Args>(args)...);
|
810
|
+
}
|
811
|
+
|
812
|
+
template <class Arg, class... Args>
|
813
|
+
BOOST_FORCEINLINE bool try_emplace_or_cvisit(
|
814
|
+
key_type&& k, Arg&& arg, Args&&... args)
|
815
|
+
{
|
816
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_CONST_INVOCABLE(Arg, Args...)
|
817
|
+
return table_.try_emplace_or_cvisit(
|
818
|
+
std::move(k), std::forward<Arg>(arg), std::forward<Args>(args)...);
|
819
|
+
}
|
820
|
+
|
821
|
+
template <class K, class Arg, class... Args>
|
822
|
+
BOOST_FORCEINLINE bool try_emplace_or_visit(
|
823
|
+
K&& k, Arg&& arg, Args&&... args)
|
824
|
+
{
|
825
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_INVOCABLE(Arg, Args...)
|
826
|
+
return table_.try_emplace_or_visit(std::forward<K>(k),
|
827
|
+
std::forward<Arg>(arg), std::forward<Args>(args)...);
|
828
|
+
}
|
829
|
+
|
830
|
+
template <class K, class Arg, class... Args>
|
831
|
+
BOOST_FORCEINLINE bool try_emplace_or_cvisit(
|
832
|
+
K&& k, Arg&& arg, Args&&... args)
|
833
|
+
{
|
834
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_CONST_INVOCABLE(Arg, Args...)
|
835
|
+
return table_.try_emplace_or_cvisit(std::forward<K>(k),
|
836
|
+
std::forward<Arg>(arg), std::forward<Args>(args)...);
|
837
|
+
}
|
838
|
+
|
839
|
+
template <class Arg1, class Arg2, class... Args>
|
840
|
+
BOOST_FORCEINLINE bool try_emplace_and_visit(
|
841
|
+
key_type const& k, Arg1&& arg1, Arg2&& arg2, Args&&... args)
|
842
|
+
{
|
843
|
+
BOOST_UNORDERED_STATIC_ASSERT_PENULTIMATE_ARG_INVOCABLE(
|
844
|
+
Arg1, Arg2, Args...)
|
845
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_INVOCABLE(Arg2, Args...)
|
846
|
+
return table_.try_emplace_and_visit(
|
847
|
+
k, std::forward<Arg1>(arg1), std::forward<Arg2>(arg2),
|
848
|
+
std::forward<Args>(args)...);
|
849
|
+
}
|
850
|
+
|
851
|
+
template <class Arg1, class Arg2, class... Args>
|
852
|
+
BOOST_FORCEINLINE bool try_emplace_and_cvisit(
|
853
|
+
key_type const& k, Arg1&& arg1, Arg2&& arg2, Args&&... args)
|
854
|
+
{
|
855
|
+
BOOST_UNORDERED_STATIC_ASSERT_PENULTIMATE_ARG_INVOCABLE(
|
856
|
+
Arg1, Arg2, Args...)
|
857
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_CONST_INVOCABLE(Arg2, Args...)
|
858
|
+
return table_.try_emplace_and_cvisit(
|
859
|
+
k, std::forward<Arg1>(arg1), std::forward<Arg2>(arg2),
|
860
|
+
std::forward<Args>(args)...);
|
861
|
+
}
|
862
|
+
|
863
|
+
template <class Arg1, class Arg2, class... Args>
|
864
|
+
BOOST_FORCEINLINE bool try_emplace_and_visit(
|
865
|
+
key_type&& k, Arg1&& arg1, Arg2&& arg2, Args&&... args)
|
866
|
+
{
|
867
|
+
BOOST_UNORDERED_STATIC_ASSERT_PENULTIMATE_ARG_INVOCABLE(
|
868
|
+
Arg1, Arg2, Args...)
|
869
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_INVOCABLE(Arg2, Args...)
|
870
|
+
return table_.try_emplace_and_visit(
|
871
|
+
std::move(k), std::forward<Arg1>(arg1), std::forward<Arg2>(arg2),
|
872
|
+
std::forward<Args>(args)...);
|
873
|
+
}
|
874
|
+
|
875
|
+
template <class Arg1, class Arg2, class... Args>
|
876
|
+
BOOST_FORCEINLINE bool try_emplace_and_cvisit(
|
877
|
+
key_type&& k, Arg1&& arg1, Arg2&& arg2, Args&&... args)
|
878
|
+
{
|
879
|
+
BOOST_UNORDERED_STATIC_ASSERT_PENULTIMATE_ARG_INVOCABLE(
|
880
|
+
Arg1, Arg2, Args...)
|
881
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_CONST_INVOCABLE(Arg2, Args...)
|
882
|
+
return table_.try_emplace_and_cvisit(
|
883
|
+
std::move(k), std::forward<Arg1>(arg1), std::forward<Arg2>(arg2),
|
884
|
+
std::forward<Args>(args)...);
|
885
|
+
}
|
886
|
+
|
887
|
+
template <class K, class Arg1, class Arg2, class... Args>
|
888
|
+
BOOST_FORCEINLINE bool try_emplace_and_visit(
|
889
|
+
K&& k, Arg1&& arg1, Arg2&& arg2, Args&&... args)
|
890
|
+
{
|
891
|
+
BOOST_UNORDERED_STATIC_ASSERT_PENULTIMATE_ARG_INVOCABLE(
|
892
|
+
Arg1, Arg2, Args...)
|
893
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_INVOCABLE(Arg2, Args...)
|
894
|
+
return table_.try_emplace_and_visit(std::forward<K>(k),
|
895
|
+
std::forward<Arg1>(arg1), std::forward<Arg2>(arg2),
|
896
|
+
std::forward<Args>(args)...);
|
897
|
+
}
|
898
|
+
|
899
|
+
template <class K, class Arg1, class Arg2, class... Args>
|
900
|
+
BOOST_FORCEINLINE bool try_emplace_and_cvisit(
|
901
|
+
K&& k, Arg1&& arg1, Arg2&& arg2, Args&&... args)
|
902
|
+
{
|
903
|
+
BOOST_UNORDERED_STATIC_ASSERT_PENULTIMATE_ARG_INVOCABLE(
|
904
|
+
Arg1, Arg2, Args...)
|
905
|
+
BOOST_UNORDERED_STATIC_ASSERT_LAST_ARG_CONST_INVOCABLE(Arg2, Args...)
|
906
|
+
return table_.try_emplace_and_cvisit(std::forward<K>(k),
|
907
|
+
std::forward<Arg1>(arg1), std::forward<Arg2>(arg2),
|
908
|
+
std::forward<Args>(args)...);
|
909
|
+
}
|
910
|
+
|
911
|
+
BOOST_FORCEINLINE size_type erase(key_type const& k)
|
912
|
+
{
|
913
|
+
return table_.erase(k);
|
914
|
+
}
|
915
|
+
|
916
|
+
template <class K>
|
917
|
+
BOOST_FORCEINLINE typename std::enable_if<
|
918
|
+
detail::are_transparent<K, hasher, key_equal>::value, size_type>::type
|
919
|
+
erase(K&& k)
|
920
|
+
{
|
921
|
+
return table_.erase(std::forward<K>(k));
|
922
|
+
}
|
923
|
+
|
924
|
+
template <class F>
|
925
|
+
BOOST_FORCEINLINE size_type erase_if(key_type const& k, F f)
|
926
|
+
{
|
927
|
+
return table_.erase_if(k, f);
|
928
|
+
}
|
929
|
+
|
930
|
+
template <class K, class F>
|
931
|
+
BOOST_FORCEINLINE typename std::enable_if<
|
932
|
+
detail::are_transparent<K, hasher, key_equal>::value &&
|
933
|
+
!detail::is_execution_policy<K>::value,
|
934
|
+
size_type>::type
|
935
|
+
erase_if(K&& k, F f)
|
936
|
+
{
|
937
|
+
return table_.erase_if(std::forward<K>(k), f);
|
938
|
+
}
|
939
|
+
|
940
|
+
#if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS)
|
941
|
+
template <class ExecPolicy, class F>
|
942
|
+
typename std::enable_if<detail::is_execution_policy<ExecPolicy>::value,
|
943
|
+
void>::type
|
944
|
+
erase_if(ExecPolicy&& p, F f)
|
945
|
+
{
|
946
|
+
BOOST_UNORDERED_STATIC_ASSERT_EXEC_POLICY(ExecPolicy)
|
947
|
+
table_.erase_if(p, f);
|
948
|
+
}
|
949
|
+
#endif
|
950
|
+
|
951
|
+
template <class F> size_type erase_if(F f) { return table_.erase_if(f); }
|
952
|
+
|
953
|
+
void swap(concurrent_node_map& other) noexcept(
|
954
|
+
boost::allocator_is_always_equal<Allocator>::type::value ||
|
955
|
+
boost::allocator_propagate_on_container_swap<Allocator>::type::value)
|
956
|
+
{
|
957
|
+
return table_.swap(other.table_);
|
958
|
+
}
|
959
|
+
|
960
|
+
node_type extract(key_type const& key)
|
961
|
+
{
|
962
|
+
node_type nh;
|
963
|
+
table_.extract(key, detail::foa::node_handle_emplacer(nh));
|
964
|
+
return nh;
|
965
|
+
}
|
966
|
+
|
967
|
+
template <class K>
|
968
|
+
typename std::enable_if<
|
969
|
+
detail::are_transparent<K, hasher, key_equal>::value, node_type>::type
|
970
|
+
extract(K const& key)
|
971
|
+
{
|
972
|
+
node_type nh;
|
973
|
+
table_.extract(key, detail::foa::node_handle_emplacer(nh));
|
974
|
+
return nh;
|
975
|
+
}
|
976
|
+
|
977
|
+
template <class F>
|
978
|
+
node_type extract_if(key_type const& key, F f)
|
979
|
+
{
|
980
|
+
node_type nh;
|
981
|
+
table_.extract_if(key, f, detail::foa::node_handle_emplacer(nh));
|
982
|
+
return nh;
|
983
|
+
}
|
984
|
+
|
985
|
+
template <class K, class F>
|
986
|
+
typename std::enable_if<
|
987
|
+
detail::are_transparent<K, hasher, key_equal>::value, node_type>::type
|
988
|
+
extract_if(K const& key, F f)
|
989
|
+
{
|
990
|
+
node_type nh;
|
991
|
+
table_.extract_if(key, f, detail::foa::node_handle_emplacer(nh));
|
992
|
+
return nh;
|
993
|
+
}
|
994
|
+
|
995
|
+
void clear() noexcept { table_.clear(); }
|
996
|
+
|
997
|
+
template <typename H2, typename P2>
|
998
|
+
size_type merge(concurrent_node_map<Key, T, H2, P2, Allocator>& x)
|
999
|
+
{
|
1000
|
+
BOOST_ASSERT(get_allocator() == x.get_allocator());
|
1001
|
+
return table_.merge(x.table_);
|
1002
|
+
}
|
1003
|
+
|
1004
|
+
template <typename H2, typename P2>
|
1005
|
+
size_type merge(concurrent_node_map<Key, T, H2, P2, Allocator>&& x)
|
1006
|
+
{
|
1007
|
+
return merge(x);
|
1008
|
+
}
|
1009
|
+
|
1010
|
+
BOOST_FORCEINLINE size_type count(key_type const& k) const
|
1011
|
+
{
|
1012
|
+
return table_.count(k);
|
1013
|
+
}
|
1014
|
+
|
1015
|
+
template <class K>
|
1016
|
+
BOOST_FORCEINLINE typename std::enable_if<
|
1017
|
+
detail::are_transparent<K, hasher, key_equal>::value, size_type>::type
|
1018
|
+
count(K const& k)
|
1019
|
+
{
|
1020
|
+
return table_.count(k);
|
1021
|
+
}
|
1022
|
+
|
1023
|
+
BOOST_FORCEINLINE bool contains(key_type const& k) const
|
1024
|
+
{
|
1025
|
+
return table_.contains(k);
|
1026
|
+
}
|
1027
|
+
|
1028
|
+
template <class K>
|
1029
|
+
BOOST_FORCEINLINE typename std::enable_if<
|
1030
|
+
detail::are_transparent<K, hasher, key_equal>::value, bool>::type
|
1031
|
+
contains(K const& k) const
|
1032
|
+
{
|
1033
|
+
return table_.contains(k);
|
1034
|
+
}
|
1035
|
+
|
1036
|
+
/// Hash Policy
|
1037
|
+
///
|
1038
|
+
size_type bucket_count() const noexcept { return table_.capacity(); }
|
1039
|
+
|
1040
|
+
float load_factor() const noexcept { return table_.load_factor(); }
|
1041
|
+
float max_load_factor() const noexcept
|
1042
|
+
{
|
1043
|
+
return table_.max_load_factor();
|
1044
|
+
}
|
1045
|
+
void max_load_factor(float) {}
|
1046
|
+
size_type max_load() const noexcept { return table_.max_load(); }
|
1047
|
+
|
1048
|
+
void rehash(size_type n) { table_.rehash(n); }
|
1049
|
+
void reserve(size_type n) { table_.reserve(n); }
|
1050
|
+
|
1051
|
+
#if defined(BOOST_UNORDERED_ENABLE_STATS)
|
1052
|
+
/// Stats
|
1053
|
+
///
|
1054
|
+
stats get_stats() const { return table_.get_stats(); }
|
1055
|
+
|
1056
|
+
void reset_stats() noexcept { table_.reset_stats(); }
|
1057
|
+
#endif
|
1058
|
+
|
1059
|
+
/// Observers
|
1060
|
+
///
|
1061
|
+
allocator_type get_allocator() const noexcept
|
1062
|
+
{
|
1063
|
+
return table_.get_allocator();
|
1064
|
+
}
|
1065
|
+
|
1066
|
+
hasher hash_function() const { return table_.hash_function(); }
|
1067
|
+
key_equal key_eq() const { return table_.key_eq(); }
|
1068
|
+
};
|
1069
|
+
|
1070
|
+
template <class Key, class T, class Hash, class KeyEqual, class Allocator>
|
1071
|
+
bool operator==(
|
1072
|
+
concurrent_node_map<Key, T, Hash, KeyEqual, Allocator> const& lhs,
|
1073
|
+
concurrent_node_map<Key, T, Hash, KeyEqual, Allocator> const& rhs)
|
1074
|
+
{
|
1075
|
+
return lhs.table_ == rhs.table_;
|
1076
|
+
}
|
1077
|
+
|
1078
|
+
template <class Key, class T, class Hash, class KeyEqual, class Allocator>
|
1079
|
+
bool operator!=(
|
1080
|
+
concurrent_node_map<Key, T, Hash, KeyEqual, Allocator> const& lhs,
|
1081
|
+
concurrent_node_map<Key, T, Hash, KeyEqual, Allocator> const& rhs)
|
1082
|
+
{
|
1083
|
+
return !(lhs == rhs);
|
1084
|
+
}
|
1085
|
+
|
1086
|
+
template <class Key, class T, class Hash, class Pred, class Alloc>
|
1087
|
+
void swap(concurrent_node_map<Key, T, Hash, Pred, Alloc>& x,
|
1088
|
+
concurrent_node_map<Key, T, Hash, Pred, Alloc>& y)
|
1089
|
+
noexcept(noexcept(x.swap(y)))
|
1090
|
+
{
|
1091
|
+
x.swap(y);
|
1092
|
+
}
|
1093
|
+
|
1094
|
+
template <class K, class T, class H, class P, class A, class Predicate>
|
1095
|
+
typename concurrent_node_map<K, T, H, P, A>::size_type erase_if(
|
1096
|
+
concurrent_node_map<K, T, H, P, A>& c, Predicate pred)
|
1097
|
+
{
|
1098
|
+
return c.table_.erase_if(pred);
|
1099
|
+
}
|
1100
|
+
|
1101
|
+
template<class Archive, class K, class V, class H, class KE, class A>
|
1102
|
+
void serialize(
|
1103
|
+
Archive& ar, concurrent_node_map<K, V, H, KE, A>& c, unsigned int)
|
1104
|
+
{
|
1105
|
+
ar & core::make_nvp("table",c.table_);
|
1106
|
+
}
|
1107
|
+
|
1108
|
+
#if BOOST_UNORDERED_TEMPLATE_DEDUCTION_GUIDES
|
1109
|
+
|
1110
|
+
template <class InputIterator,
|
1111
|
+
class Hash =
|
1112
|
+
boost::hash<boost::unordered::detail::iter_key_t<InputIterator> >,
|
1113
|
+
class Pred =
|
1114
|
+
std::equal_to<boost::unordered::detail::iter_key_t<InputIterator> >,
|
1115
|
+
class Allocator = std::allocator<
|
1116
|
+
boost::unordered::detail::iter_to_alloc_t<InputIterator> >,
|
1117
|
+
class = std::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
|
1118
|
+
class = std::enable_if_t<detail::is_hash_v<Hash> >,
|
1119
|
+
class = std::enable_if_t<detail::is_pred_v<Pred> >,
|
1120
|
+
class = std::enable_if_t<detail::is_allocator_v<Allocator> > >
|
1121
|
+
concurrent_node_map(InputIterator, InputIterator,
|
1122
|
+
std::size_t = boost::unordered::detail::foa::default_bucket_count,
|
1123
|
+
Hash = Hash(), Pred = Pred(), Allocator = Allocator())
|
1124
|
+
-> concurrent_node_map<
|
1125
|
+
boost::unordered::detail::iter_key_t<InputIterator>,
|
1126
|
+
boost::unordered::detail::iter_val_t<InputIterator>, Hash, Pred,
|
1127
|
+
Allocator>;
|
1128
|
+
|
1129
|
+
template <class Key, class T,
|
1130
|
+
class Hash = boost::hash<std::remove_const_t<Key> >,
|
1131
|
+
class Pred = std::equal_to<std::remove_const_t<Key> >,
|
1132
|
+
class Allocator = std::allocator<std::pair<const Key, T> >,
|
1133
|
+
class = std::enable_if_t<detail::is_hash_v<Hash> >,
|
1134
|
+
class = std::enable_if_t<detail::is_pred_v<Pred> >,
|
1135
|
+
class = std::enable_if_t<detail::is_allocator_v<Allocator> > >
|
1136
|
+
concurrent_node_map(std::initializer_list<std::pair<Key, T> >,
|
1137
|
+
std::size_t = boost::unordered::detail::foa::default_bucket_count,
|
1138
|
+
Hash = Hash(), Pred = Pred(), Allocator = Allocator())
|
1139
|
+
-> concurrent_node_map<std::remove_const_t<Key>, T, Hash, Pred,
|
1140
|
+
Allocator>;
|
1141
|
+
|
1142
|
+
template <class InputIterator, class Allocator,
|
1143
|
+
class = std::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
|
1144
|
+
class = std::enable_if_t<detail::is_allocator_v<Allocator> > >
|
1145
|
+
concurrent_node_map(InputIterator, InputIterator, std::size_t, Allocator)
|
1146
|
+
-> concurrent_node_map<
|
1147
|
+
boost::unordered::detail::iter_key_t<InputIterator>,
|
1148
|
+
boost::unordered::detail::iter_val_t<InputIterator>,
|
1149
|
+
boost::hash<boost::unordered::detail::iter_key_t<InputIterator> >,
|
1150
|
+
std::equal_to<boost::unordered::detail::iter_key_t<InputIterator> >,
|
1151
|
+
Allocator>;
|
1152
|
+
|
1153
|
+
template <class InputIterator, class Allocator,
|
1154
|
+
class = std::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
|
1155
|
+
class = std::enable_if_t<detail::is_allocator_v<Allocator> > >
|
1156
|
+
concurrent_node_map(InputIterator, InputIterator, Allocator)
|
1157
|
+
-> concurrent_node_map<
|
1158
|
+
boost::unordered::detail::iter_key_t<InputIterator>,
|
1159
|
+
boost::unordered::detail::iter_val_t<InputIterator>,
|
1160
|
+
boost::hash<boost::unordered::detail::iter_key_t<InputIterator> >,
|
1161
|
+
std::equal_to<boost::unordered::detail::iter_key_t<InputIterator> >,
|
1162
|
+
Allocator>;
|
1163
|
+
|
1164
|
+
template <class InputIterator, class Hash, class Allocator,
|
1165
|
+
class = std::enable_if_t<detail::is_hash_v<Hash> >,
|
1166
|
+
class = std::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
|
1167
|
+
class = std::enable_if_t<detail::is_allocator_v<Allocator> > >
|
1168
|
+
concurrent_node_map(
|
1169
|
+
InputIterator, InputIterator, std::size_t, Hash, Allocator)
|
1170
|
+
-> concurrent_node_map<
|
1171
|
+
boost::unordered::detail::iter_key_t<InputIterator>,
|
1172
|
+
boost::unordered::detail::iter_val_t<InputIterator>, Hash,
|
1173
|
+
std::equal_to<boost::unordered::detail::iter_key_t<InputIterator> >,
|
1174
|
+
Allocator>;
|
1175
|
+
|
1176
|
+
template <class Key, class T, class Allocator,
|
1177
|
+
class = std::enable_if_t<detail::is_allocator_v<Allocator> > >
|
1178
|
+
concurrent_node_map(std::initializer_list<std::pair<Key, T> >, std::size_t,
|
1179
|
+
Allocator) -> concurrent_node_map<std::remove_const_t<Key>, T,
|
1180
|
+
boost::hash<std::remove_const_t<Key> >,
|
1181
|
+
std::equal_to<std::remove_const_t<Key> >, Allocator>;
|
1182
|
+
|
1183
|
+
template <class Key, class T, class Allocator,
|
1184
|
+
class = std::enable_if_t<detail::is_allocator_v<Allocator> > >
|
1185
|
+
concurrent_node_map(std::initializer_list<std::pair<Key, T> >, Allocator)
|
1186
|
+
-> concurrent_node_map<std::remove_const_t<Key>, T,
|
1187
|
+
boost::hash<std::remove_const_t<Key> >,
|
1188
|
+
std::equal_to<std::remove_const_t<Key> >, Allocator>;
|
1189
|
+
|
1190
|
+
template <class Key, class T, class Hash, class Allocator,
|
1191
|
+
class = std::enable_if_t<detail::is_hash_v<Hash> >,
|
1192
|
+
class = std::enable_if_t<detail::is_allocator_v<Allocator> > >
|
1193
|
+
concurrent_node_map(std::initializer_list<std::pair<Key, T> >, std::size_t,
|
1194
|
+
Hash, Allocator) -> concurrent_node_map<std::remove_const_t<Key>, T,
|
1195
|
+
Hash, std::equal_to<std::remove_const_t<Key> >, Allocator>;
|
1196
|
+
|
1197
|
+
#endif
|
1198
|
+
|
1199
|
+
} // namespace unordered
|
1200
|
+
} // namespace boost
|
1201
|
+
|
1202
|
+
#endif // BOOST_UNORDERED_CONCURRENT_NODE_MAP_HPP
|