passenger 6.0.16 → 6.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (286) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +22 -1
  3. data/build/integration_tests.rb +6 -6
  4. data/build/ruby_tests.rb +1 -1
  5. data/build/test_basics.rb +0 -1
  6. data/src/agent/Core/Config.h +1 -1
  7. data/src/agent/Core/Controller/Config.h +1 -1
  8. data/src/agent/Core/SpawningKit/PipeWatcher.h +18 -3
  9. data/src/agent/Watchdog/Config.h +1 -1
  10. data/src/cxx_supportlib/Constants.h +1 -1
  11. data/src/cxx_supportlib/vendor-modified/boost/align/aligned_alloc.hpp +1 -1
  12. data/src/cxx_supportlib/vendor-modified/boost/array.hpp +1 -1
  13. data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_executor.hpp +344 -0
  14. data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_handler.hpp +686 -0
  15. data/src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp +56 -0
  16. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_allocator.hpp +81 -25
  17. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_cancellation_slot.hpp +68 -8
  18. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_executor.hpp +46 -11
  19. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +4 -4
  20. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +2 -2
  21. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_file.hpp +1 -1
  22. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_random_access_file.hpp +2 -2
  23. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +4 -4
  24. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_readable_pipe.hpp +2 -2
  25. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +2 -2
  26. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +3 -3
  27. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +2 -2
  28. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +3 -3
  29. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +4 -4
  30. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_file.hpp +2 -2
  31. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +2 -2
  32. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +2 -2
  33. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_writable_pipe.hpp +2 -2
  34. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_allocator.hpp +13 -3
  35. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_cancellation_slot.hpp +14 -3
  36. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_executor.hpp +13 -3
  37. data/src/cxx_supportlib/vendor-modified/boost/asio/compose.hpp +30 -305
  38. data/src/cxx_supportlib/vendor-modified/boost/asio/consign.hpp +90 -0
  39. data/src/cxx_supportlib/vendor-modified/boost/asio/defer.hpp +17 -18
  40. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +98 -24
  41. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/composed_work.hpp +330 -0
  42. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +81 -15
  43. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +4 -4
  44. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_work.hpp +19 -11
  45. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +37 -0
  46. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +3 -1
  47. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.ipp +1 -1
  48. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_ops.ipp +10 -2
  49. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.hpp +14 -1
  50. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +18 -0
  51. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/utility.hpp +1 -2
  52. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/work_dispatcher.hpp +7 -3
  53. data/src/cxx_supportlib/vendor-modified/boost/asio/dispatch.hpp +4 -14
  54. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp +22 -3
  55. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/any_executor.hpp +447 -142
  56. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking.hpp +57 -8
  57. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking_adaptation.hpp +51 -6
  58. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_execute.hpp +5 -0
  59. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_guarantee.hpp +41 -4
  60. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/connect.hpp +5 -0
  61. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context.hpp +13 -2
  62. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context_as.hpp +13 -2
  63. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_operation.hpp +4 -0
  64. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/execute.hpp +9 -2
  65. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp +11 -1
  66. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/mapping.hpp +52 -8
  67. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/occupancy.hpp +13 -2
  68. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/operation_state.hpp +5 -0
  69. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/outstanding_work.hpp +39 -6
  70. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver.hpp +5 -0
  71. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/relationship.hpp +39 -6
  72. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/schedule.hpp +5 -0
  73. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/scheduler.hpp +5 -0
  74. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/sender.hpp +5 -0
  75. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_done.hpp +5 -0
  76. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_error.hpp +5 -0
  77. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_value.hpp +5 -0
  78. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/start.hpp +5 -0
  79. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/submit.hpp +5 -0
  80. data/src/cxx_supportlib/vendor-modified/boost/asio/executor_work_guard.hpp +6 -9
  81. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_channel.hpp +3 -3
  82. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_concurrent_channel.hpp +3 -3
  83. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_traits.hpp +70 -0
  84. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_composed.hpp +146 -0
  85. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro.hpp +35 -5
  86. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_handler.hpp +13 -3
  87. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_operation.hpp +7 -0
  88. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_service.hpp +180 -0
  89. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_completion_handler.hpp +171 -0
  90. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_promise_allocator.hpp +89 -66
  91. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/partial_promise.hpp +66 -45
  92. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_single.hpp +13 -3
  93. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/co_composed.hpp +1134 -0
  94. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/coro.hpp +130 -106
  95. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/parallel_group.hpp +377 -3
  96. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/promise.hpp +168 -29
  97. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_coro.hpp +149 -203
  98. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_promise.hpp +68 -0
  99. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/parallel_group.hpp +256 -0
  100. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/promise.hpp +76 -80
  101. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_coro.hpp +40 -14
  102. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_promise.hpp +113 -0
  103. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_completion_executor.ipp +132 -0
  104. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_io_executor.ipp +12 -0
  105. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/append.hpp +12 -3
  106. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/as_tuple.hpp +12 -3
  107. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +25 -6
  108. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +25 -6
  109. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/co_spawn.hpp +34 -45
  110. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +28 -6
  111. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/consign.hpp +204 -0
  112. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/defer.hpp +33 -1
  113. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/deferred.hpp +13 -3
  114. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/dispatch.hpp +21 -9
  115. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/handler_alloc_hook.ipp +1 -1
  116. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/post.hpp +33 -1
  117. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/prepend.hpp +12 -3
  118. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +40 -9
  119. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +27 -6
  120. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +104 -24
  121. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/redirect_error.hpp +12 -3
  122. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +70 -15
  123. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +1 -0
  124. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +25 -0
  125. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +38 -30
  126. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +27 -6
  127. data/src/cxx_supportlib/vendor-modified/boost/asio/io_context.hpp +0 -13
  128. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.ipp +3 -1
  129. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.ipp +3 -1
  130. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +2 -2
  131. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +2 -2
  132. data/src/cxx_supportlib/vendor-modified/boost/asio/post.hpp +17 -18
  133. data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +3 -1
  134. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +13 -3
  135. data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +11 -7
  136. data/src/cxx_supportlib/vendor-modified/boost/asio/system_executor.hpp +0 -13
  137. data/src/cxx_supportlib/vendor-modified/boost/asio/thread_pool.hpp +23 -18
  138. data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +1 -1
  139. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_object_handle.hpp +2 -2
  140. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_overlapped_handle.hpp +1 -1
  141. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_random_access_handle.hpp +2 -2
  142. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_stream_handle.hpp +2 -2
  143. data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +4 -0
  144. data/src/cxx_supportlib/vendor-modified/boost/bind/bind.hpp +1 -1
  145. data/src/cxx_supportlib/vendor-modified/boost/chrono/config.hpp +1 -0
  146. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/mac/chrono.hpp +4 -4
  147. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/scan_keyword.hpp +4 -2
  148. data/src/cxx_supportlib/vendor-modified/boost/chrono/duration.hpp +2 -2
  149. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_io.hpp +3 -3
  150. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_put.hpp +5 -5
  151. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_units.hpp +2 -2
  152. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/time_point_io.hpp +2 -2
  153. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/utility/ios_base_state_ptr.hpp +7 -7
  154. data/src/cxx_supportlib/vendor-modified/boost/chrono/time_point.hpp +1 -1
  155. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/details.hpp +5 -1
  156. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang.hpp +10 -3
  157. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang_version.hpp +9 -3
  158. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc.hpp +9 -3
  159. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/sunpro_cc.hpp +6 -0
  160. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/visualc.hpp +8 -0
  161. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/xlcpp.hpp +4 -0
  162. data/src/cxx_supportlib/vendor-modified/boost/config/detail/suffix.hpp +33 -0
  163. data/src/cxx_supportlib/vendor-modified/boost/config/header_deprecated.hpp +1 -1
  164. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libcpp.hpp +9 -0
  165. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libstdcpp3.hpp +4 -2
  166. data/src/cxx_supportlib/vendor-modified/boost/container/allocator.hpp +1 -1
  167. data/src/cxx_supportlib/vendor-modified/boost/container/container_fwd.hpp +29 -0
  168. data/src/cxx_supportlib/vendor-modified/boost/container/deque.hpp +13 -13
  169. data/src/cxx_supportlib/vendor-modified/boost/container/detail/advanced_insert_int.hpp +80 -95
  170. data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_begin.hpp +10 -0
  171. data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_end.hpp +3 -0
  172. data/src/cxx_supportlib/vendor-modified/boost/container/detail/copy_move_algo.hpp +738 -34
  173. data/src/cxx_supportlib/vendor-modified/boost/container/detail/destroyers.hpp +38 -10
  174. data/src/cxx_supportlib/vendor-modified/boost/container/detail/flat_tree.hpp +1 -0
  175. data/src/cxx_supportlib/vendor-modified/boost/container/detail/iterator.hpp +2 -0
  176. data/src/cxx_supportlib/vendor-modified/boost/container/detail/workaround.hpp +3 -4
  177. data/src/cxx_supportlib/vendor-modified/boost/container/devector.hpp +1150 -1213
  178. data/src/cxx_supportlib/vendor-modified/boost/container/node_allocator.hpp +1 -1
  179. data/src/cxx_supportlib/vendor-modified/boost/container/options.hpp +104 -12
  180. data/src/cxx_supportlib/vendor-modified/boost/container/stable_vector.hpp +1 -0
  181. data/src/cxx_supportlib/vendor-modified/boost/container/string.hpp +11 -1
  182. data/src/cxx_supportlib/vendor-modified/boost/container/vector.hpp +31 -331
  183. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_mix.hpp +113 -0
  184. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_range.hpp +173 -0
  185. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_tuple.hpp +133 -0
  186. data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash.hpp +461 -566
  187. data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash_fwd.hpp +24 -24
  188. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_contiguous_range.hpp +91 -0
  189. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_described_class.hpp +38 -0
  190. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_range.hpp +73 -0
  191. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_unordered_range.hpp +39 -0
  192. data/src/cxx_supportlib/vendor-modified/boost/core/bit.hpp +32 -4
  193. data/src/cxx_supportlib/vendor-modified/boost/core/detail/string_view.hpp +16 -0
  194. data/src/cxx_supportlib/vendor-modified/boost/core/empty_value.hpp +16 -16
  195. data/src/cxx_supportlib/vendor-modified/boost/core/fclose_deleter.hpp +46 -0
  196. data/src/cxx_supportlib/vendor-modified/boost/date_time/date.hpp +1 -1
  197. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters.hpp +3 -3
  198. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters_limited.hpp +3 -3
  199. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_date.hpp +12 -13
  200. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/parsers.hpp +2 -2
  201. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian_calendar.ipp +2 -2
  202. data/src/cxx_supportlib/vendor-modified/boost/date_time/iso_format.hpp +13 -13
  203. data/src/cxx_supportlib/vendor-modified/boost/date_time/local_time/local_date_time.hpp +2 -2
  204. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters.hpp +4 -4
  205. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters_limited.hpp +2 -2
  206. data/src/cxx_supportlib/vendor-modified/boost/date_time/special_values_parser.hpp +1 -1
  207. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_facet.hpp +1 -1
  208. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_parsing.hpp +2 -2
  209. data/src/cxx_supportlib/vendor-modified/boost/describe/bases.hpp +50 -0
  210. data/src/cxx_supportlib/vendor-modified/boost/describe/detail/config.hpp +40 -0
  211. data/src/cxx_supportlib/vendor-modified/boost/describe/detail/cx_streq.hpp +30 -0
  212. data/src/cxx_supportlib/vendor-modified/boost/describe/detail/void_t.hpp +32 -0
  213. data/src/cxx_supportlib/vendor-modified/boost/describe/members.hpp +159 -0
  214. data/src/cxx_supportlib/vendor-modified/boost/describe/modifiers.hpp +33 -0
  215. data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree_algorithms.hpp +9 -9
  216. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree_algorithms.hpp +45 -45
  217. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/any_node_and_algorithms.hpp +8 -8
  218. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/bstree_algorithms_base.hpp +37 -38
  219. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/iterator.hpp +16 -0
  220. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/workaround.hpp +1 -1
  221. data/src/cxx_supportlib/vendor-modified/boost/intrusive/hashtable.hpp +145 -90
  222. data/src/cxx_supportlib/vendor-modified/boost/intrusive/pack_options.hpp +2 -0
  223. data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree_algorithms.hpp +7 -7
  224. data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree_algorithms.hpp +5 -5
  225. data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree_algorithms.hpp +11 -9
  226. data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_algorithms.hpp +7 -7
  227. data/src/cxx_supportlib/vendor-modified/boost/iterator/iterator_facade.hpp +106 -25
  228. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical_streams.hpp +1 -1
  229. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_numeric.hpp +8 -5
  230. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_unsigned_converters.hpp +1 -1
  231. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/adaptive_sort_merge.hpp +4 -2
  232. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/pdqsort.hpp +2 -1
  233. data/src/cxx_supportlib/vendor-modified/boost/move/detail/type_traits.hpp +8 -4
  234. data/src/cxx_supportlib/vendor-modified/boost/mp11/bind.hpp +111 -0
  235. data/src/cxx_supportlib/vendor-modified/boost/mp11/version.hpp +1 -1
  236. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/int_float_mixture.hpp +5 -5
  237. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/sign_mixture.hpp +5 -5
  238. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/udt_builtin_mixture.hpp +5 -5
  239. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/has_opt.hpp +6 -2
  240. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp +11 -2
  241. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ptr.hpp +1 -1
  242. data/src/cxx_supportlib/vendor-modified/boost/system/detail/config.hpp +7 -1
  243. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category.hpp +2 -2
  244. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category_impl.hpp +10 -1
  245. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_code.hpp +38 -43
  246. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_condition.hpp +52 -0
  247. data/src/cxx_supportlib/vendor-modified/boost/throw_exception.hpp +1 -1
  248. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_ptr_helper.hpp +27 -27
  249. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp +27 -27
  250. data/src/cxx_supportlib/vendor-modified/boost/type_traits/intrinsics.hpp +22 -8
  251. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/fca.hpp +37 -7
  252. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa.hpp +1921 -0
  253. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/implementation.hpp +66 -82
  254. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/prime_fmod.hpp +6 -0
  255. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/type_traits.hpp +109 -0
  256. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/xmx.hpp +75 -0
  257. data/src/cxx_supportlib/vendor-modified/boost/unordered/hash_traits.hpp +45 -0
  258. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map.hpp +732 -0
  259. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map_fwd.hpp +49 -0
  260. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set.hpp +586 -0
  261. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set_fwd.hpp +49 -0
  262. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map.hpp +166 -66
  263. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set.hpp +145 -28
  264. data/src/cxx_supportlib/vendor-modified/boost/version.hpp +2 -2
  265. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/md5.hpp +1 -1
  266. data/src/ruby_native_extension/extconf.rb +1 -1
  267. data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +1 -1
  268. data/src/ruby_supportlib/phusion_passenger.rb +5 -5
  269. metadata +36 -19
  270. data/src/cxx_supportlib/vendor-modified/boost/align/align.hpp +0 -19
  271. data/src/cxx_supportlib/vendor-modified/boost/align/alignment_of.hpp +0 -54
  272. data/src/cxx_supportlib/vendor-modified/boost/align/alignment_of_forward.hpp +0 -20
  273. data/src/cxx_supportlib/vendor-modified/boost/align/detail/align_cxx11.hpp +0 -21
  274. data/src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc.hpp +0 -52
  275. data/src/cxx_supportlib/vendor-modified/boost/align/detail/alignment_of.hpp +0 -31
  276. data/src/cxx_supportlib/vendor-modified/boost/align/detail/alignment_of_cxx11.hpp +0 -23
  277. data/src/cxx_supportlib/vendor-modified/boost/align/detail/element_type.hpp +0 -91
  278. data/src/cxx_supportlib/vendor-modified/boost/align/detail/integral_constant.hpp +0 -53
  279. data/src/cxx_supportlib/vendor-modified/boost/align/detail/min_size.hpp +0 -26
  280. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/completion_handler_erasure.hpp +0 -196
  281. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/compose.hpp +0 -709
  282. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/float_functions.hpp +0 -336
  283. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_float.hpp +0 -271
  284. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/limits.hpp +0 -62
  285. data/src/cxx_supportlib/vendor-modified/boost/container_hash/extensions.hpp +0 -361
  286. data/src/cxx_supportlib/vendor-modified/boost/detail/container_fwd.hpp +0 -157
@@ -20,6 +20,7 @@
20
20
  #include <boost/move/move.hpp>
21
21
  #include <boost/type_traits/is_constructible.hpp>
22
22
  #include <boost/unordered/detail/map.hpp>
23
+ #include <boost/unordered/detail/type_traits.hpp>
23
24
 
24
25
  #if !defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST)
25
26
  #include <initializer_list>
@@ -50,9 +51,9 @@ namespace boost {
50
51
  typedef K key_type;
51
52
  typedef T mapped_type;
52
53
  typedef std::pair<const K, T> value_type;
53
- typedef H hasher;
54
- typedef P key_equal;
55
- typedef A allocator_type;
54
+ typedef typename boost::type_identity<H>::type hasher;
55
+ typedef typename boost::type_identity<P>::type key_equal;
56
+ typedef typename boost::type_identity<A>::type allocator_type;
56
57
 
57
58
  private:
58
59
  typedef boost::unordered::detail::map<A, K, T, H, P> types;
@@ -123,6 +124,9 @@ namespace boost {
123
124
 
124
125
  explicit unordered_map(size_type, const hasher&, const allocator_type&);
125
126
 
127
+ template <class InputIterator>
128
+ unordered_map(InputIterator, InputIterator, const allocator_type&);
129
+
126
130
  template <class InputIt>
127
131
  unordered_map(InputIt, InputIt, size_type, const allocator_type&);
128
132
 
@@ -131,6 +135,8 @@ namespace boost {
131
135
  InputIt, InputIt, size_type, const hasher&, const allocator_type&);
132
136
 
133
137
  #if !defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST)
138
+ unordered_map(std::initializer_list<value_type>, const allocator_type&);
139
+
134
140
  unordered_map(
135
141
  std::initializer_list<value_type>, size_type, const allocator_type&);
136
142
 
@@ -926,7 +932,7 @@ namespace boost {
926
932
  template <typename T>
927
933
  using iter_to_alloc_t =
928
934
  typename std::pair<iter_key_t<T> const, iter_val_t<T> >;
929
- }
935
+ } // namespace detail
930
936
 
931
937
  template <class InputIterator,
932
938
  class Hash =
@@ -934,58 +940,80 @@ namespace boost {
934
940
  class Pred =
935
941
  std::equal_to<boost::unordered::detail::iter_key_t<InputIterator> >,
936
942
  class Allocator = std::allocator<
937
- boost::unordered::detail::iter_to_alloc_t<InputIterator> > >
943
+ boost::unordered::detail::iter_to_alloc_t<InputIterator> >,
944
+ class = boost::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
945
+ class = boost::enable_if_t<detail::is_hash_v<Hash> >,
946
+ class = boost::enable_if_t<detail::is_pred_v<Pred> >,
947
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
938
948
  unordered_map(InputIterator, InputIterator,
939
949
  std::size_t = boost::unordered::detail::default_bucket_count,
940
950
  Hash = Hash(), Pred = Pred(), Allocator = Allocator())
941
- ->unordered_map<boost::unordered::detail::iter_key_t<InputIterator>,
951
+ -> unordered_map<boost::unordered::detail::iter_key_t<InputIterator>,
942
952
  boost::unordered::detail::iter_val_t<InputIterator>, Hash, Pred,
943
953
  Allocator>;
944
954
 
945
- template <class Key, class T, class Hash = boost::hash<Key>,
946
- class Pred = std::equal_to<Key>,
947
- class Allocator = std::allocator<std::pair<const Key, T> > >
948
- unordered_map(std::initializer_list<std::pair<const Key, T> >,
955
+ template <class Key, class T,
956
+ class Hash = boost::hash<boost::remove_const_t<Key> >,
957
+ class Pred = std::equal_to<boost::remove_const_t<Key> >,
958
+ class Allocator = std::allocator<std::pair<const Key, T> >,
959
+ class = boost::enable_if_t<detail::is_hash_v<Hash> >,
960
+ class = boost::enable_if_t<detail::is_pred_v<Pred> >,
961
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
962
+ unordered_map(std::initializer_list<std::pair<Key, T> >,
949
963
  std::size_t = boost::unordered::detail::default_bucket_count,
950
964
  Hash = Hash(), Pred = Pred(), Allocator = Allocator())
951
- ->unordered_map<Key, T, Hash, Pred, Allocator>;
965
+ -> unordered_map<boost::remove_const_t<Key>, T, Hash, Pred, Allocator>;
952
966
 
953
- template <class InputIterator, class Allocator>
967
+ template <class InputIterator, class Allocator,
968
+ class = boost::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
969
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
954
970
  unordered_map(InputIterator, InputIterator, std::size_t, Allocator)
955
- ->unordered_map<boost::unordered::detail::iter_key_t<InputIterator>,
971
+ -> unordered_map<boost::unordered::detail::iter_key_t<InputIterator>,
956
972
  boost::unordered::detail::iter_val_t<InputIterator>,
957
973
  boost::hash<boost::unordered::detail::iter_key_t<InputIterator> >,
958
974
  std::equal_to<boost::unordered::detail::iter_key_t<InputIterator> >,
959
975
  Allocator>;
960
976
 
961
- template <class InputIterator, class Allocator>
977
+ template <class InputIterator, class Allocator,
978
+ class = boost::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
979
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
962
980
  unordered_map(InputIterator, InputIterator, Allocator)
963
- ->unordered_map<boost::unordered::detail::iter_key_t<InputIterator>,
981
+ -> unordered_map<boost::unordered::detail::iter_key_t<InputIterator>,
964
982
  boost::unordered::detail::iter_val_t<InputIterator>,
965
983
  boost::hash<boost::unordered::detail::iter_key_t<InputIterator> >,
966
984
  std::equal_to<boost::unordered::detail::iter_key_t<InputIterator> >,
967
985
  Allocator>;
968
986
 
969
- template <class InputIterator, class Hash, class Allocator>
987
+ template <class InputIterator, class Hash, class Allocator,
988
+ class = boost::enable_if_t<detail::is_hash_v<Hash> >,
989
+ class = boost::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
990
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
970
991
  unordered_map(InputIterator, InputIterator, std::size_t, Hash, Allocator)
971
- ->unordered_map<boost::unordered::detail::iter_key_t<InputIterator>,
992
+ -> unordered_map<boost::unordered::detail::iter_key_t<InputIterator>,
972
993
  boost::unordered::detail::iter_val_t<InputIterator>, Hash,
973
994
  std::equal_to<boost::unordered::detail::iter_key_t<InputIterator> >,
974
995
  Allocator>;
975
996
 
976
- template <class Key, class T, typename Allocator>
977
- unordered_map(
978
- std::initializer_list<std::pair<const Key, T> >, std::size_t, Allocator)
979
- ->unordered_map<Key, T, boost::hash<Key>, std::equal_to<Key>, Allocator>;
980
-
981
- template <class Key, class T, typename Allocator>
982
- unordered_map(std::initializer_list<std::pair<const Key, T> >, Allocator)
983
- ->unordered_map<Key, T, boost::hash<Key>, std::equal_to<Key>, Allocator>;
984
-
985
- template <class Key, class T, class Hash, class Allocator>
986
- unordered_map(std::initializer_list<std::pair<const Key, T> >, std::size_t,
987
- Hash, Allocator)
988
- ->unordered_map<Key, T, Hash, std::equal_to<Key>, Allocator>;
997
+ template <class Key, class T, class Allocator,
998
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
999
+ unordered_map(std::initializer_list<std::pair<Key, T> >, std::size_t,
1000
+ Allocator) -> unordered_map<boost::remove_const_t<Key>, T,
1001
+ boost::hash<boost::remove_const_t<Key> >,
1002
+ std::equal_to<boost::remove_const_t<Key> >, Allocator>;
1003
+
1004
+ template <class Key, class T, class Allocator,
1005
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
1006
+ unordered_map(std::initializer_list<std::pair<Key, T> >, Allocator)
1007
+ -> unordered_map<boost::remove_const_t<Key>, T,
1008
+ boost::hash<boost::remove_const_t<Key> >,
1009
+ std::equal_to<boost::remove_const_t<Key> >, Allocator>;
1010
+
1011
+ template <class Key, class T, class Hash, class Allocator,
1012
+ class = boost::enable_if_t<detail::is_hash_v<Hash> >,
1013
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
1014
+ unordered_map(std::initializer_list<std::pair<Key, T> >, std::size_t, Hash,
1015
+ Allocator) -> unordered_map<boost::remove_const_t<Key>, T, Hash,
1016
+ std::equal_to<boost::remove_const_t<Key> >, Allocator>;
989
1017
 
990
1018
  #endif
991
1019
 
@@ -1002,9 +1030,9 @@ namespace boost {
1002
1030
  typedef K key_type;
1003
1031
  typedef T mapped_type;
1004
1032
  typedef std::pair<const K, T> value_type;
1005
- typedef H hasher;
1006
- typedef P key_equal;
1007
- typedef A allocator_type;
1033
+ typedef typename boost::type_identity<H>::type hasher;
1034
+ typedef typename boost::type_identity<P>::type key_equal;
1035
+ typedef typename boost::type_identity<A>::type allocator_type;
1008
1036
 
1009
1037
  private:
1010
1038
  typedef boost::unordered::detail::map<A, K, T, H, P> types;
@@ -1076,6 +1104,9 @@ namespace boost {
1076
1104
  explicit unordered_multimap(
1077
1105
  size_type, const hasher&, const allocator_type&);
1078
1106
 
1107
+ template <class InputIterator>
1108
+ unordered_multimap(InputIterator, InputIterator, const allocator_type&);
1109
+
1079
1110
  template <class InputIt>
1080
1111
  unordered_multimap(InputIt, InputIt, size_type, const allocator_type&);
1081
1112
 
@@ -1084,6 +1115,9 @@ namespace boost {
1084
1115
  InputIt, InputIt, size_type, const hasher&, const allocator_type&);
1085
1116
 
1086
1117
  #if !defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST)
1118
+ unordered_multimap(
1119
+ std::initializer_list<value_type>, const allocator_type&);
1120
+
1087
1121
  unordered_multimap(
1088
1122
  std::initializer_list<value_type>, size_type, const allocator_type&);
1089
1123
 
@@ -1601,62 +1635,82 @@ namespace boost {
1601
1635
  class Pred =
1602
1636
  std::equal_to<boost::unordered::detail::iter_key_t<InputIterator> >,
1603
1637
  class Allocator = std::allocator<
1604
- boost::unordered::detail::iter_to_alloc_t<InputIterator> > >
1638
+ boost::unordered::detail::iter_to_alloc_t<InputIterator> >,
1639
+ class = boost::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
1640
+ class = boost::enable_if_t<detail::is_hash_v<Hash> >,
1641
+ class = boost::enable_if_t<detail::is_pred_v<Pred> >,
1642
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
1605
1643
  unordered_multimap(InputIterator, InputIterator,
1606
1644
  std::size_t = boost::unordered::detail::default_bucket_count,
1607
1645
  Hash = Hash(), Pred = Pred(), Allocator = Allocator())
1608
- ->unordered_multimap<boost::unordered::detail::iter_key_t<InputIterator>,
1646
+ -> unordered_multimap<boost::unordered::detail::iter_key_t<InputIterator>,
1609
1647
  boost::unordered::detail::iter_val_t<InputIterator>, Hash, Pred,
1610
1648
  Allocator>;
1611
1649
 
1612
- template <class Key, class T, class Hash = boost::hash<Key>,
1613
- class Pred = std::equal_to<Key>,
1614
- class Allocator = std::allocator<std::pair<const Key, T> > >
1615
- unordered_multimap(std::initializer_list<std::pair<const Key, T> >,
1650
+ template <class Key, class T,
1651
+ class Hash = boost::hash<boost::remove_const_t<Key> >,
1652
+ class Pred = std::equal_to<boost::remove_const_t<Key> >,
1653
+ class Allocator = std::allocator<std::pair<const Key, T> >,
1654
+ class = boost::enable_if_t<detail::is_hash_v<Hash> >,
1655
+ class = boost::enable_if_t<detail::is_pred_v<Pred> >,
1656
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
1657
+ unordered_multimap(std::initializer_list<std::pair<Key, T> >,
1616
1658
  std::size_t = boost::unordered::detail::default_bucket_count,
1617
1659
  Hash = Hash(), Pred = Pred(), Allocator = Allocator())
1618
- ->unordered_multimap<Key, T, Hash, Pred, Allocator>;
1660
+ -> unordered_multimap<boost::remove_const_t<Key>, T, Hash, Pred,
1661
+ Allocator>;
1619
1662
 
1620
- template <class InputIterator, class Allocator>
1663
+ template <class InputIterator, class Allocator,
1664
+ class = boost::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
1665
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
1621
1666
  unordered_multimap(InputIterator, InputIterator, std::size_t, Allocator)
1622
- ->unordered_multimap<boost::unordered::detail::iter_key_t<InputIterator>,
1667
+ -> unordered_multimap<boost::unordered::detail::iter_key_t<InputIterator>,
1623
1668
  boost::unordered::detail::iter_val_t<InputIterator>,
1624
1669
  boost::hash<boost::unordered::detail::iter_key_t<InputIterator> >,
1625
1670
  std::equal_to<boost::unordered::detail::iter_key_t<InputIterator> >,
1626
1671
  Allocator>;
1627
1672
 
1628
- template <class InputIterator, class Allocator>
1673
+ template <class InputIterator, class Allocator,
1674
+ class = boost::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
1675
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
1629
1676
  unordered_multimap(InputIterator, InputIterator, Allocator)
1630
- ->unordered_multimap<boost::unordered::detail::iter_key_t<InputIterator>,
1677
+ -> unordered_multimap<boost::unordered::detail::iter_key_t<InputIterator>,
1631
1678
  boost::unordered::detail::iter_val_t<InputIterator>,
1632
1679
  boost::hash<boost::unordered::detail::iter_key_t<InputIterator> >,
1633
1680
  std::equal_to<boost::unordered::detail::iter_key_t<InputIterator> >,
1634
1681
  Allocator>;
1635
1682
 
1636
- template <class InputIterator, class Hash, class Allocator>
1683
+ template <class InputIterator, class Hash, class Allocator,
1684
+ class = boost::enable_if_t<detail::is_hash_v<Hash> >,
1685
+ class = boost::enable_if_t<detail::is_input_iterator_v<InputIterator> >,
1686
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
1637
1687
  unordered_multimap(
1638
1688
  InputIterator, InputIterator, std::size_t, Hash, Allocator)
1639
- ->unordered_multimap<boost::unordered::detail::iter_key_t<InputIterator>,
1689
+ -> unordered_multimap<boost::unordered::detail::iter_key_t<InputIterator>,
1640
1690
  boost::unordered::detail::iter_val_t<InputIterator>, Hash,
1641
1691
  std::equal_to<boost::unordered::detail::iter_key_t<InputIterator> >,
1642
1692
  Allocator>;
1643
1693
 
1644
- template <class Key, class T, typename Allocator>
1645
- unordered_multimap(
1646
- std::initializer_list<std::pair<const Key, T> >, std::size_t, Allocator)
1647
- ->unordered_multimap<Key, T, boost::hash<Key>, std::equal_to<Key>,
1648
- Allocator>;
1649
-
1650
- template <class Key, class T, typename Allocator>
1651
- unordered_multimap(
1652
- std::initializer_list<std::pair<const Key, T> >, Allocator)
1653
- ->unordered_multimap<Key, T, boost::hash<Key>, std::equal_to<Key>,
1654
- Allocator>;
1655
-
1656
- template <class Key, class T, class Hash, class Allocator>
1657
- unordered_multimap(std::initializer_list<std::pair<const Key, T> >,
1658
- std::size_t, Hash, Allocator)
1659
- ->unordered_multimap<Key, T, Hash, std::equal_to<Key>, Allocator>;
1694
+ template <class Key, class T, class Allocator,
1695
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
1696
+ unordered_multimap(std::initializer_list<std::pair<Key, T> >, std::size_t,
1697
+ Allocator) -> unordered_multimap<boost::remove_const_t<Key>, T,
1698
+ boost::hash<boost::remove_const_t<Key> >,
1699
+ std::equal_to<boost::remove_const_t<Key> >, Allocator>;
1700
+
1701
+ template <class Key, class T, class Allocator,
1702
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
1703
+ unordered_multimap(std::initializer_list<std::pair<Key, T> >, Allocator)
1704
+ -> unordered_multimap<boost::remove_const_t<Key>, T,
1705
+ boost::hash<boost::remove_const_t<Key> >,
1706
+ std::equal_to<boost::remove_const_t<Key> >, Allocator>;
1707
+
1708
+ template <class Key, class T, class Hash, class Allocator,
1709
+ class = boost::enable_if_t<detail::is_hash_v<Hash> >,
1710
+ class = boost::enable_if_t<detail::is_allocator_v<Allocator> > >
1711
+ unordered_multimap(std::initializer_list<std::pair<Key, T> >, std::size_t,
1712
+ Hash, Allocator) -> unordered_multimap<boost::remove_const_t<Key>, T,
1713
+ Hash, std::equal_to<boost::remove_const_t<Key> >, Allocator>;
1660
1714
 
1661
1715
  #endif
1662
1716
 
@@ -1664,8 +1718,6 @@ namespace boost {
1664
1718
 
1665
1719
  template <class K, class T, class H, class P, class A>
1666
1720
  unordered_map<K, T, H, P, A>::unordered_map()
1667
- : table_(boost::unordered::detail::default_bucket_count, hasher(),
1668
- key_equal(), allocator_type())
1669
1721
  {
1670
1722
  }
1671
1723
 
@@ -1753,6 +1805,17 @@ namespace boost {
1753
1805
  {
1754
1806
  }
1755
1807
 
1808
+ template <class K, class T, class H, class P, class A>
1809
+ template <class InputIterator>
1810
+ unordered_map<K, T, H, P, A>::unordered_map(
1811
+ InputIterator f, InputIterator l, const allocator_type& a)
1812
+ : table_(boost::unordered::detail::initial_size(
1813
+ f, l, detail::default_bucket_count),
1814
+ hasher(), key_equal(), a)
1815
+ {
1816
+ this->insert(f, l);
1817
+ }
1818
+
1756
1819
  template <class K, class T, class H, class P, class A>
1757
1820
  template <class InputIt>
1758
1821
  unordered_map<K, T, H, P, A>::unordered_map(
@@ -1775,6 +1838,16 @@ namespace boost {
1775
1838
 
1776
1839
  #if !defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST)
1777
1840
 
1841
+ template <class K, class T, class H, class P, class A>
1842
+ unordered_map<K, T, H, P, A>::unordered_map(
1843
+ std::initializer_list<value_type> list, const allocator_type& a)
1844
+ : table_(boost::unordered::detail::initial_size(
1845
+ list.begin(), list.end(), detail::default_bucket_count),
1846
+ hasher(), key_equal(), a)
1847
+ {
1848
+ this->insert(list.begin(), list.end());
1849
+ }
1850
+
1778
1851
  template <class K, class T, class H, class P, class A>
1779
1852
  unordered_map<K, T, H, P, A>::unordered_map(
1780
1853
  std::initializer_list<value_type> list, size_type n,
@@ -2069,6 +2142,10 @@ namespace boost {
2069
2142
  template <class K, class T, class H, class P, class A>
2070
2143
  float unordered_map<K, T, H, P, A>::load_factor() const BOOST_NOEXCEPT
2071
2144
  {
2145
+ if (table_.size_ == 0) {
2146
+ return 0.0f;
2147
+ }
2148
+
2072
2149
  BOOST_ASSERT(table_.bucket_count() != 0);
2073
2150
  return static_cast<float>(table_.size_) /
2074
2151
  static_cast<float>(table_.bucket_count());
@@ -2143,8 +2220,6 @@ namespace boost {
2143
2220
 
2144
2221
  template <class K, class T, class H, class P, class A>
2145
2222
  unordered_multimap<K, T, H, P, A>::unordered_multimap()
2146
- : table_(boost::unordered::detail::default_bucket_count, hasher(),
2147
- key_equal(), allocator_type())
2148
2223
  {
2149
2224
  }
2150
2225
 
@@ -2234,6 +2309,17 @@ namespace boost {
2234
2309
  {
2235
2310
  }
2236
2311
 
2312
+ template <class K, class T, class H, class P, class A>
2313
+ template <class InputIterator>
2314
+ unordered_multimap<K, T, H, P, A>::unordered_multimap(
2315
+ InputIterator f, InputIterator l, const allocator_type& a)
2316
+ : table_(boost::unordered::detail::initial_size(
2317
+ f, l, detail::default_bucket_count),
2318
+ hasher(), key_equal(), a)
2319
+ {
2320
+ this->insert(f, l);
2321
+ }
2322
+
2237
2323
  template <class K, class T, class H, class P, class A>
2238
2324
  template <class InputIt>
2239
2325
  unordered_multimap<K, T, H, P, A>::unordered_multimap(
@@ -2256,6 +2342,16 @@ namespace boost {
2256
2342
 
2257
2343
  #if !defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST)
2258
2344
 
2345
+ template <class K, class T, class H, class P, class A>
2346
+ unordered_multimap<K, T, H, P, A>::unordered_multimap(
2347
+ std::initializer_list<value_type> list, const allocator_type& a)
2348
+ : table_(boost::unordered::detail::initial_size(
2349
+ list.begin(), list.end(), detail::default_bucket_count),
2350
+ hasher(), key_equal(), a)
2351
+ {
2352
+ this->insert(list.begin(), list.end());
2353
+ }
2354
+
2259
2355
  template <class K, class T, class H, class P, class A>
2260
2356
  unordered_multimap<K, T, H, P, A>::unordered_multimap(
2261
2357
  std::initializer_list<value_type> list, size_type n,
@@ -2506,6 +2602,10 @@ namespace boost {
2506
2602
  template <class K, class T, class H, class P, class A>
2507
2603
  float unordered_multimap<K, T, H, P, A>::load_factor() const BOOST_NOEXCEPT
2508
2604
  {
2605
+ if (table_.size_ == 0) {
2606
+ return 0.0f;
2607
+ }
2608
+
2509
2609
  BOOST_ASSERT(table_.bucket_count() != 0);
2510
2610
  return static_cast<float>(table_.size_) /
2511
2611
  static_cast<float>(table_.bucket_count());