passenger 6.0.15 → 6.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +46 -2
- data/build/integration_tests.rb +6 -6
- data/build/ruby_tests.rb +1 -1
- data/build/test_basics.rb +0 -1
- data/src/agent/Core/Config.h +1 -1
- data/src/agent/Core/Controller/Config.h +1 -1
- data/src/agent/Core/SpawningKit/PipeWatcher.h +18 -3
- data/src/agent/Watchdog/Config.h +1 -1
- data/src/cxx_supportlib/Constants.h +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/align/aligned_alloc.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/array.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_executor.hpp +344 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_handler.hpp +686 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp +56 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_allocator.hpp +81 -25
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_cancellation_slot.hpp +68 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_executor.hpp +46 -11
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_file.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_random_access_file.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_readable_pipe.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_file.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_writable_pipe.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_allocator.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_cancellation_slot.hpp +14 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_executor.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/compose.hpp +30 -305
- data/src/cxx_supportlib/vendor-modified/boost/asio/consign.hpp +90 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/defer.hpp +17 -18
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +98 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/composed_work.hpp +330 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +81 -15
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_work.hpp +19 -11
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +37 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_ops.ipp +10 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.hpp +14 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +18 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/utility.hpp +1 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/work_dispatcher.hpp +7 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/dispatch.hpp +4 -14
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp +22 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/any_executor.hpp +447 -142
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking.hpp +57 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking_adaptation.hpp +51 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_execute.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_guarantee.hpp +41 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/connect.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context.hpp +13 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context_as.hpp +13 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_operation.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/execute.hpp +9 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp +11 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/mapping.hpp +52 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/occupancy.hpp +13 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/operation_state.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/outstanding_work.hpp +39 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/relationship.hpp +39 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/schedule.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/scheduler.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/sender.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_done.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_error.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_value.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/start.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/submit.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/executor_work_guard.hpp +6 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_channel.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_concurrent_channel.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_traits.hpp +70 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_composed.hpp +146 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro.hpp +35 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_handler.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_operation.hpp +7 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_service.hpp +180 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_completion_handler.hpp +171 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_promise_allocator.hpp +89 -66
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/partial_promise.hpp +66 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_single.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/co_composed.hpp +1134 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/coro.hpp +130 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/parallel_group.hpp +377 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/promise.hpp +168 -29
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_coro.hpp +149 -203
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_promise.hpp +68 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/parallel_group.hpp +256 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/promise.hpp +76 -80
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_coro.hpp +40 -14
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_promise.hpp +113 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_completion_executor.ipp +132 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_io_executor.ipp +12 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/append.hpp +12 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/as_tuple.hpp +12 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +25 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +25 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/co_spawn.hpp +34 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +28 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/consign.hpp +204 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/defer.hpp +33 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/deferred.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/dispatch.hpp +21 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/handler_alloc_hook.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/post.hpp +33 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/prepend.hpp +12 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +40 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +27 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +104 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/redirect_error.hpp +12 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +70 -15
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +25 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +38 -30
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +27 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_context.hpp +0 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.ipp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.ipp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/post.hpp +17 -18
- data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +11 -7
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_executor.hpp +0 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/thread_pool.hpp +23 -18
- data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_object_handle.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_overlapped_handle.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_random_access_handle.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_stream_handle.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/bind/bind.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/chrono/config.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/mac/chrono.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/scan_keyword.hpp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/chrono/duration.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_io.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_put.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_units.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/time_point_io.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/utility/ios_base_state_ptr.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/chrono/time_point.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/details.hpp +5 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang.hpp +10 -3
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang_version.hpp +9 -3
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc.hpp +9 -3
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/sunpro_cc.hpp +6 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/visualc.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/xlcpp.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/detail/suffix.hpp +33 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/header_deprecated.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libcpp.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libstdcpp3.hpp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/allocator.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/container/container_fwd.hpp +29 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/deque.hpp +13 -13
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/advanced_insert_int.hpp +80 -95
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_begin.hpp +10 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_end.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/copy_move_algo.hpp +738 -34
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/destroyers.hpp +38 -10
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/flat_tree.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/iterator.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/workaround.hpp +3 -4
- data/src/cxx_supportlib/vendor-modified/boost/container/devector.hpp +1150 -1213
- data/src/cxx_supportlib/vendor-modified/boost/container/node_allocator.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/container/options.hpp +104 -12
- data/src/cxx_supportlib/vendor-modified/boost/container/stable_vector.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/string.hpp +11 -1
- data/src/cxx_supportlib/vendor-modified/boost/container/vector.hpp +31 -331
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_mix.hpp +113 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_range.hpp +173 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_tuple.hpp +133 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash.hpp +461 -566
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash_fwd.hpp +24 -24
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_contiguous_range.hpp +91 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_described_class.hpp +38 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_range.hpp +73 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_unordered_range.hpp +39 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/bit.hpp +32 -4
- data/src/cxx_supportlib/vendor-modified/boost/core/detail/string_view.hpp +16 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/empty_value.hpp +16 -16
- data/src/cxx_supportlib/vendor-modified/boost/core/fclose_deleter.hpp +46 -0
- data/src/cxx_supportlib/vendor-modified/boost/date_time/date.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters_limited.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_date.hpp +12 -13
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/parsers.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian_calendar.ipp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/date_time/iso_format.hpp +13 -13
- data/src/cxx_supportlib/vendor-modified/boost/date_time/local_time/local_date_time.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters_limited.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/date_time/special_values_parser.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/date_time/time_facet.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/date_time/time_parsing.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/describe/bases.hpp +50 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/detail/config.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/detail/cx_streq.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/detail/void_t.hpp +32 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/members.hpp +159 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/modifiers.hpp +33 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree_algorithms.hpp +9 -9
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree_algorithms.hpp +45 -45
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/any_node_and_algorithms.hpp +8 -8
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/bstree_algorithms_base.hpp +37 -38
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/iterator.hpp +16 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/workaround.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/hashtable.hpp +145 -90
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/pack_options.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree_algorithms.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree_algorithms.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree_algorithms.hpp +11 -9
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_algorithms.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/iterator/iterator_facade.hpp +106 -25
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical_streams.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_numeric.hpp +8 -5
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_unsigned_converters.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/adaptive_sort_merge.hpp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/pdqsort.hpp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/type_traits.hpp +8 -4
- data/src/cxx_supportlib/vendor-modified/boost/mp11/bind.hpp +111 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/version.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/int_float_mixture.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/sign_mixture.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/udt_builtin_mixture.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/has_opt.hpp +6 -2
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp +11 -2
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ptr.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/config.hpp +7 -1
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category_impl.hpp +10 -1
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_code.hpp +38 -43
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_condition.hpp +52 -0
- data/src/cxx_supportlib/vendor-modified/boost/throw_exception.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_ptr_helper.hpp +27 -27
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp +27 -27
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/intrinsics.hpp +22 -8
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/fca.hpp +37 -7
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa.hpp +1921 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/implementation.hpp +66 -82
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/prime_fmod.hpp +6 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/type_traits.hpp +109 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/xmx.hpp +75 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/hash_traits.hpp +45 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map.hpp +732 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map_fwd.hpp +49 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set.hpp +586 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set_fwd.hpp +49 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map.hpp +166 -66
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set.hpp +145 -28
- data/src/cxx_supportlib/vendor-modified/boost/version.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/jsoncpp/json-forwards.h +143 -261
- data/src/cxx_supportlib/vendor-modified/jsoncpp/json.h +763 -947
- data/src/cxx_supportlib/vendor-modified/jsoncpp/jsoncpp.cpp +1477 -1487
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/md5.hpp +1 -1
- data/src/ruby_native_extension/extconf.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/packaging.rb +1 -0
- data/src/ruby_supportlib/phusion_passenger/platform_info/apache.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/platform_info/binary_compatibility.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +5 -5
- data/src/ruby_supportlib/phusion_passenger.rb +5 -5
- metadata +36 -19
- data/src/cxx_supportlib/vendor-modified/boost/align/align.hpp +0 -19
- data/src/cxx_supportlib/vendor-modified/boost/align/alignment_of.hpp +0 -54
- data/src/cxx_supportlib/vendor-modified/boost/align/alignment_of_forward.hpp +0 -20
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/align_cxx11.hpp +0 -21
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc.hpp +0 -52
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/alignment_of.hpp +0 -31
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/alignment_of_cxx11.hpp +0 -23
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/element_type.hpp +0 -91
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/integral_constant.hpp +0 -53
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/min_size.hpp +0 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/completion_handler_erasure.hpp +0 -196
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/compose.hpp +0 -709
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/float_functions.hpp +0 -336
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_float.hpp +0 -271
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/limits.hpp +0 -62
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/extensions.hpp +0 -361
- data/src/cxx_supportlib/vendor-modified/boost/detail/container_fwd.hpp +0 -157
@@ -0,0 +1,49 @@
|
|
1
|
+
|
2
|
+
// Copyright (C) 2022 Christian Mazakas
|
3
|
+
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
4
|
+
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
5
|
+
|
6
|
+
#ifndef BOOST_UNORDERED_FLAT_MAP_FWD_HPP_INCLUDED
|
7
|
+
#define BOOST_UNORDERED_FLAT_MAP_FWD_HPP_INCLUDED
|
8
|
+
|
9
|
+
#include <boost/config.hpp>
|
10
|
+
#if defined(BOOST_HAS_PRAGMA_ONCE)
|
11
|
+
#pragma once
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#include <boost/functional/hash_fwd.hpp>
|
15
|
+
#include <boost/unordered/detail/fwd.hpp>
|
16
|
+
#include <functional>
|
17
|
+
#include <memory>
|
18
|
+
|
19
|
+
namespace boost {
|
20
|
+
namespace unordered {
|
21
|
+
template <class Key, class T, class Hash = boost::hash<Key>,
|
22
|
+
class KeyEqual = std::equal_to<Key>,
|
23
|
+
class Allocator = std::allocator<std::pair<const Key, T> > >
|
24
|
+
class unordered_flat_map;
|
25
|
+
|
26
|
+
template <class Key, class T, class Hash, class KeyEqual, class Allocator>
|
27
|
+
bool operator==(
|
28
|
+
unordered_flat_map<Key, T, Hash, KeyEqual, Allocator> const& lhs,
|
29
|
+
unordered_flat_map<Key, T, Hash, KeyEqual, Allocator> const& rhs);
|
30
|
+
|
31
|
+
template <class Key, class T, class Hash, class KeyEqual, class Allocator>
|
32
|
+
bool operator!=(
|
33
|
+
unordered_flat_map<Key, T, Hash, KeyEqual, Allocator> const& lhs,
|
34
|
+
unordered_flat_map<Key, T, Hash, KeyEqual, Allocator> const& rhs);
|
35
|
+
|
36
|
+
template <class Key, class T, class Hash, class KeyEqual, class Allocator>
|
37
|
+
void swap(unordered_flat_map<Key, T, Hash, KeyEqual, Allocator>& lhs,
|
38
|
+
unordered_flat_map<Key, T, Hash, KeyEqual, Allocator>& rhs)
|
39
|
+
noexcept(noexcept(lhs.swap(rhs)));
|
40
|
+
} // namespace unordered
|
41
|
+
|
42
|
+
using boost::unordered::unordered_flat_map;
|
43
|
+
|
44
|
+
using boost::unordered::swap;
|
45
|
+
using boost::unordered::operator==;
|
46
|
+
using boost::unordered::operator!=;
|
47
|
+
} // namespace boost
|
48
|
+
|
49
|
+
#endif
|
@@ -0,0 +1,586 @@
|
|
1
|
+
// Copyright (C) 2022 Christian Mazakas
|
2
|
+
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
3
|
+
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
4
|
+
|
5
|
+
#ifndef BOOST_UNORDERED_UNORDERED_FLAT_SET_HPP_INCLUDED
|
6
|
+
#define BOOST_UNORDERED_UNORDERED_FLAT_SET_HPP_INCLUDED
|
7
|
+
|
8
|
+
#include <boost/config.hpp>
|
9
|
+
#if defined(BOOST_HAS_PRAGMA_ONCE)
|
10
|
+
#pragma once
|
11
|
+
#endif
|
12
|
+
|
13
|
+
#include <boost/unordered/detail/foa.hpp>
|
14
|
+
#include <boost/unordered/detail/type_traits.hpp>
|
15
|
+
#include <boost/unordered/unordered_flat_set_fwd.hpp>
|
16
|
+
|
17
|
+
#include <boost/core/allocator_access.hpp>
|
18
|
+
#include <boost/functional/hash.hpp>
|
19
|
+
|
20
|
+
#include <initializer_list>
|
21
|
+
#include <iterator>
|
22
|
+
#include <type_traits>
|
23
|
+
#include <utility>
|
24
|
+
|
25
|
+
namespace boost {
|
26
|
+
namespace unordered {
|
27
|
+
|
28
|
+
#if defined(BOOST_MSVC)
|
29
|
+
#pragma warning(push)
|
30
|
+
#pragma warning(disable : 4714) /* marked as __forceinline not inlined */
|
31
|
+
#endif
|
32
|
+
|
33
|
+
template <class Key, class Hash, class KeyEqual, class Allocator>
|
34
|
+
class unordered_flat_set
|
35
|
+
{
|
36
|
+
struct set_types
|
37
|
+
{
|
38
|
+
using key_type = Key;
|
39
|
+
using init_type = Key;
|
40
|
+
using value_type = Key;
|
41
|
+
static Key const& extract(value_type const& key) { return key; }
|
42
|
+
static Key&& move(value_type& x) { return std::move(x); }
|
43
|
+
};
|
44
|
+
|
45
|
+
using table_type = detail::foa::table<set_types, Hash, KeyEqual,
|
46
|
+
typename boost::allocator_rebind<Allocator,
|
47
|
+
typename set_types::value_type>::type>;
|
48
|
+
|
49
|
+
table_type table_;
|
50
|
+
|
51
|
+
template <class K, class H, class KE, class A, class Pred>
|
52
|
+
typename unordered_flat_set<K, H, KE, A>::size_type friend erase_if(
|
53
|
+
unordered_flat_set<K, H, KE, A>& set, Pred pred);
|
54
|
+
|
55
|
+
public:
|
56
|
+
using key_type = Key;
|
57
|
+
using value_type = typename set_types::value_type;
|
58
|
+
using init_type = typename set_types::init_type;
|
59
|
+
using size_type = std::size_t;
|
60
|
+
using difference_type = std::ptrdiff_t;
|
61
|
+
using hasher = Hash;
|
62
|
+
using key_equal = KeyEqual;
|
63
|
+
using allocator_type = Allocator;
|
64
|
+
using reference = value_type&;
|
65
|
+
using const_reference = value_type const&;
|
66
|
+
using pointer = typename boost::allocator_pointer<allocator_type>::type;
|
67
|
+
using const_pointer =
|
68
|
+
typename boost::allocator_const_pointer<allocator_type>::type;
|
69
|
+
using iterator = typename table_type::iterator;
|
70
|
+
using const_iterator = typename table_type::const_iterator;
|
71
|
+
|
72
|
+
unordered_flat_set() : unordered_flat_set(0) {}
|
73
|
+
|
74
|
+
explicit unordered_flat_set(size_type n, hasher const& h = hasher(),
|
75
|
+
key_equal const& pred = key_equal(),
|
76
|
+
allocator_type const& a = allocator_type())
|
77
|
+
: table_(n, h, pred, a)
|
78
|
+
{
|
79
|
+
}
|
80
|
+
|
81
|
+
unordered_flat_set(size_type n, allocator_type const& a)
|
82
|
+
: unordered_flat_set(n, hasher(), key_equal(), a)
|
83
|
+
{
|
84
|
+
}
|
85
|
+
|
86
|
+
unordered_flat_set(size_type n, hasher const& h, allocator_type const& a)
|
87
|
+
: unordered_flat_set(n, h, key_equal(), a)
|
88
|
+
{
|
89
|
+
}
|
90
|
+
|
91
|
+
template <class InputIterator>
|
92
|
+
unordered_flat_set(
|
93
|
+
InputIterator f, InputIterator l, allocator_type const& a)
|
94
|
+
: unordered_flat_set(f, l, size_type(0), hasher(), key_equal(), a)
|
95
|
+
{
|
96
|
+
}
|
97
|
+
|
98
|
+
explicit unordered_flat_set(allocator_type const& a)
|
99
|
+
: unordered_flat_set(0, a)
|
100
|
+
{
|
101
|
+
}
|
102
|
+
|
103
|
+
template <class Iterator>
|
104
|
+
unordered_flat_set(Iterator first, Iterator last, size_type n = 0,
|
105
|
+
hasher const& h = hasher(), key_equal const& pred = key_equal(),
|
106
|
+
allocator_type const& a = allocator_type())
|
107
|
+
: unordered_flat_set(n, h, pred, a)
|
108
|
+
{
|
109
|
+
this->insert(first, last);
|
110
|
+
}
|
111
|
+
|
112
|
+
template <class InputIt>
|
113
|
+
unordered_flat_set(
|
114
|
+
InputIt first, InputIt last, size_type n, allocator_type const& a)
|
115
|
+
: unordered_flat_set(first, last, n, hasher(), key_equal(), a)
|
116
|
+
{
|
117
|
+
}
|
118
|
+
|
119
|
+
template <class Iterator>
|
120
|
+
unordered_flat_set(Iterator first, Iterator last, size_type n,
|
121
|
+
hasher const& h, allocator_type const& a)
|
122
|
+
: unordered_flat_set(first, last, n, h, key_equal(), a)
|
123
|
+
{
|
124
|
+
}
|
125
|
+
|
126
|
+
unordered_flat_set(unordered_flat_set const& other) : table_(other.table_)
|
127
|
+
{
|
128
|
+
}
|
129
|
+
|
130
|
+
unordered_flat_set(
|
131
|
+
unordered_flat_set const& other, allocator_type const& a)
|
132
|
+
: table_(other.table_, a)
|
133
|
+
{
|
134
|
+
}
|
135
|
+
|
136
|
+
unordered_flat_set(unordered_flat_set&& other)
|
137
|
+
noexcept(std::is_nothrow_move_constructible<hasher>::value&&
|
138
|
+
std::is_nothrow_move_constructible<key_equal>::value&&
|
139
|
+
std::is_nothrow_move_constructible<allocator_type>::value)
|
140
|
+
: table_(std::move(other.table_))
|
141
|
+
{
|
142
|
+
}
|
143
|
+
|
144
|
+
unordered_flat_set(unordered_flat_set&& other, allocator_type const& al)
|
145
|
+
: table_(std::move(other.table_), al)
|
146
|
+
{
|
147
|
+
}
|
148
|
+
|
149
|
+
unordered_flat_set(std::initializer_list<value_type> ilist,
|
150
|
+
size_type n = 0, hasher const& h = hasher(),
|
151
|
+
key_equal const& pred = key_equal(),
|
152
|
+
allocator_type const& a = allocator_type())
|
153
|
+
: unordered_flat_set(ilist.begin(), ilist.end(), n, h, pred, a)
|
154
|
+
{
|
155
|
+
}
|
156
|
+
|
157
|
+
unordered_flat_set(
|
158
|
+
std::initializer_list<value_type> il, allocator_type const& a)
|
159
|
+
: unordered_flat_set(il, size_type(0), hasher(), key_equal(), a)
|
160
|
+
{
|
161
|
+
}
|
162
|
+
|
163
|
+
unordered_flat_set(std::initializer_list<value_type> init, size_type n,
|
164
|
+
allocator_type const& a)
|
165
|
+
: unordered_flat_set(init, n, hasher(), key_equal(), a)
|
166
|
+
{
|
167
|
+
}
|
168
|
+
|
169
|
+
unordered_flat_set(std::initializer_list<value_type> init, size_type n,
|
170
|
+
hasher const& h, allocator_type const& a)
|
171
|
+
: unordered_flat_set(init, n, h, key_equal(), a)
|
172
|
+
{
|
173
|
+
}
|
174
|
+
|
175
|
+
~unordered_flat_set() = default;
|
176
|
+
|
177
|
+
unordered_flat_set& operator=(unordered_flat_set const& other)
|
178
|
+
{
|
179
|
+
table_ = other.table_;
|
180
|
+
return *this;
|
181
|
+
}
|
182
|
+
|
183
|
+
unordered_flat_set& operator=(unordered_flat_set&& other) noexcept(
|
184
|
+
noexcept(std::declval<table_type&>() = std::declval<table_type&&>()))
|
185
|
+
{
|
186
|
+
table_ = std::move(other.table_);
|
187
|
+
return *this;
|
188
|
+
}
|
189
|
+
|
190
|
+
allocator_type get_allocator() const noexcept
|
191
|
+
{
|
192
|
+
return table_.get_allocator();
|
193
|
+
}
|
194
|
+
|
195
|
+
/// Iterators
|
196
|
+
///
|
197
|
+
|
198
|
+
iterator begin() noexcept { return table_.begin(); }
|
199
|
+
const_iterator begin() const noexcept { return table_.begin(); }
|
200
|
+
const_iterator cbegin() const noexcept { return table_.cbegin(); }
|
201
|
+
|
202
|
+
iterator end() noexcept { return table_.end(); }
|
203
|
+
const_iterator end() const noexcept { return table_.end(); }
|
204
|
+
const_iterator cend() const noexcept { return table_.cend(); }
|
205
|
+
|
206
|
+
/// Capacity
|
207
|
+
///
|
208
|
+
|
209
|
+
BOOST_ATTRIBUTE_NODISCARD bool empty() const noexcept
|
210
|
+
{
|
211
|
+
return table_.empty();
|
212
|
+
}
|
213
|
+
|
214
|
+
size_type size() const noexcept { return table_.size(); }
|
215
|
+
|
216
|
+
size_type max_size() const noexcept { return table_.max_size(); }
|
217
|
+
|
218
|
+
/// Modifiers
|
219
|
+
///
|
220
|
+
|
221
|
+
void clear() noexcept { table_.clear(); }
|
222
|
+
|
223
|
+
BOOST_FORCEINLINE std::pair<iterator, bool> insert(
|
224
|
+
value_type const& value)
|
225
|
+
{
|
226
|
+
return table_.insert(value);
|
227
|
+
}
|
228
|
+
|
229
|
+
BOOST_FORCEINLINE std::pair<iterator, bool> insert(value_type&& value)
|
230
|
+
{
|
231
|
+
return table_.insert(std::move(value));
|
232
|
+
}
|
233
|
+
|
234
|
+
BOOST_FORCEINLINE iterator insert(const_iterator, value_type const& value)
|
235
|
+
{
|
236
|
+
return table_.insert(value).first;
|
237
|
+
}
|
238
|
+
|
239
|
+
BOOST_FORCEINLINE iterator insert(const_iterator, value_type&& value)
|
240
|
+
{
|
241
|
+
return table_.insert(std::move(value)).first;
|
242
|
+
}
|
243
|
+
|
244
|
+
template <class InputIterator>
|
245
|
+
void insert(InputIterator first, InputIterator last)
|
246
|
+
{
|
247
|
+
for (auto pos = first; pos != last; ++pos) {
|
248
|
+
table_.emplace(*pos);
|
249
|
+
}
|
250
|
+
}
|
251
|
+
|
252
|
+
void insert(std::initializer_list<value_type> ilist)
|
253
|
+
{
|
254
|
+
this->insert(ilist.begin(), ilist.end());
|
255
|
+
}
|
256
|
+
|
257
|
+
template <class... Args>
|
258
|
+
BOOST_FORCEINLINE std::pair<iterator, bool> emplace(Args&&... args)
|
259
|
+
{
|
260
|
+
return table_.emplace(std::forward<Args>(args)...);
|
261
|
+
}
|
262
|
+
|
263
|
+
template <class... Args>
|
264
|
+
BOOST_FORCEINLINE iterator emplace_hint(const_iterator, Args&&... args)
|
265
|
+
{
|
266
|
+
return table_.emplace(std::forward<Args>(args)...).first;
|
267
|
+
}
|
268
|
+
|
269
|
+
BOOST_FORCEINLINE void erase(const_iterator pos)
|
270
|
+
{
|
271
|
+
return table_.erase(pos);
|
272
|
+
}
|
273
|
+
iterator erase(const_iterator first, const_iterator last)
|
274
|
+
{
|
275
|
+
while (first != last) {
|
276
|
+
this->erase(first++);
|
277
|
+
}
|
278
|
+
return iterator{detail::foa::const_iterator_cast_tag{}, last};
|
279
|
+
}
|
280
|
+
|
281
|
+
BOOST_FORCEINLINE size_type erase(key_type const& key)
|
282
|
+
{
|
283
|
+
return table_.erase(key);
|
284
|
+
}
|
285
|
+
|
286
|
+
template <class K>
|
287
|
+
BOOST_FORCEINLINE typename std::enable_if<
|
288
|
+
detail::transparent_non_iterable<K, unordered_flat_set>::value,
|
289
|
+
size_type>::type
|
290
|
+
erase(K const& key)
|
291
|
+
{
|
292
|
+
return table_.erase(key);
|
293
|
+
}
|
294
|
+
|
295
|
+
void swap(unordered_flat_set& rhs) noexcept(
|
296
|
+
noexcept(std::declval<table_type&>().swap(std::declval<table_type&>())))
|
297
|
+
{
|
298
|
+
table_.swap(rhs.table_);
|
299
|
+
}
|
300
|
+
|
301
|
+
template <class H2, class P2>
|
302
|
+
void merge(unordered_flat_set<key_type, H2, P2, allocator_type>& source)
|
303
|
+
{
|
304
|
+
table_.merge(source.table_);
|
305
|
+
}
|
306
|
+
|
307
|
+
template <class H2, class P2>
|
308
|
+
void merge(unordered_flat_set<key_type, H2, P2, allocator_type>&& source)
|
309
|
+
{
|
310
|
+
table_.merge(std::move(source.table_));
|
311
|
+
}
|
312
|
+
|
313
|
+
/// Lookup
|
314
|
+
///
|
315
|
+
|
316
|
+
BOOST_FORCEINLINE size_type count(key_type const& key) const
|
317
|
+
{
|
318
|
+
auto pos = table_.find(key);
|
319
|
+
return pos != table_.end() ? 1 : 0;
|
320
|
+
}
|
321
|
+
|
322
|
+
template <class K>
|
323
|
+
BOOST_FORCEINLINE typename std::enable_if<
|
324
|
+
detail::are_transparent<K, hasher, key_equal>::value, size_type>::type
|
325
|
+
count(K const& key) const
|
326
|
+
{
|
327
|
+
auto pos = table_.find(key);
|
328
|
+
return pos != table_.end() ? 1 : 0;
|
329
|
+
}
|
330
|
+
|
331
|
+
BOOST_FORCEINLINE iterator find(key_type const& key)
|
332
|
+
{
|
333
|
+
return table_.find(key);
|
334
|
+
}
|
335
|
+
|
336
|
+
BOOST_FORCEINLINE const_iterator find(key_type const& key) const
|
337
|
+
{
|
338
|
+
return table_.find(key);
|
339
|
+
}
|
340
|
+
|
341
|
+
template <class K>
|
342
|
+
BOOST_FORCEINLINE typename std::enable_if<
|
343
|
+
boost::unordered::detail::are_transparent<K, hasher, key_equal>::value,
|
344
|
+
iterator>::type
|
345
|
+
find(K const& key)
|
346
|
+
{
|
347
|
+
return table_.find(key);
|
348
|
+
}
|
349
|
+
|
350
|
+
template <class K>
|
351
|
+
BOOST_FORCEINLINE typename std::enable_if<
|
352
|
+
boost::unordered::detail::are_transparent<K, hasher, key_equal>::value,
|
353
|
+
const_iterator>::type
|
354
|
+
find(K const& key) const
|
355
|
+
{
|
356
|
+
return table_.find(key);
|
357
|
+
}
|
358
|
+
|
359
|
+
BOOST_FORCEINLINE bool contains(key_type const& key) const
|
360
|
+
{
|
361
|
+
return this->find(key) != this->end();
|
362
|
+
}
|
363
|
+
|
364
|
+
template <class K>
|
365
|
+
BOOST_FORCEINLINE typename std::enable_if<
|
366
|
+
boost::unordered::detail::are_transparent<K, hasher, key_equal>::value,
|
367
|
+
bool>::type
|
368
|
+
contains(K const& key) const
|
369
|
+
{
|
370
|
+
return this->find(key) != this->end();
|
371
|
+
}
|
372
|
+
|
373
|
+
std::pair<iterator, iterator> equal_range(key_type const& key)
|
374
|
+
{
|
375
|
+
auto pos = table_.find(key);
|
376
|
+
if (pos == table_.end()) {
|
377
|
+
return {pos, pos};
|
378
|
+
}
|
379
|
+
|
380
|
+
auto next = pos;
|
381
|
+
++next;
|
382
|
+
return {pos, next};
|
383
|
+
}
|
384
|
+
|
385
|
+
std::pair<const_iterator, const_iterator> equal_range(
|
386
|
+
key_type const& key) const
|
387
|
+
{
|
388
|
+
auto pos = table_.find(key);
|
389
|
+
if (pos == table_.end()) {
|
390
|
+
return {pos, pos};
|
391
|
+
}
|
392
|
+
|
393
|
+
auto next = pos;
|
394
|
+
++next;
|
395
|
+
return {pos, next};
|
396
|
+
}
|
397
|
+
|
398
|
+
template <class K>
|
399
|
+
typename std::enable_if<
|
400
|
+
detail::are_transparent<K, hasher, key_equal>::value,
|
401
|
+
std::pair<iterator, iterator> >::type
|
402
|
+
equal_range(K const& key)
|
403
|
+
{
|
404
|
+
auto pos = table_.find(key);
|
405
|
+
if (pos == table_.end()) {
|
406
|
+
return {pos, pos};
|
407
|
+
}
|
408
|
+
|
409
|
+
auto next = pos;
|
410
|
+
++next;
|
411
|
+
return {pos, next};
|
412
|
+
}
|
413
|
+
|
414
|
+
template <class K>
|
415
|
+
typename std::enable_if<
|
416
|
+
detail::are_transparent<K, hasher, key_equal>::value,
|
417
|
+
std::pair<const_iterator, const_iterator> >::type
|
418
|
+
equal_range(K const& key) const
|
419
|
+
{
|
420
|
+
auto pos = table_.find(key);
|
421
|
+
if (pos == table_.end()) {
|
422
|
+
return {pos, pos};
|
423
|
+
}
|
424
|
+
|
425
|
+
auto next = pos;
|
426
|
+
++next;
|
427
|
+
return {pos, next};
|
428
|
+
}
|
429
|
+
|
430
|
+
/// Hash Policy
|
431
|
+
///
|
432
|
+
|
433
|
+
size_type bucket_count() const noexcept { return table_.capacity(); }
|
434
|
+
|
435
|
+
float load_factor() const noexcept { return table_.load_factor(); }
|
436
|
+
|
437
|
+
float max_load_factor() const noexcept
|
438
|
+
{
|
439
|
+
return table_.max_load_factor();
|
440
|
+
}
|
441
|
+
|
442
|
+
void max_load_factor(float) {}
|
443
|
+
|
444
|
+
size_type max_load() const noexcept { return table_.max_load(); }
|
445
|
+
|
446
|
+
void rehash(size_type n) { table_.rehash(n); }
|
447
|
+
|
448
|
+
void reserve(size_type n) { table_.reserve(n); }
|
449
|
+
|
450
|
+
/// Observers
|
451
|
+
///
|
452
|
+
|
453
|
+
hasher hash_function() const { return table_.hash_function(); }
|
454
|
+
|
455
|
+
key_equal key_eq() const { return table_.key_eq(); }
|
456
|
+
};
|
457
|
+
|
458
|
+
template <class Key, class Hash, class KeyEqual, class Allocator>
|
459
|
+
bool operator==(
|
460
|
+
unordered_flat_set<Key, Hash, KeyEqual, Allocator> const& lhs,
|
461
|
+
unordered_flat_set<Key, Hash, KeyEqual, Allocator> const& rhs)
|
462
|
+
{
|
463
|
+
if (&lhs == &rhs) {
|
464
|
+
return true;
|
465
|
+
}
|
466
|
+
|
467
|
+
return (lhs.size() == rhs.size()) && ([&] {
|
468
|
+
for (auto const& key : lhs) {
|
469
|
+
auto pos = rhs.find(key);
|
470
|
+
if ((pos == rhs.end()) || (key != *pos)) {
|
471
|
+
return false;
|
472
|
+
}
|
473
|
+
}
|
474
|
+
return true;
|
475
|
+
})();
|
476
|
+
}
|
477
|
+
|
478
|
+
template <class Key, class Hash, class KeyEqual, class Allocator>
|
479
|
+
bool operator!=(
|
480
|
+
unordered_flat_set<Key, Hash, KeyEqual, Allocator> const& lhs,
|
481
|
+
unordered_flat_set<Key, Hash, KeyEqual, Allocator> const& rhs)
|
482
|
+
{
|
483
|
+
return !(lhs == rhs);
|
484
|
+
}
|
485
|
+
|
486
|
+
template <class Key, class Hash, class KeyEqual, class Allocator>
|
487
|
+
void swap(unordered_flat_set<Key, Hash, KeyEqual, Allocator>& lhs,
|
488
|
+
unordered_flat_set<Key, Hash, KeyEqual, Allocator>& rhs)
|
489
|
+
noexcept(noexcept(lhs.swap(rhs)))
|
490
|
+
{
|
491
|
+
lhs.swap(rhs);
|
492
|
+
}
|
493
|
+
|
494
|
+
template <class Key, class Hash, class KeyEqual, class Allocator,
|
495
|
+
class Pred>
|
496
|
+
typename unordered_flat_set<Key, Hash, KeyEqual, Allocator>::size_type
|
497
|
+
erase_if(unordered_flat_set<Key, Hash, KeyEqual, Allocator>& set, Pred pred)
|
498
|
+
{
|
499
|
+
return erase_if(set.table_, pred);
|
500
|
+
}
|
501
|
+
|
502
|
+
#if defined(BOOST_MSVC)
|
503
|
+
#pragma warning(pop) /* C4714 */
|
504
|
+
#endif
|
505
|
+
|
506
|
+
#if BOOST_UNORDERED_TEMPLATE_DEDUCTION_GUIDES
|
507
|
+
template <class InputIterator,
|
508
|
+
class Hash =
|
509
|
+
boost::hash<typename std::iterator_traits<InputIterator>::value_type>,
|
510
|
+
class Pred =
|
511
|
+
std::equal_to<typename std::iterator_traits<InputIterator>::value_type>,
|
512
|
+
class Allocator = std::allocator<
|
513
|
+
typename std::iterator_traits<InputIterator>::value_type>,
|
514
|
+
class = boost::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
|
515
|
+
class = boost::enable_if_t<detail::is_hash_v<Hash> >,
|
516
|
+
class = boost::enable_if_t<detail::is_pred_v<Pred> >,
|
517
|
+
class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
|
518
|
+
unordered_flat_set(InputIterator, InputIterator,
|
519
|
+
std::size_t = boost::unordered::detail::foa::default_bucket_count,
|
520
|
+
Hash = Hash(), Pred = Pred(), Allocator = Allocator())
|
521
|
+
-> unordered_flat_set<
|
522
|
+
typename std::iterator_traits<InputIterator>::value_type, Hash, Pred,
|
523
|
+
Allocator>;
|
524
|
+
|
525
|
+
template <class T, class Hash = boost::hash<T>,
|
526
|
+
class Pred = std::equal_to<T>, class Allocator = std::allocator<T>,
|
527
|
+
class = boost::enable_if_t<detail::is_hash_v<Hash> >,
|
528
|
+
class = boost::enable_if_t<detail::is_pred_v<Pred> >,
|
529
|
+
class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
|
530
|
+
unordered_flat_set(std::initializer_list<T>,
|
531
|
+
std::size_t = boost::unordered::detail::foa::default_bucket_count,
|
532
|
+
Hash = Hash(), Pred = Pred(), Allocator = Allocator())
|
533
|
+
-> unordered_flat_set<T, Hash, Pred, Allocator>;
|
534
|
+
|
535
|
+
template <class InputIterator, class Allocator,
|
536
|
+
class = boost::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
|
537
|
+
class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
|
538
|
+
unordered_flat_set(InputIterator, InputIterator, std::size_t, Allocator)
|
539
|
+
-> unordered_flat_set<
|
540
|
+
typename std::iterator_traits<InputIterator>::value_type,
|
541
|
+
boost::hash<typename std::iterator_traits<InputIterator>::value_type>,
|
542
|
+
std::equal_to<typename std::iterator_traits<InputIterator>::value_type>,
|
543
|
+
Allocator>;
|
544
|
+
|
545
|
+
template <class InputIterator, class Hash, class Allocator,
|
546
|
+
class = boost::enable_if_t<detail::is_hash_v<Hash> >,
|
547
|
+
class = boost::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
|
548
|
+
class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
|
549
|
+
unordered_flat_set(
|
550
|
+
InputIterator, InputIterator, std::size_t, Hash, Allocator)
|
551
|
+
-> unordered_flat_set<
|
552
|
+
typename std::iterator_traits<InputIterator>::value_type, Hash,
|
553
|
+
std::equal_to<typename std::iterator_traits<InputIterator>::value_type>,
|
554
|
+
Allocator>;
|
555
|
+
|
556
|
+
template <class T, class Allocator,
|
557
|
+
class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
|
558
|
+
unordered_flat_set(std::initializer_list<T>, std::size_t, Allocator)
|
559
|
+
-> unordered_flat_set<T, boost::hash<T>, std::equal_to<T>, Allocator>;
|
560
|
+
|
561
|
+
template <class T, class Hash, class Allocator,
|
562
|
+
class = boost::enable_if_t<detail::is_hash_v<Hash> >,
|
563
|
+
class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
|
564
|
+
unordered_flat_set(std::initializer_list<T>, std::size_t, Hash, Allocator)
|
565
|
+
-> unordered_flat_set<T, Hash, std::equal_to<T>, Allocator>;
|
566
|
+
|
567
|
+
template <class InputIterator, class Allocator,
|
568
|
+
class = boost::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
|
569
|
+
class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
|
570
|
+
unordered_flat_set(InputIterator, InputIterator, Allocator)
|
571
|
+
-> unordered_flat_set<
|
572
|
+
typename std::iterator_traits<InputIterator>::value_type,
|
573
|
+
boost::hash<typename std::iterator_traits<InputIterator>::value_type>,
|
574
|
+
std::equal_to<typename std::iterator_traits<InputIterator>::value_type>,
|
575
|
+
Allocator>;
|
576
|
+
|
577
|
+
template <class T, class Allocator,
|
578
|
+
class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
|
579
|
+
unordered_flat_set(std::initializer_list<T>, Allocator)
|
580
|
+
-> unordered_flat_set<T, boost::hash<T>, std::equal_to<T>, Allocator>;
|
581
|
+
#endif
|
582
|
+
|
583
|
+
} // namespace unordered
|
584
|
+
} // namespace boost
|
585
|
+
|
586
|
+
#endif
|
@@ -0,0 +1,49 @@
|
|
1
|
+
|
2
|
+
// Copyright (C) 2022 Christian Mazakas
|
3
|
+
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
4
|
+
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
5
|
+
|
6
|
+
#ifndef BOOST_UNORDERED_FLAT_SET_FWD_HPP_INCLUDED
|
7
|
+
#define BOOST_UNORDERED_FLAT_SET_FWD_HPP_INCLUDED
|
8
|
+
|
9
|
+
#include <boost/config.hpp>
|
10
|
+
#if defined(BOOST_HAS_PRAGMA_ONCE)
|
11
|
+
#pragma once
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#include <boost/functional/hash_fwd.hpp>
|
15
|
+
#include <boost/unordered/detail/fwd.hpp>
|
16
|
+
#include <functional>
|
17
|
+
#include <memory>
|
18
|
+
|
19
|
+
namespace boost {
|
20
|
+
namespace unordered {
|
21
|
+
template <class Key, class Hash = boost::hash<Key>,
|
22
|
+
class KeyEqual = std::equal_to<Key>,
|
23
|
+
class Allocator = std::allocator<Key> >
|
24
|
+
class unordered_flat_set;
|
25
|
+
|
26
|
+
template <class Key, class Hash, class KeyEqual, class Allocator>
|
27
|
+
bool operator==(
|
28
|
+
unordered_flat_set<Key, Hash, KeyEqual, Allocator> const& lhs,
|
29
|
+
unordered_flat_set<Key, Hash, KeyEqual, Allocator> const& rhs);
|
30
|
+
|
31
|
+
template <class Key, class Hash, class KeyEqual, class Allocator>
|
32
|
+
bool operator!=(
|
33
|
+
unordered_flat_set<Key, Hash, KeyEqual, Allocator> const& lhs,
|
34
|
+
unordered_flat_set<Key, Hash, KeyEqual, Allocator> const& rhs);
|
35
|
+
|
36
|
+
template <class Key, class Hash, class KeyEqual, class Allocator>
|
37
|
+
void swap(unordered_flat_set<Key, Hash, KeyEqual, Allocator>& lhs,
|
38
|
+
unordered_flat_set<Key, Hash, KeyEqual, Allocator>& rhs)
|
39
|
+
noexcept(noexcept(lhs.swap(rhs)));
|
40
|
+
} // namespace unordered
|
41
|
+
|
42
|
+
using boost::unordered::unordered_flat_set;
|
43
|
+
|
44
|
+
using boost::unordered::swap;
|
45
|
+
using boost::unordered::operator==;
|
46
|
+
using boost::unordered::operator!=;
|
47
|
+
} // namespace boost
|
48
|
+
|
49
|
+
#endif
|