passenger 6.0.8 → 6.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1905) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG +288 -0
  3. data/CONTRIBUTORS +15 -0
  4. data/bin/passenger-install-nginx-module +2 -1
  5. data/bin/passenger-status +29 -4
  6. data/build/common_library.rb +2 -1
  7. data/build/integration_tests.rb +8 -7
  8. data/build/ruby_tests.rb +1 -1
  9. data/build/test_basics.rb +8 -5
  10. data/dev/copy_boost_headers +119 -71
  11. data/dev/index_cxx_dependencies.rb +1 -1
  12. data/dev/webpacketpp.patch +39 -0
  13. data/doc/templates/markdown.html.erb +2 -6
  14. data/package.json +20 -18
  15. data/resources/mime.types +1 -0
  16. data/resources/templates/error_renderer/with_details/dist/bundle.js +2 -33
  17. data/resources/templates/error_renderer/with_details/dist/styles.css +2 -2
  18. data/resources/templates/error_renderer/with_details/src/index.html.template +0 -2
  19. data/resources/templates/error_renderer/with_details/webpack.config.js +13 -16
  20. data/resources/templates/error_renderer/without_details/dist/bundle.js +0 -1
  21. data/resources/templates/error_renderer/without_details/dist/styles.css +1 -1
  22. data/resources/templates/error_renderer/without_details/webpack.config.js +13 -16
  23. data/resources/templates/standalone/server.erb +1 -0
  24. data/src/agent/Core/ApiServer.h +35 -0
  25. data/src/agent/Core/ApplicationPool/Group/StateInspection.cpp +1 -0
  26. data/src/agent/Core/ApplicationPool/Options.h +5 -0
  27. data/src/agent/Core/ApplicationPool/Pool.h +9 -1
  28. data/src/agent/Core/Config.h +2 -1
  29. data/src/agent/Core/Controller/CheckoutSession.cpp +24 -13
  30. data/src/agent/Core/Controller/Config.h +6 -2
  31. data/src/agent/Core/Controller/InitRequest.cpp +2 -0
  32. data/src/agent/Core/Controller/InternalUtils.cpp +32 -6
  33. data/src/agent/Core/Controller.h +4 -1
  34. data/src/agent/Core/OptionParser.h +4 -0
  35. data/src/agent/Core/SecurityUpdateChecker.h +4 -4
  36. data/src/agent/Core/SpawningKit/Config/AutoGeneratedCode.h +7 -0
  37. data/src/agent/Core/SpawningKit/Config.h +13 -0
  38. data/src/agent/Core/SpawningKit/Handshake/Prepare.h +4 -0
  39. data/src/agent/Core/SpawningKit/PipeWatcher.h +18 -3
  40. data/src/agent/Core/SpawningKit/Spawner.h +1 -0
  41. data/src/agent/Shared/ApplicationPoolApiKey.h +2 -0
  42. data/src/agent/SpawnEnvSetupper/SpawnEnvSetupperMain.cpp +27 -1
  43. data/src/agent/Watchdog/Config.h +2 -1
  44. data/src/agent/Watchdog/WatchdogMain.cpp +4 -0
  45. data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp +32 -27
  46. data/src/apache2_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.cpp +5 -0
  47. data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp +19 -1
  48. data/src/apache2_module/DirConfig/AutoGeneratedCreateFunction.cpp +3 -0
  49. data/src/apache2_module/DirConfig/AutoGeneratedHeaderSerialization.cpp +3 -0
  50. data/src/apache2_module/DirConfig/AutoGeneratedManifestGeneration.cpp +11 -0
  51. data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp +7 -0
  52. data/src/apache2_module/DirConfig/AutoGeneratedStruct.h +19 -2
  53. data/src/apache2_module/Hooks.cpp +1 -0
  54. data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h +19 -19
  55. data/src/cxx_supportlib/BackgroundEventLoop.cpp +4 -0
  56. data/src/cxx_supportlib/Constants.h +1 -1
  57. data/src/cxx_supportlib/DataStructures/HashedStaticString.h +2 -0
  58. data/src/cxx_supportlib/FileDescriptor.h +8 -0
  59. data/src/cxx_supportlib/IOTools/IOUtils.cpp +4 -4
  60. data/src/cxx_supportlib/LoggingKit/Context.h +1 -1
  61. data/src/cxx_supportlib/SafeLibev.h +2 -0
  62. data/src/cxx_supportlib/ServerKit/HttpHeaderParser.h +3 -0
  63. data/src/cxx_supportlib/ServerKit/http_parser.cpp +740 -430
  64. data/src/cxx_supportlib/ServerKit/http_parser.h +156 -34
  65. data/src/cxx_supportlib/StaticString.h +2 -0
  66. data/src/cxx_supportlib/Utils/HttpConstants.h +1 -1
  67. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/case_conv.hpp +3 -0
  68. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/classification.hpp +2 -0
  69. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/find_format_all.hpp +2 -0
  70. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/find_iterator.hpp +11 -3
  71. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/find_iterator.hpp +27 -1
  72. data/src/cxx_supportlib/vendor-modified/boost/align/aligned_alloc.hpp +47 -0
  73. data/src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc_posix.hpp +41 -0
  74. data/src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc_sunos.hpp +34 -0
  75. data/src/cxx_supportlib/vendor-modified/boost/align/detail/is_alignment.hpp +28 -0
  76. data/src/cxx_supportlib/vendor-modified/boost/array.hpp +1 -1
  77. data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_executor.hpp +344 -0
  78. data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_handler.hpp +825 -0
  79. data/src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp +299 -11
  80. data/src/cxx_supportlib/vendor-modified/boost/asio/append.hpp +80 -0
  81. data/src/cxx_supportlib/vendor-modified/boost/asio/as_tuple.hpp +141 -0
  82. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_allocator.hpp +129 -21
  83. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_cancellation_slot.hpp +240 -0
  84. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_executor.hpp +103 -16
  85. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_immediate_executor.hpp +299 -0
  86. data/src/cxx_supportlib/vendor-modified/boost/asio/associator.hpp +37 -0
  87. data/src/cxx_supportlib/vendor-modified/boost/asio/async_result.hpp +1209 -120
  88. data/src/cxx_supportlib/vendor-modified/boost/asio/awaitable.hpp +11 -2
  89. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +306 -125
  90. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +50 -28
  91. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_file.hpp +831 -0
  92. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_io_object.hpp +1 -1
  93. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_random_access_file.hpp +703 -0
  94. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +308 -127
  95. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_readable_pipe.hpp +637 -0
  96. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +130 -56
  97. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +143 -50
  98. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +120 -37
  99. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +102 -49
  100. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +461 -207
  101. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_iostream.hpp +1 -1
  102. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_streambuf.hpp +1 -1
  103. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_file.hpp +756 -0
  104. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +229 -93
  105. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf.hpp +1 -1
  106. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf_fwd.hpp +1 -1
  107. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +55 -33
  108. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_writable_pipe.hpp +633 -0
  109. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_allocator.hpp +751 -0
  110. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_cancellation_slot.hpp +754 -0
  111. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_executor.hpp +230 -24
  112. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_immediate_executor.hpp +753 -0
  113. data/src/cxx_supportlib/vendor-modified/boost/asio/buffer.hpp +479 -66
  114. data/src/cxx_supportlib/vendor-modified/boost/asio/buffer_registration.hpp +330 -0
  115. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream.hpp +43 -10
  116. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream_fwd.hpp +1 -1
  117. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream.hpp +39 -10
  118. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream_fwd.hpp +1 -1
  119. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream.hpp +43 -10
  120. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream_fwd.hpp +1 -1
  121. data/src/cxx_supportlib/vendor-modified/boost/asio/buffers_iterator.hpp +1 -1
  122. data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_signal.hpp +307 -0
  123. data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_state.hpp +237 -0
  124. data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_type.hpp +176 -0
  125. data/src/cxx_supportlib/vendor-modified/boost/asio/co_spawn.hpp +73 -21
  126. data/src/cxx_supportlib/vendor-modified/boost/asio/completion_condition.hpp +1 -1
  127. data/src/cxx_supportlib/vendor-modified/boost/asio/compose.hpp +415 -13
  128. data/src/cxx_supportlib/vendor-modified/boost/asio/connect.hpp +206 -75
  129. data/src/cxx_supportlib/vendor-modified/boost/asio/connect_pipe.hpp +85 -0
  130. data/src/cxx_supportlib/vendor-modified/boost/asio/consign.hpp +90 -0
  131. data/src/cxx_supportlib/vendor-modified/boost/asio/coroutine.hpp +1 -1
  132. data/src/cxx_supportlib/vendor-modified/boost/asio/deadline_timer.hpp +1 -1
  133. data/src/cxx_supportlib/vendor-modified/boost/asio/defer.hpp +139 -47
  134. data/src/cxx_supportlib/vendor-modified/boost/asio/deferred.hpp +804 -0
  135. data/src/cxx_supportlib/vendor-modified/boost/asio/detached.hpp +8 -7
  136. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array.hpp +1 -1
  137. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array_fwd.hpp +1 -1
  138. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/assert.hpp +1 -1
  139. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/atomic_count.hpp +4 -1
  140. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_cancellation_state.hpp +165 -0
  141. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_completion_cond.hpp +1 -1
  142. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +276 -65
  143. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/blocking_executor_op.hpp +2 -1
  144. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_resize_guard.hpp +1 -1
  145. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_sequence_adapter.hpp +192 -1
  146. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffered_stream_storage.hpp +1 -1
  147. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bulk_executor_op.hpp +2 -1
  148. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/call_stack.hpp +1 -1
  149. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono.hpp +1 -1
  150. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono_time_traits.hpp +1 -1
  151. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_handler.hpp +1 -1
  152. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/composed_work.hpp +330 -0
  153. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/concurrency_hint.hpp +1 -1
  154. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_event.hpp +1 -1
  155. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_mutex.hpp +1 -1
  156. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +578 -81
  157. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/consuming_buffers.hpp +38 -1
  158. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstddef.hpp +1 -1
  159. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstdint.hpp +3 -1
  160. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/date_time_fwd.hpp +1 -1
  161. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/deadline_timer_service.hpp +41 -1
  162. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dependent_type.hpp +1 -1
  163. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_ops.hpp +42 -2
  164. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_read_op.hpp +41 -1
  165. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_write_op.hpp +40 -1
  166. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dev_poll_reactor.hpp +36 -7
  167. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/epoll_reactor.hpp +36 -7
  168. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/event.hpp +1 -1
  169. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/eventfd_select_interrupter.hpp +1 -1
  170. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/exception.hpp +42 -0
  171. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_function.hpp +3 -2
  172. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_op.hpp +2 -1
  173. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fd_set_adapter.hpp +1 -1
  174. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fenced_block.hpp +1 -1
  175. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/functional.hpp +7 -1
  176. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/future.hpp +1 -1
  177. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_arm_fenced_block.hpp +1 -1
  178. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_hppa_fenced_block.hpp +1 -1
  179. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_sync_fenced_block.hpp +1 -1
  180. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_x86_fenced_block.hpp +2 -2
  181. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/global.hpp +1 -1
  182. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +16 -12
  183. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_cont_helpers.hpp +1 -1
  184. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_invoke_helpers.hpp +1 -1
  185. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_tracking.hpp +1 -1
  186. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_type_requirements.hpp +22 -19
  187. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_work.hpp +155 -28
  188. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/hash_map.hpp +1 -1
  189. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/buffer_sequence_adapter.ipp +1 -1
  190. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +367 -5
  191. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.hpp +21 -1
  192. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.ipp +27 -4
  193. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.hpp +21 -1
  194. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.ipp +47 -8
  195. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/eventfd_select_interrupter.ipp +10 -8
  196. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +4 -2
  197. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_descriptor_service.ipp +207 -0
  198. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_file_service.ipp +142 -0
  199. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.hpp +114 -0
  200. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.ipp +916 -0
  201. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_socket_service_base.ipp +251 -0
  202. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.hpp +21 -1
  203. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.ipp +44 -6
  204. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/null_event.ipp +1 -1
  205. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/pipe_select_interrupter.ipp +1 -1
  206. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_event.ipp +8 -4
  207. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_mutex.ipp +1 -1
  208. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/{reactive_serial_port_service.ipp → posix_serial_port_service.ipp} +38 -19
  209. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_thread.ipp +1 -1
  210. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_tss_ptr.ipp +1 -1
  211. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_descriptor_service.ipp +16 -9
  212. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_socket_service_base.ipp +29 -19
  213. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/resolver_service_base.ipp +1 -1
  214. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/scheduler.ipp +25 -4
  215. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.hpp +25 -1
  216. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.ipp +67 -5
  217. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.hpp +1 -1
  218. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.ipp +1 -1
  219. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/signal_set_service.ipp +164 -6
  220. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_ops.ipp +147 -132
  221. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_select_interrupter.ipp +4 -4
  222. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.hpp +24 -42
  223. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.ipp +25 -1
  224. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.hpp +3 -33
  225. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.ipp +29 -5
  226. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/thread_context.ipp +37 -0
  227. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/throw_error.ipp +10 -6
  228. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_ptime.ipp +7 -1
  229. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_set.ipp +1 -1
  230. data/src/cxx_supportlib/vendor-modified/boost/asio/{impl/defer.hpp → detail/initiate_defer.hpp} +52 -48
  231. data/src/cxx_supportlib/vendor-modified/boost/asio/{impl/dispatch.hpp → detail/initiate_dispatch.hpp} +43 -57
  232. data/src/cxx_supportlib/vendor-modified/boost/asio/{impl/post.hpp → detail/initiate_post.hpp} +52 -48
  233. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_control.hpp +1 -1
  234. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_object_impl.hpp +14 -8
  235. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_at_op.hpp +197 -0
  236. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_op.hpp +192 -0
  237. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_service.hpp +689 -0
  238. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_at_op.hpp +191 -0
  239. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_op.hpp +187 -0
  240. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_file_service.hpp +263 -0
  241. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_null_buffers_op.hpp +117 -0
  242. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_operation.hpp +86 -0
  243. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_service.hpp +321 -0
  244. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_accept_op.hpp +287 -0
  245. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_connect_op.hpp +143 -0
  246. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recv_op.hpp +207 -0
  247. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvfrom_op.hpp +208 -0
  248. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvmsg_op.hpp +194 -0
  249. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_send_op.hpp +193 -0
  250. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_sendto_op.hpp +196 -0
  251. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service.hpp +633 -0
  252. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service_base.hpp +665 -0
  253. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_wait_op.hpp +115 -0
  254. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_buffer_sequence.hpp +27 -1
  255. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_executor.hpp +1 -1
  256. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/keyword_tss_ptr.hpp +1 -1
  257. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/kqueue_reactor.hpp +37 -8
  258. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/local_free_on_block_exit.hpp +1 -1
  259. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/macos_fenced_block.hpp +1 -1
  260. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +97 -1
  261. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/mutex.hpp +1 -1
  262. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/non_const_lvalue.hpp +1 -1
  263. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/noncopyable.hpp +1 -1
  264. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_event.hpp +1 -1
  265. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_fenced_block.hpp +1 -1
  266. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_global.hpp +1 -1
  267. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_mutex.hpp +1 -5
  268. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_reactor.hpp +19 -4
  269. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_signal_blocker.hpp +1 -1
  270. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_socket_service.hpp +1 -1
  271. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_static_mutex.hpp +1 -1
  272. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_thread.hpp +1 -1
  273. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_tss_ptr.hpp +1 -1
  274. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/object_pool.hpp +1 -1
  275. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/old_win_sdk_compat.hpp +1 -1
  276. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/op_queue.hpp +1 -1
  277. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/operation.hpp +1 -1
  278. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pipe_select_interrupter.hpp +1 -1
  279. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pop_options.hpp +17 -1
  280. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_event.hpp +1 -1
  281. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_fd_set_adapter.hpp +1 -1
  282. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_global.hpp +1 -1
  283. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_mutex.hpp +1 -1
  284. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/{reactive_serial_port_service.hpp → posix_serial_port_service.hpp} +30 -18
  285. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_signal_blocker.hpp +1 -1
  286. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_static_mutex.hpp +1 -1
  287. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_thread.hpp +1 -1
  288. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_tss_ptr.hpp +1 -1
  289. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/push_options.hpp +45 -2
  290. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_descriptor_service.hpp +176 -26
  291. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_null_buffers_op.hpp +35 -1
  292. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_accept_op.hpp +87 -1
  293. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_connect_op.hpp +41 -1
  294. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recv_op.hpp +40 -1
  295. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvfrom_op.hpp +41 -1
  296. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvmsg_op.hpp +41 -1
  297. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_send_op.hpp +41 -1
  298. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_sendto_op.hpp +40 -1
  299. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service.hpp +127 -20
  300. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service_base.hpp +239 -30
  301. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_wait_op.hpp +35 -1
  302. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor.hpp +29 -5
  303. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op.hpp +5 -1
  304. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op_queue.hpp +45 -1
  305. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/recycling_allocator.hpp +4 -5
  306. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/regex_fwd.hpp +11 -2
  307. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_endpoint_op.hpp +4 -3
  308. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_op.hpp +1 -1
  309. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_query_op.hpp +4 -3
  310. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service.hpp +9 -7
  311. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service_base.hpp +16 -1
  312. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler.hpp +17 -8
  313. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_operation.hpp +1 -1
  314. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_task.hpp +51 -0
  315. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_thread_info.hpp +1 -1
  316. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_lock.hpp +1 -1
  317. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_ptr.hpp +1 -1
  318. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_interrupter.hpp +1 -1
  319. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_reactor.hpp +59 -6
  320. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/service_registry.hpp +1 -1
  321. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_blocker.hpp +1 -1
  322. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_handler.hpp +1 -1
  323. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_init.hpp +1 -1
  324. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_op.hpp +5 -1
  325. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_set_service.hpp +67 -4
  326. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_holder.hpp +1 -1
  327. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_ops.hpp +37 -45
  328. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_option.hpp +1 -1
  329. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_select_interrupter.hpp +1 -1
  330. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_types.hpp +12 -1
  331. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/solaris_fenced_block.hpp +1 -1
  332. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/source_location.hpp +1 -1
  333. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/static_mutex.hpp +1 -1
  334. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_event.hpp +2 -2
  335. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_fenced_block.hpp +1 -1
  336. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_global.hpp +1 -1
  337. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_mutex.hpp +1 -1
  338. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_static_mutex.hpp +1 -1
  339. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_thread.hpp +1 -1
  340. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_executor_service.hpp +8 -1
  341. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_service.hpp +4 -5
  342. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/string_view.hpp +1 -1
  343. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread.hpp +5 -5
  344. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_context.hpp +10 -1
  345. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_group.hpp +5 -1
  346. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_info_base.hpp +102 -25
  347. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_error.hpp +18 -9
  348. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_exception.hpp +7 -3
  349. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue.hpp +31 -2
  350. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_base.hpp +1 -1
  351. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_ptime.hpp +5 -1
  352. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_set.hpp +1 -1
  353. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler.hpp +3 -1
  354. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler_fwd.hpp +3 -1
  355. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/tss_ptr.hpp +1 -1
  356. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/type_traits.hpp +17 -1
  357. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/utility.hpp +85 -0
  358. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/variadic_templates.hpp +1 -1
  359. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_handler.hpp +1 -1
  360. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_op.hpp +6 -2
  361. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/winsock_init.hpp +1 -1
  362. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/work_dispatcher.hpp +15 -6
  363. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wrapped_handler.hpp +1 -1
  364. data/src/cxx_supportlib/vendor-modified/boost/asio/dispatch.hpp +125 -44
  365. data/src/cxx_supportlib/vendor-modified/boost/asio/error.hpp +30 -1
  366. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp +126 -19
  367. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/any_executor.hpp +708 -249
  368. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bad_executor.hpp +1 -1
  369. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking.hpp +332 -83
  370. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking_adaptation.hpp +263 -70
  371. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_execute.hpp +62 -50
  372. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_guarantee.hpp +324 -90
  373. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/connect.hpp +52 -44
  374. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context.hpp +73 -14
  375. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context_as.hpp +40 -9
  376. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_invocable.hpp +1 -1
  377. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_operation.hpp +5 -1
  378. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_receiver.hpp +1 -1
  379. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/bulk_sender.hpp +1 -1
  380. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/submit_receiver.hpp +1 -1
  381. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/void_receiver.hpp +1 -1
  382. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/execute.hpp +80 -54
  383. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp +50 -26
  384. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/bad_executor.ipp +1 -1
  385. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/receiver_invocation_error.ipp +1 -1
  386. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/invocable_archetype.hpp +1 -1
  387. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/mapping.hpp +325 -82
  388. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/occupancy.hpp +73 -14
  389. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/operation_state.hpp +6 -1
  390. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/outstanding_work.hpp +249 -70
  391. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/prefer_only.hpp +7 -3
  392. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver.hpp +6 -1
  393. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver_invocation_error.hpp +1 -1
  394. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/relationship.hpp +248 -70
  395. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/schedule.hpp +26 -24
  396. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/scheduler.hpp +6 -1
  397. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/sender.hpp +6 -1
  398. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_done.hpp +19 -17
  399. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_error.hpp +19 -17
  400. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_value.hpp +25 -23
  401. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/start.hpp +19 -17
  402. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/submit.hpp +34 -29
  403. data/src/cxx_supportlib/vendor-modified/boost/asio/execution.hpp +1 -1
  404. data/src/cxx_supportlib/vendor-modified/boost/asio/execution_context.hpp +1 -1
  405. data/src/cxx_supportlib/vendor-modified/boost/asio/executor.hpp +1 -1
  406. data/src/cxx_supportlib/vendor-modified/boost/asio/executor_work_guard.hpp +130 -50
  407. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/append.hpp +38 -0
  408. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_single.hpp +138 -0
  409. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_tuple.hpp +38 -0
  410. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/awaitable_operators.hpp +538 -0
  411. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_channel.hpp +493 -0
  412. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_concurrent_channel.hpp +493 -0
  413. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/cancellation_condition.hpp +157 -0
  414. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel.hpp +72 -0
  415. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_error.hpp +88 -0
  416. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_traits.hpp +303 -0
  417. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_composed.hpp +147 -0
  418. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_spawn.hpp +189 -0
  419. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/concurrent_channel.hpp +72 -0
  420. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro.hpp +295 -0
  421. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro_traits.hpp +230 -0
  422. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/deferred.hpp +38 -0
  423. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_handler.hpp +82 -0
  424. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_message.hpp +131 -0
  425. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_operation.hpp +286 -0
  426. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_payload.hpp +141 -0
  427. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_receive_op.hpp +122 -0
  428. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_functions.hpp +146 -0
  429. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_op.hpp +150 -0
  430. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_service.hpp +679 -0
  431. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_completion_handler.hpp +171 -0
  432. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_promise_allocator.hpp +143 -0
  433. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/has_signature.hpp +56 -0
  434. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/impl/channel_service.hpp +614 -0
  435. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/partial_promise.hpp +201 -0
  436. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_single.hpp +241 -0
  437. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/channel_error.ipp +63 -0
  438. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/co_composed.hpp +1177 -0
  439. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/coro.hpp +1224 -0
  440. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/parallel_group.hpp +794 -0
  441. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/promise.hpp +256 -0
  442. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_coro.hpp +216 -0
  443. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_promise.hpp +68 -0
  444. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/parallel_group.hpp +463 -0
  445. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/prepend.hpp +38 -0
  446. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/promise.hpp +226 -0
  447. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_coro.hpp +197 -0
  448. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_promise.hpp +113 -0
  449. data/src/cxx_supportlib/vendor-modified/boost/asio/file_base.hpp +168 -0
  450. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/basic_endpoint.hpp +1 -1
  451. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/datagram_protocol.hpp +1 -1
  452. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/endpoint.hpp +1 -1
  453. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/impl/endpoint.ipp +1 -1
  454. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/raw_protocol.hpp +1 -1
  455. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/seq_packet_protocol.hpp +1 -1
  456. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/stream_protocol.hpp +1 -1
  457. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_alloc_hook.hpp +1 -1
  458. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_continuation_hook.hpp +1 -1
  459. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_invoke_hook.hpp +1 -1
  460. data/src/cxx_supportlib/vendor-modified/boost/asio/high_resolution_timer.hpp +1 -1
  461. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_completion_executor.ipp +132 -0
  462. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_io_executor.ipp +143 -0
  463. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/append.hpp +227 -0
  464. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/as_tuple.hpp +322 -0
  465. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/awaitable.hpp +785 -26
  466. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +50 -50
  467. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +50 -50
  468. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/cancellation_signal.ipp +98 -0
  469. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/co_spawn.hpp +193 -50
  470. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +170 -127
  471. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.hpp +75 -0
  472. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.ipp +151 -0
  473. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/consign.hpp +204 -0
  474. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/deferred.hpp +158 -0
  475. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/detached.hpp +1 -1
  476. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/error.ipp +1 -1
  477. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.hpp +1 -1
  478. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.ipp +1 -1
  479. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.hpp +1 -2
  480. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.ipp +1 -1
  481. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/handler_alloc_hook.ipp +6 -5
  482. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.hpp +57 -47
  483. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.ipp +2 -1
  484. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/multiple_exceptions.ipp +1 -1
  485. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/prepend.hpp +227 -0
  486. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +275 -201
  487. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +141 -111
  488. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +498 -378
  489. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/redirect_error.hpp +302 -58
  490. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.hpp +1 -1
  491. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.ipp +1 -1
  492. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +1375 -285
  493. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +13 -2
  494. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.hpp +1 -1
  495. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.ipp +1 -1
  496. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_executor.hpp +1 -2
  497. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.hpp +6 -2
  498. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.ipp +5 -4
  499. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_awaitable.hpp +43 -21
  500. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +28 -3
  501. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +235 -186
  502. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +117 -96
  503. data/src/cxx_supportlib/vendor-modified/boost/asio/io_context.hpp +126 -122
  504. data/src/cxx_supportlib/vendor-modified/boost/asio/io_context_strand.hpp +15 -3
  505. data/src/cxx_supportlib/vendor-modified/boost/asio/io_service.hpp +1 -1
  506. data/src/cxx_supportlib/vendor-modified/boost/asio/io_service_strand.hpp +1 -1
  507. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address.hpp +23 -1
  508. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4.hpp +98 -3
  509. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_iterator.hpp +1 -1
  510. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_range.hpp +1 -1
  511. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6.hpp +81 -6
  512. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_iterator.hpp +1 -1
  513. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_range.hpp +1 -1
  514. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/bad_address_cast.hpp +11 -1
  515. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_endpoint.hpp +32 -5
  516. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver.hpp +180 -68
  517. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_entry.hpp +1 -1
  518. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_iterator.hpp +1 -1
  519. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_query.hpp +1 -1
  520. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_results.hpp +1 -1
  521. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/endpoint.hpp +1 -1
  522. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/impl/endpoint.ipp +1 -1
  523. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/socket_option.hpp +1 -1
  524. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/host_name.hpp +1 -1
  525. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/icmp.hpp +1 -1
  526. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.hpp +1 -1
  527. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.ipp +1 -1
  528. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.hpp +1 -1
  529. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.ipp +1 -1
  530. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.hpp +1 -1
  531. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.ipp +2 -2
  532. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/basic_endpoint.hpp +1 -1
  533. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/host_name.ipp +1 -1
  534. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.hpp +1 -1
  535. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.ipp +4 -2
  536. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.hpp +1 -1
  537. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.ipp +4 -2
  538. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/multicast.hpp +1 -1
  539. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v4.hpp +2 -2
  540. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v6.hpp +1 -1
  541. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_base.hpp +1 -1
  542. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_query_base.hpp +1 -1
  543. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/tcp.hpp +1 -1
  544. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/udp.hpp +1 -1
  545. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/unicast.hpp +1 -1
  546. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/v6_only.hpp +2 -2
  547. data/src/cxx_supportlib/vendor-modified/boost/asio/is_applicable_property.hpp +1 -1
  548. data/src/cxx_supportlib/vendor-modified/boost/asio/is_contiguous_iterator.hpp +47 -0
  549. data/src/cxx_supportlib/vendor-modified/boost/asio/is_executor.hpp +1 -1
  550. data/src/cxx_supportlib/vendor-modified/boost/asio/is_read_buffered.hpp +1 -1
  551. data/src/cxx_supportlib/vendor-modified/boost/asio/is_write_buffered.hpp +1 -1
  552. data/src/cxx_supportlib/vendor-modified/boost/asio/local/basic_endpoint.hpp +1 -1
  553. data/src/cxx_supportlib/vendor-modified/boost/asio/local/connect_pair.hpp +1 -1
  554. data/src/cxx_supportlib/vendor-modified/boost/asio/local/datagram_protocol.hpp +1 -1
  555. data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/endpoint.hpp +1 -1
  556. data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/impl/endpoint.ipp +3 -8
  557. data/src/cxx_supportlib/vendor-modified/boost/asio/local/seq_packet_protocol.hpp +86 -0
  558. data/src/cxx_supportlib/vendor-modified/boost/asio/local/stream_protocol.hpp +1 -1
  559. data/src/cxx_supportlib/vendor-modified/boost/asio/multiple_exceptions.hpp +1 -1
  560. data/src/cxx_supportlib/vendor-modified/boost/asio/packaged_task.hpp +1 -1
  561. data/src/cxx_supportlib/vendor-modified/boost/asio/placeholders.hpp +1 -1
  562. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +111 -27
  563. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +136 -37
  564. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor.hpp +1 -1
  565. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor_base.hpp +1 -1
  566. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/stream_descriptor.hpp +1 -1
  567. data/src/cxx_supportlib/vendor-modified/boost/asio/post.hpp +139 -47
  568. data/src/cxx_supportlib/vendor-modified/boost/asio/prefer.hpp +243 -165
  569. data/src/cxx_supportlib/vendor-modified/boost/asio/prepend.hpp +80 -0
  570. data/src/cxx_supportlib/vendor-modified/boost/asio/query.hpp +85 -57
  571. data/src/cxx_supportlib/vendor-modified/boost/asio/random_access_file.hpp +37 -0
  572. data/src/cxx_supportlib/vendor-modified/boost/asio/read.hpp +381 -189
  573. data/src/cxx_supportlib/vendor-modified/boost/asio/read_at.hpp +154 -53
  574. data/src/cxx_supportlib/vendor-modified/boost/asio/read_until.hpp +529 -226
  575. data/src/cxx_supportlib/vendor-modified/boost/asio/readable_pipe.hpp +37 -0
  576. data/src/cxx_supportlib/vendor-modified/boost/asio/recycling_allocator.hpp +140 -0
  577. data/src/cxx_supportlib/vendor-modified/boost/asio/redirect_error.hpp +3 -3
  578. data/src/cxx_supportlib/vendor-modified/boost/asio/registered_buffer.hpp +358 -0
  579. data/src/cxx_supportlib/vendor-modified/boost/asio/require.hpp +147 -100
  580. data/src/cxx_supportlib/vendor-modified/boost/asio/require_concept.hpp +105 -63
  581. data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port.hpp +1 -1
  582. data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port_base.hpp +1 -1
  583. data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set.hpp +1 -1
  584. data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set_base.hpp +184 -0
  585. data/src/cxx_supportlib/vendor-modified/boost/asio/socket_base.hpp +1 -1
  586. data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +655 -93
  587. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context.hpp +4 -1
  588. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context_base.hpp +24 -24
  589. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/buffered_handshake_op.hpp +2 -2
  590. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/engine.hpp +9 -1
  591. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/handshake_op.hpp +2 -2
  592. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/engine.ipp +33 -1
  593. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/openssl_init.ipp +7 -3
  594. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +44 -24
  595. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_init.hpp +1 -1
  596. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_types.hpp +1 -1
  597. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/password_callback.hpp +1 -1
  598. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/read_op.hpp +2 -2
  599. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/shutdown_op.hpp +3 -3
  600. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/stream_core.hpp +53 -1
  601. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/verify_callback.hpp +1 -1
  602. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/write_op.hpp +2 -2
  603. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/error.hpp +1 -1
  604. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/host_name_verification.hpp +1 -1
  605. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.hpp +1 -1
  606. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.ipp +154 -71
  607. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/error.ipp +25 -3
  608. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/host_name_verification.ipp +1 -1
  609. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/rfc2818_verification.ipp +1 -1
  610. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/src.hpp +1 -1
  611. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/rfc2818_verification.hpp +1 -1
  612. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream.hpp +227 -54
  613. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream_base.hpp +1 -1
  614. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_context.hpp +1 -1
  615. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_mode.hpp +1 -1
  616. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl.hpp +1 -1
  617. data/src/cxx_supportlib/vendor-modified/boost/asio/static_thread_pool.hpp +1 -1
  618. data/src/cxx_supportlib/vendor-modified/boost/asio/steady_timer.hpp +1 -1
  619. data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +77 -30
  620. data/src/cxx_supportlib/vendor-modified/boost/asio/stream_file.hpp +37 -0
  621. data/src/cxx_supportlib/vendor-modified/boost/asio/streambuf.hpp +1 -1
  622. data/src/cxx_supportlib/vendor-modified/boost/asio/system_context.hpp +1 -1
  623. data/src/cxx_supportlib/vendor-modified/boost/asio/system_executor.hpp +18 -9
  624. data/src/cxx_supportlib/vendor-modified/boost/asio/system_timer.hpp +1 -1
  625. data/src/cxx_supportlib/vendor-modified/boost/asio/this_coro.hpp +236 -1
  626. data/src/cxx_supportlib/vendor-modified/boost/asio/thread_pool.hpp +48 -14
  627. data/src/cxx_supportlib/vendor-modified/boost/asio/time_traits.hpp +1 -1
  628. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/bulk_execute_free.hpp +1 -1
  629. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/bulk_execute_member.hpp +1 -1
  630. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/connect_free.hpp +1 -1
  631. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/connect_member.hpp +1 -1
  632. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/equality_comparable.hpp +7 -3
  633. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_free.hpp +1 -1
  634. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_member.hpp +1 -1
  635. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_free.hpp +1 -1
  636. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_member.hpp +1 -1
  637. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_free.hpp +1 -1
  638. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_member.hpp +1 -1
  639. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_static_constexpr_member.hpp +1 -1
  640. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_free.hpp +1 -1
  641. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_member.hpp +1 -1
  642. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_free.hpp +1 -1
  643. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_member.hpp +1 -1
  644. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/schedule_free.hpp +1 -1
  645. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/schedule_member.hpp +1 -1
  646. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_done_free.hpp +1 -1
  647. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_done_member.hpp +1 -1
  648. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_error_free.hpp +1 -1
  649. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_error_member.hpp +1 -1
  650. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_value_free.hpp +1 -1
  651. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_value_member.hpp +1 -1
  652. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/start_free.hpp +1 -1
  653. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/start_member.hpp +1 -1
  654. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_query.hpp +1 -1
  655. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require.hpp +1 -1
  656. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require_concept.hpp +3 -2
  657. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/submit_free.hpp +1 -1
  658. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/submit_member.hpp +1 -1
  659. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/buffer.hpp +1 -1
  660. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/executor.hpp +1 -1
  661. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/internet.hpp +1 -1
  662. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/io_context.hpp +1 -1
  663. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/net.hpp +1 -1
  664. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/netfwd.hpp +3 -11
  665. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/socket.hpp +1 -1
  666. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/timer.hpp +1 -1
  667. data/src/cxx_supportlib/vendor-modified/boost/asio/unyield.hpp +1 -1
  668. data/src/cxx_supportlib/vendor-modified/boost/asio/use_awaitable.hpp +13 -15
  669. data/src/cxx_supportlib/vendor-modified/boost/asio/use_future.hpp +10 -7
  670. data/src/cxx_supportlib/vendor-modified/boost/asio/uses_executor.hpp +1 -1
  671. data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +2 -2
  672. data/src/cxx_supportlib/vendor-modified/boost/asio/wait_traits.hpp +1 -1
  673. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_object_handle.hpp +81 -23
  674. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_overlapped_handle.hpp +110 -11
  675. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_random_access_handle.hpp +125 -36
  676. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_stream_handle.hpp +122 -35
  677. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/object_handle.hpp +1 -1
  678. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/overlapped_handle.hpp +1 -1
  679. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/overlapped_ptr.hpp +9 -9
  680. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/random_access_handle.hpp +1 -1
  681. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/stream_handle.hpp +1 -1
  682. data/src/cxx_supportlib/vendor-modified/boost/asio/writable_pipe.hpp +37 -0
  683. data/src/cxx_supportlib/vendor-modified/boost/asio/write.hpp +378 -186
  684. data/src/cxx_supportlib/vendor-modified/boost/asio/write_at.hpp +156 -53
  685. data/src/cxx_supportlib/vendor-modified/boost/asio/yield.hpp +1 -1
  686. data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +35 -1
  687. data/src/cxx_supportlib/vendor-modified/boost/assert/source_location.hpp +120 -21
  688. data/src/cxx_supportlib/vendor-modified/boost/atomic/atomic.hpp +8 -15
  689. data/src/cxx_supportlib/vendor-modified/boost/atomic/atomic_ref.hpp +14 -1
  690. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/addressof.hpp +5 -1
  691. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/atomic_impl.hpp +183 -64
  692. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/atomic_ref_impl.hpp +169 -67
  693. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/bitwise_cast.hpp +83 -12
  694. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/bitwise_fp_cast.hpp +40 -11
  695. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_gcc_aarch32.hpp +8 -1
  696. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_gcc_aarch64.hpp +8 -1
  697. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_gcc_arm.hpp +8 -1
  698. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/classify.hpp +19 -10
  699. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/config.hpp +29 -60
  700. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_aarch64.hpp +6 -6
  701. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_ppc.hpp +105 -100
  702. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_x86.hpp +107 -40
  703. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_msvc_arm.hpp +4 -4
  704. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_msvc_x86.hpp +32 -5
  705. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_fp_ops_generic.hpp +1 -1
  706. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_aarch32.hpp +32 -32
  707. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_aarch64.hpp +15 -15
  708. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_ppc.hpp +73 -72
  709. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/futex.hpp +8 -1
  710. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/gcc_arm_asm_common.hpp +4 -0
  711. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/gcc_ppc_asm_common.hpp +33 -0
  712. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/int_sizes.hpp +25 -1
  713. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/platform.hpp +15 -6
  714. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/alignment_of.hpp +3 -3
  715. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/has_unique_object_representations.hpp +143 -0
  716. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_enum.hpp +42 -0
  717. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_nothrow_default_constructible.hpp +46 -0
  718. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/remove_cv.hpp +42 -0
  719. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_caps_darwin_ulock.hpp +58 -0
  720. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_caps_windows.hpp +3 -1
  721. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_on_address.hpp +65 -0
  722. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_darwin_ulock.hpp +158 -0
  723. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_windows.hpp +55 -26
  724. data/src/cxx_supportlib/vendor-modified/boost/atomic/ipc_atomic.hpp +8 -2
  725. data/src/cxx_supportlib/vendor-modified/boost/atomic/ipc_atomic_ref.hpp +14 -1
  726. data/src/cxx_supportlib/vendor-modified/boost/bind/apply.hpp +14 -0
  727. data/src/cxx_supportlib/vendor-modified/boost/bind/bind.hpp +9 -28
  728. data/src/cxx_supportlib/vendor-modified/boost/bind/bind_mf2_cc.hpp +18 -18
  729. data/src/cxx_supportlib/vendor-modified/boost/bind/bind_mf_cc.hpp +18 -18
  730. data/src/cxx_supportlib/vendor-modified/boost/bind/detail/is_same.hpp +36 -0
  731. data/src/cxx_supportlib/vendor-modified/boost/bind/detail/requires_cxx11.hpp +22 -0
  732. data/src/cxx_supportlib/vendor-modified/boost/bind/detail/result_traits.hpp +165 -0
  733. data/src/cxx_supportlib/vendor-modified/boost/bind/mem_fn.hpp +3 -2
  734. data/src/cxx_supportlib/vendor-modified/boost/bind/placeholders.hpp +12 -0
  735. data/src/cxx_supportlib/vendor-modified/boost/bind/protect.hpp +53 -8
  736. data/src/cxx_supportlib/vendor-modified/boost/bind/std_placeholders.hpp +40 -0
  737. data/src/cxx_supportlib/vendor-modified/boost/bind/storage.hpp +1 -0
  738. data/src/cxx_supportlib/vendor-modified/boost/cerrno.hpp +4 -320
  739. data/src/cxx_supportlib/vendor-modified/boost/chrono/config.hpp +2 -0
  740. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/mac/chrono.hpp +4 -4
  741. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/requires_cxx11.hpp +23 -0
  742. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/scan_keyword.hpp +4 -2
  743. data/src/cxx_supportlib/vendor-modified/boost/chrono/duration.hpp +9 -6
  744. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_get.hpp +1 -1
  745. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_io.hpp +4 -4
  746. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_put.hpp +5 -5
  747. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_style.hpp +1 -1
  748. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_units.hpp +2 -2
  749. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/time_point_io.hpp +3 -3
  750. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/timezone.hpp +2 -1
  751. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/utility/ios_base_state_ptr.hpp +7 -7
  752. data/src/cxx_supportlib/vendor-modified/boost/chrono/io_v1/chrono_io.hpp +3 -3
  753. data/src/cxx_supportlib/vendor-modified/boost/chrono/time_point.hpp +1 -1
  754. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/base.hpp +6 -6
  755. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/details.hpp +5 -1
  756. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/space_optimized.hpp +2 -2
  757. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp +1 -1
  758. data/src/cxx_supportlib/vendor-modified/boost/concept/detail/general.hpp +21 -0
  759. data/src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp +7 -0
  760. data/src/cxx_supportlib/vendor-modified/boost/concept_check.hpp +1 -1
  761. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx03.hpp +211 -0
  762. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx11.hpp +209 -0
  763. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx14.hpp +47 -0
  764. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx17.hpp +62 -0
  765. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx20.hpp +59 -0
  766. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx98.hpp +23 -0
  767. data/src/cxx_supportlib/vendor-modified/boost/config/auto_link.hpp +7 -6
  768. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/borland.hpp +1 -0
  769. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang.hpp +16 -3
  770. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang_version.hpp +83 -0
  771. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/codegear.hpp +1 -0
  772. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/common_edg.hpp +32 -11
  773. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/cray.hpp +1 -0
  774. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/digitalmars.hpp +1 -0
  775. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc.hpp +14 -6
  776. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc_xml.hpp +1 -0
  777. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/hp_acc.hpp +1 -0
  778. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/intel.hpp +1 -0
  779. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/metrowerks.hpp +1 -0
  780. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/mpw.hpp +1 -0
  781. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/nvcc.hpp +3 -0
  782. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/pathscale.hpp +1 -0
  783. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/sunpro_cc.hpp +7 -0
  784. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/vacpp.hpp +1 -0
  785. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/visualc.hpp +27 -3
  786. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/xlcpp.hpp +9 -0
  787. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/xlcpp_zos.hpp +1 -0
  788. data/src/cxx_supportlib/vendor-modified/boost/config/detail/cxx_composite.hpp +203 -0
  789. data/src/cxx_supportlib/vendor-modified/boost/config/detail/select_platform_config.hpp +5 -0
  790. data/src/cxx_supportlib/vendor-modified/boost/config/detail/suffix.hpp +184 -3
  791. data/src/cxx_supportlib/vendor-modified/boost/config/header_deprecated.hpp +1 -1
  792. data/src/cxx_supportlib/vendor-modified/boost/config/platform/bsd.hpp +5 -8
  793. data/src/cxx_supportlib/vendor-modified/boost/config/platform/wasm.hpp +23 -0
  794. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/dinkumware.hpp +66 -6
  795. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libcpp.hpp +36 -1
  796. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libstdcpp3.hpp +132 -7
  797. data/src/cxx_supportlib/vendor-modified/boost/config/workaround.hpp +11 -0
  798. data/src/cxx_supportlib/vendor-modified/boost/container/adaptive_pool.hpp +22 -8
  799. data/src/cxx_supportlib/vendor-modified/boost/container/allocator.hpp +20 -12
  800. data/src/cxx_supportlib/vendor-modified/boost/container/allocator_traits.hpp +9 -0
  801. data/src/cxx_supportlib/vendor-modified/boost/container/container_fwd.hpp +7 -3
  802. data/src/cxx_supportlib/vendor-modified/boost/container/deque.hpp +237 -175
  803. data/src/cxx_supportlib/vendor-modified/boost/container/detail/adaptive_node_pool.hpp +2 -2
  804. data/src/cxx_supportlib/vendor-modified/boost/container/detail/adaptive_node_pool_impl.hpp +14 -13
  805. data/src/cxx_supportlib/vendor-modified/boost/container/detail/addressof.hpp +2 -10
  806. data/src/cxx_supportlib/vendor-modified/boost/container/detail/advanced_insert_int.hpp +182 -135
  807. data/src/cxx_supportlib/vendor-modified/boost/container/detail/algorithm.hpp +28 -0
  808. data/src/cxx_supportlib/vendor-modified/boost/container/detail/allocator_version_traits.hpp +14 -15
  809. data/src/cxx_supportlib/vendor-modified/boost/container/detail/compare_functors.hpp +14 -10
  810. data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_begin.hpp +11 -3
  811. data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_end.hpp +3 -0
  812. data/src/cxx_supportlib/vendor-modified/boost/container/detail/construct_in_place.hpp +17 -15
  813. data/src/cxx_supportlib/vendor-modified/boost/container/detail/container_rebind.hpp +3 -3
  814. data/src/cxx_supportlib/vendor-modified/boost/container/detail/copy_move_algo.hpp +961 -151
  815. data/src/cxx_supportlib/vendor-modified/boost/container/detail/destroyers.hpp +181 -57
  816. data/src/cxx_supportlib/vendor-modified/boost/container/detail/dispatch_uses_allocator.hpp +59 -59
  817. data/src/cxx_supportlib/vendor-modified/boost/container/detail/flat_tree.hpp +218 -143
  818. data/src/cxx_supportlib/vendor-modified/boost/container/detail/guards_dended.hpp +198 -0
  819. data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_container.hpp +10 -0
  820. data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_contiguous_container.hpp +35 -0
  821. data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_pair.hpp +91 -0
  822. data/src/cxx_supportlib/vendor-modified/boost/container/detail/iterator.hpp +8 -0
  823. data/src/cxx_supportlib/vendor-modified/boost/container/detail/iterators.hpp +88 -69
  824. data/src/cxx_supportlib/vendor-modified/boost/container/detail/multiallocation_chain.hpp +14 -10
  825. data/src/cxx_supportlib/vendor-modified/boost/container/detail/mutex.hpp +48 -23
  826. data/src/cxx_supportlib/vendor-modified/boost/container/detail/next_capacity.hpp +24 -3
  827. data/src/cxx_supportlib/vendor-modified/boost/container/detail/node_alloc_holder.hpp +252 -119
  828. data/src/cxx_supportlib/vendor-modified/boost/container/detail/node_pool.hpp +2 -2
  829. data/src/cxx_supportlib/vendor-modified/boost/container/detail/node_pool_impl.hpp +12 -12
  830. data/src/cxx_supportlib/vendor-modified/boost/container/detail/pair.hpp +19 -91
  831. data/src/cxx_supportlib/vendor-modified/boost/container/detail/placement_new.hpp +1 -7
  832. data/src/cxx_supportlib/vendor-modified/boost/container/detail/pool_common_alloc.hpp +1 -1
  833. data/src/cxx_supportlib/vendor-modified/boost/container/detail/pool_resource.hpp +3 -7
  834. data/src/cxx_supportlib/vendor-modified/boost/container/detail/std_fwd.hpp +3 -0
  835. data/src/cxx_supportlib/vendor-modified/boost/container/detail/transform_iterator.hpp +28 -28
  836. data/src/cxx_supportlib/vendor-modified/boost/container/detail/tree.hpp +249 -342
  837. data/src/cxx_supportlib/vendor-modified/boost/container/detail/type_traits.hpp +3 -0
  838. data/src/cxx_supportlib/vendor-modified/boost/container/detail/value_functors.hpp +4 -14
  839. data/src/cxx_supportlib/vendor-modified/boost/container/detail/workaround.hpp +67 -10
  840. data/src/cxx_supportlib/vendor-modified/boost/container/devector.hpp +2961 -0
  841. data/src/cxx_supportlib/vendor-modified/boost/container/flat_map.hpp +265 -180
  842. data/src/cxx_supportlib/vendor-modified/boost/container/flat_set.hpp +36 -35
  843. data/src/cxx_supportlib/vendor-modified/boost/container/list.hpp +72 -100
  844. data/src/cxx_supportlib/vendor-modified/boost/container/map.hpp +95 -89
  845. data/src/cxx_supportlib/vendor-modified/boost/container/new_allocator.hpp +10 -3
  846. data/src/cxx_supportlib/vendor-modified/boost/container/node_allocator.hpp +3 -3
  847. data/src/cxx_supportlib/vendor-modified/boost/container/node_handle.hpp +14 -12
  848. data/src/cxx_supportlib/vendor-modified/boost/container/options.hpp +159 -9
  849. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/devector.hpp +51 -0
  850. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/memory_resource.hpp +8 -3
  851. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/monotonic_buffer_resource.hpp +3 -3
  852. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/polymorphic_allocator.hpp +9 -9
  853. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/resource_adaptor.hpp +3 -3
  854. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/synchronized_pool_resource.hpp +3 -3
  855. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/unsynchronized_pool_resource.hpp +3 -3
  856. data/src/cxx_supportlib/vendor-modified/boost/container/scoped_allocator.hpp +0 -2
  857. data/src/cxx_supportlib/vendor-modified/boost/container/set.hpp +32 -43
  858. data/src/cxx_supportlib/vendor-modified/boost/container/slist.hpp +83 -115
  859. data/src/cxx_supportlib/vendor-modified/boost/container/small_vector.hpp +134 -162
  860. data/src/cxx_supportlib/vendor-modified/boost/container/stable_vector.hpp +159 -101
  861. data/src/cxx_supportlib/vendor-modified/boost/container/static_vector.hpp +81 -50
  862. data/src/cxx_supportlib/vendor-modified/boost/container/string.hpp +413 -293
  863. data/src/cxx_supportlib/vendor-modified/boost/container/throw_exception.hpp +140 -26
  864. data/src/cxx_supportlib/vendor-modified/boost/container/vector.hpp +512 -725
  865. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_mix.hpp +113 -0
  866. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_range.hpp +410 -0
  867. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_tuple_like.hpp +156 -0
  868. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/mulx.hpp +79 -0
  869. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/requires_cxx11.hpp +22 -0
  870. data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash.hpp +486 -571
  871. data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash_fwd.hpp +25 -24
  872. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_contiguous_range.hpp +92 -0
  873. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_described_class.hpp +38 -0
  874. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_range.hpp +74 -0
  875. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_tuple_like.hpp +42 -0
  876. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_unordered_range.hpp +39 -0
  877. data/src/cxx_supportlib/vendor-modified/boost/core/alignof.hpp +57 -0
  878. data/src/cxx_supportlib/vendor-modified/boost/core/alloc_construct.hpp +7 -81
  879. data/src/cxx_supportlib/vendor-modified/boost/core/allocator_access.hpp +472 -285
  880. data/src/cxx_supportlib/vendor-modified/boost/core/allocator_traits.hpp +112 -0
  881. data/src/cxx_supportlib/vendor-modified/boost/core/bit.hpp +936 -0
  882. data/src/cxx_supportlib/vendor-modified/boost/core/checked_delete.hpp +20 -3
  883. data/src/cxx_supportlib/vendor-modified/boost/core/cmath.hpp +298 -0
  884. data/src/cxx_supportlib/vendor-modified/boost/core/data.hpp +46 -0
  885. data/src/cxx_supportlib/vendor-modified/boost/core/default_allocator.hpp +19 -9
  886. data/src/cxx_supportlib/vendor-modified/boost/core/detail/is_same.hpp +39 -0
  887. data/src/cxx_supportlib/vendor-modified/boost/core/detail/lwt_unattended.hpp +66 -0
  888. data/src/cxx_supportlib/vendor-modified/boost/core/detail/sp_thread_pause.hpp +71 -0
  889. data/src/cxx_supportlib/vendor-modified/boost/{smart_ptr → core}/detail/sp_thread_sleep.hpp +39 -21
  890. data/src/cxx_supportlib/vendor-modified/boost/core/detail/sp_thread_yield.hpp +100 -0
  891. data/src/cxx_supportlib/vendor-modified/boost/core/detail/sp_win32_sleep.hpp +54 -0
  892. data/src/cxx_supportlib/vendor-modified/boost/core/detail/splitmix64.hpp +54 -0
  893. data/src/cxx_supportlib/vendor-modified/boost/core/detail/string_view.hpp +1272 -0
  894. data/src/cxx_supportlib/vendor-modified/boost/core/empty_value.hpp +25 -16
  895. data/src/cxx_supportlib/vendor-modified/boost/core/fclose_deleter.hpp +46 -0
  896. data/src/cxx_supportlib/vendor-modified/boost/core/identity.hpp +61 -0
  897. data/src/cxx_supportlib/vendor-modified/boost/core/ignore_unused.hpp +32 -2
  898. data/src/cxx_supportlib/vendor-modified/boost/core/is_same.hpp +10 -15
  899. data/src/cxx_supportlib/vendor-modified/boost/core/launder.hpp +55 -0
  900. data/src/cxx_supportlib/vendor-modified/boost/core/lightweight_test.hpp +67 -22
  901. data/src/cxx_supportlib/vendor-modified/boost/core/lightweight_test_trait.hpp +8 -54
  902. data/src/cxx_supportlib/vendor-modified/boost/core/make_span.hpp +59 -0
  903. data/src/cxx_supportlib/vendor-modified/boost/core/max_align.hpp +82 -0
  904. data/src/cxx_supportlib/vendor-modified/boost/core/memory_resource.hpp +108 -0
  905. data/src/cxx_supportlib/vendor-modified/boost/core/noinit_adaptor.hpp +3 -0
  906. data/src/cxx_supportlib/vendor-modified/boost/core/noncopyable.hpp +1 -1
  907. data/src/cxx_supportlib/vendor-modified/boost/core/pointer_traits.hpp +111 -60
  908. data/src/cxx_supportlib/vendor-modified/boost/core/quick_exit.hpp +1 -1
  909. data/src/cxx_supportlib/vendor-modified/boost/core/ref.hpp +58 -15
  910. data/src/cxx_supportlib/vendor-modified/boost/core/serialization.hpp +131 -0
  911. data/src/cxx_supportlib/vendor-modified/boost/core/size.hpp +31 -0
  912. data/src/cxx_supportlib/vendor-modified/boost/core/snprintf.hpp +173 -0
  913. data/src/cxx_supportlib/vendor-modified/boost/core/span.hpp +399 -0
  914. data/src/cxx_supportlib/vendor-modified/boost/core/swap.hpp +27 -8
  915. data/src/cxx_supportlib/vendor-modified/boost/core/type_name.hpp +1181 -0
  916. data/src/cxx_supportlib/vendor-modified/boost/core/uncaught_exceptions.hpp +7 -7
  917. data/src/cxx_supportlib/vendor-modified/boost/core/verbose_terminate_handler.hpp +88 -0
  918. data/src/cxx_supportlib/vendor-modified/boost/core/yield_primitives.hpp +12 -0
  919. data/src/cxx_supportlib/vendor-modified/boost/cregex.hpp +4 -0
  920. data/src/cxx_supportlib/vendor-modified/boost/date_time/compiler_config.hpp +0 -24
  921. data/src/cxx_supportlib/vendor-modified/boost/date_time/date.hpp +1 -1
  922. data/src/cxx_supportlib/vendor-modified/boost/date_time/date_iterator.hpp +8 -8
  923. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters.hpp +3 -3
  924. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters_limited.hpp +3 -3
  925. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_date.hpp +12 -13
  926. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/parsers.hpp +2 -2
  927. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian_calendar.ipp +3 -3
  928. data/src/cxx_supportlib/vendor-modified/boost/date_time/iso_format.hpp +13 -13
  929. data/src/cxx_supportlib/vendor-modified/boost/date_time/local_time/local_date_time.hpp +2 -2
  930. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/conversion.hpp +1 -1
  931. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/posix_time_io.hpp +1 -1
  932. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters.hpp +4 -4
  933. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters_limited.hpp +2 -2
  934. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_parsers.hpp +4 -0
  935. data/src/cxx_supportlib/vendor-modified/boost/date_time/special_values_parser.hpp +1 -1
  936. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_facet.hpp +1 -1
  937. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_iterator.hpp +8 -8
  938. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_parsing.hpp +2 -2
  939. data/src/cxx_supportlib/vendor-modified/boost/describe/bases.hpp +50 -0
  940. data/src/cxx_supportlib/vendor-modified/boost/describe/detail/config.hpp +40 -0
  941. data/src/cxx_supportlib/vendor-modified/boost/describe/detail/cx_streq.hpp +30 -0
  942. data/src/cxx_supportlib/vendor-modified/boost/describe/detail/void_t.hpp +32 -0
  943. data/src/cxx_supportlib/vendor-modified/boost/describe/members.hpp +161 -0
  944. data/src/cxx_supportlib/vendor-modified/boost/describe/modifiers.hpp +33 -0
  945. data/src/cxx_supportlib/vendor-modified/boost/detail/atomic_count.hpp +21 -0
  946. data/src/cxx_supportlib/vendor-modified/boost/detail/workaround.hpp +3 -3
  947. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/exception_ptr.hpp +108 -62
  948. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/type_info.hpp +2 -1
  949. data/src/cxx_supportlib/vendor-modified/boost/exception/diagnostic_information.hpp +3 -3
  950. data/src/cxx_supportlib/vendor-modified/boost/exception/exception.hpp +84 -2
  951. data/src/cxx_supportlib/vendor-modified/boost/exception/info.hpp +1 -4
  952. data/src/cxx_supportlib/vendor-modified/boost/exception/to_string.hpp +1 -1
  953. data/src/cxx_supportlib/vendor-modified/boost/foreach.hpp +3 -3
  954. data/src/cxx_supportlib/vendor-modified/boost/function/detail/epilogue.hpp +39 -0
  955. data/src/cxx_supportlib/vendor-modified/boost/function/detail/prologue.hpp +1 -0
  956. data/src/cxx_supportlib/vendor-modified/boost/function/detail/requires_cxx11.hpp +22 -0
  957. data/src/cxx_supportlib/vendor-modified/boost/function/function_base.hpp +37 -32
  958. data/src/cxx_supportlib/vendor-modified/boost/function/function_template.hpp +24 -0
  959. data/src/cxx_supportlib/vendor-modified/boost/function.hpp +2 -0
  960. data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor.hpp +2 -2
  961. data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_ct.hpp +2 -2
  962. data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_rt.hpp +1 -1
  963. data/src/cxx_supportlib/vendor-modified/boost/integer/extended_euclidean.hpp +1 -1
  964. data/src/cxx_supportlib/vendor-modified/boost/integer/integer_log2.hpp +86 -81
  965. data/src/cxx_supportlib/vendor-modified/boost/integer/integer_mask.hpp +2 -2
  966. data/src/cxx_supportlib/vendor-modified/boost/integer/mod_inverse.hpp +1 -1
  967. data/src/cxx_supportlib/vendor-modified/boost/integer/static_log2.hpp +2 -2
  968. data/src/cxx_supportlib/vendor-modified/boost/integer/static_min_max.hpp +2 -2
  969. data/src/cxx_supportlib/vendor-modified/boost/integer.hpp +2 -2
  970. data/src/cxx_supportlib/vendor-modified/boost/integer_fwd.hpp +2 -2
  971. data/src/cxx_supportlib/vendor-modified/boost/integer_traits.hpp +2 -2
  972. data/src/cxx_supportlib/vendor-modified/boost/intrusive/any_hook.hpp +4 -4
  973. data/src/cxx_supportlib/vendor-modified/boost/intrusive/avl_set.hpp +83 -83
  974. data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree.hpp +43 -43
  975. data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree_algorithms.hpp +63 -63
  976. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bs_set.hpp +85 -85
  977. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree.hpp +101 -109
  978. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree_algorithms.hpp +134 -128
  979. data/src/cxx_supportlib/vendor-modified/boost/intrusive/circular_list_algorithms.hpp +35 -27
  980. data/src/cxx_supportlib/vendor-modified/boost/intrusive/circular_slist_algorithms.hpp +88 -19
  981. data/src/cxx_supportlib/vendor-modified/boost/intrusive/derivation_value_traits.hpp +4 -4
  982. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/any_node_and_algorithms.hpp +30 -30
  983. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/array_initializer.hpp +10 -8
  984. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/avltree_node.hpp +14 -14
  985. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/bstree_algorithms_base.hpp +38 -40
  986. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/common_slist_algorithms.hpp +84 -15
  987. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/config_begin.hpp +1 -0
  988. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/default_header_holder.hpp +1 -1
  989. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/empty_node_checker.hpp +1 -1
  990. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/exception_disposer.hpp +0 -31
  991. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/generic_hook.hpp +8 -8
  992. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hash_combine.hpp +92 -0
  993. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hashtable_node.hpp +182 -102
  994. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hook_traits.hpp +9 -8
  995. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/iterator.hpp +115 -69
  996. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/list_iterator.hpp +3 -3
  997. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/list_node.hpp +4 -4
  998. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/math.hpp +7 -55
  999. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/mpl.hpp +1 -1
  1000. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/node_cloner_disposer.hpp +4 -4
  1001. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/node_to_value.hpp +1 -1
  1002. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/rbtree_node.hpp +18 -18
  1003. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/reverse_iterator.hpp +3 -140
  1004. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/simple_disposers.hpp +3 -1
  1005. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/slist_iterator.hpp +12 -4
  1006. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/slist_node.hpp +2 -2
  1007. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/tree_iterator.hpp +2 -2
  1008. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/tree_node.hpp +6 -6
  1009. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/twin.hpp +49 -0
  1010. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/value_functors.hpp +52 -0
  1011. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/workaround.hpp +29 -3
  1012. data/src/cxx_supportlib/vendor-modified/boost/intrusive/hashtable.hpp +1668 -969
  1013. data/src/cxx_supportlib/vendor-modified/boost/intrusive/intrusive_fwd.hpp +2 -0
  1014. data/src/cxx_supportlib/vendor-modified/boost/intrusive/linear_slist_algorithms.hpp +97 -17
  1015. data/src/cxx_supportlib/vendor-modified/boost/intrusive/list.hpp +97 -94
  1016. data/src/cxx_supportlib/vendor-modified/boost/intrusive/list_hook.hpp +10 -10
  1017. data/src/cxx_supportlib/vendor-modified/boost/intrusive/member_value_traits.hpp +4 -4
  1018. data/src/cxx_supportlib/vendor-modified/boost/intrusive/options.hpp +17 -3
  1019. data/src/cxx_supportlib/vendor-modified/boost/intrusive/pack_options.hpp +12 -8
  1020. data/src/cxx_supportlib/vendor-modified/boost/intrusive/parent_from_member.hpp +2 -2
  1021. data/src/cxx_supportlib/vendor-modified/boost/intrusive/pointer_plus_bits.hpp +4 -4
  1022. data/src/cxx_supportlib/vendor-modified/boost/intrusive/pointer_traits.hpp +30 -22
  1023. data/src/cxx_supportlib/vendor-modified/boost/intrusive/priority_compare.hpp +9 -2
  1024. data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree.hpp +43 -43
  1025. data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree_algorithms.hpp +51 -51
  1026. data/src/cxx_supportlib/vendor-modified/boost/intrusive/set.hpp +85 -85
  1027. data/src/cxx_supportlib/vendor-modified/boost/intrusive/set_hook.hpp +12 -12
  1028. data/src/cxx_supportlib/vendor-modified/boost/intrusive/sg_set.hpp +93 -93
  1029. data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree.hpp +58 -66
  1030. data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree_algorithms.hpp +40 -40
  1031. data/src/cxx_supportlib/vendor-modified/boost/intrusive/slist.hpp +152 -159
  1032. data/src/cxx_supportlib/vendor-modified/boost/intrusive/slist_hook.hpp +8 -6
  1033. data/src/cxx_supportlib/vendor-modified/boost/intrusive/splay_set.hpp +91 -91
  1034. data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree.hpp +46 -46
  1035. data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree_algorithms.hpp +59 -57
  1036. data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap.hpp +51 -51
  1037. data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_algorithms.hpp +37 -39
  1038. data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_set.hpp +97 -97
  1039. data/src/cxx_supportlib/vendor-modified/boost/intrusive/trivial_value_traits.hpp +6 -4
  1040. data/src/cxx_supportlib/vendor-modified/boost/intrusive/unordered_set.hpp +90 -83
  1041. data/src/cxx_supportlib/vendor-modified/boost/intrusive/unordered_set_hook.hpp +17 -17
  1042. data/src/cxx_supportlib/vendor-modified/boost/iterator/advance.hpp +11 -0
  1043. data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/config_def.hpp +6 -6
  1044. data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/config_undef.hpp +1 -1
  1045. data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/enable_if.hpp +5 -5
  1046. data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/facade_iterator_category.hpp +10 -11
  1047. data/src/cxx_supportlib/vendor-modified/boost/iterator/is_iterator.hpp +148 -0
  1048. data/src/cxx_supportlib/vendor-modified/boost/iterator/iterator_concepts.hpp +2 -2
  1049. data/src/cxx_supportlib/vendor-modified/boost/iterator/iterator_facade.hpp +106 -25
  1050. data/src/cxx_supportlib/vendor-modified/boost/iterator/transform_iterator.hpp +8 -4
  1051. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/bad_lexical_cast.hpp +7 -7
  1052. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical.hpp +1 -1
  1053. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical_streams.hpp +40 -51
  1054. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_numeric.hpp +13 -7
  1055. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/inf_nan.hpp +13 -16
  1056. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/is_character.hpp +1 -1
  1057. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_char_constants.hpp +2 -2
  1058. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_unsigned_converters.hpp +11 -11
  1059. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/widest_char.hpp +1 -1
  1060. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/try_lexical_convert.hpp +5 -5
  1061. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast.hpp +20 -2
  1062. data/src/cxx_supportlib/vendor-modified/boost/libs/random/src/random_device.cpp +1 -1
  1063. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/posix_api.cpp +13 -25
  1064. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/regex.cpp +10 -121
  1065. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/static_mutex.cpp +5 -1
  1066. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/wide_posix_api.cpp +17 -22
  1067. data/src/cxx_supportlib/vendor-modified/boost/limits.hpp +12 -12
  1068. data/src/cxx_supportlib/vendor-modified/boost/move/algo/adaptive_merge.hpp +48 -36
  1069. data/src/cxx_supportlib/vendor-modified/boost/move/algo/adaptive_sort.hpp +91 -74
  1070. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/adaptive_sort_merge.hpp +225 -163
  1071. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/basic_op.hpp +1 -0
  1072. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/heap_sort.hpp +21 -10
  1073. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/insertion_sort.hpp +9 -0
  1074. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/merge.hpp +125 -209
  1075. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/merge_sort.hpp +24 -15
  1076. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/pdqsort.hpp +16 -5
  1077. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/search.hpp +79 -0
  1078. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/set_difference.hpp +8 -2
  1079. data/src/cxx_supportlib/vendor-modified/boost/move/algo/move.hpp +8 -5
  1080. data/src/cxx_supportlib/vendor-modified/boost/move/algo/predicate.hpp +11 -11
  1081. data/src/cxx_supportlib/vendor-modified/boost/move/algorithm.hpp +0 -1
  1082. data/src/cxx_supportlib/vendor-modified/boost/move/core.hpp +21 -0
  1083. data/src/cxx_supportlib/vendor-modified/boost/move/default_delete.hpp +32 -6
  1084. data/src/cxx_supportlib/vendor-modified/boost/move/detail/addressof.hpp +61 -0
  1085. data/src/cxx_supportlib/vendor-modified/boost/move/detail/config_begin.hpp +1 -0
  1086. data/src/cxx_supportlib/vendor-modified/boost/move/detail/force_ptr.hpp +36 -0
  1087. data/src/cxx_supportlib/vendor-modified/boost/move/detail/fwd_macros.hpp +12 -0
  1088. data/src/cxx_supportlib/vendor-modified/boost/move/detail/iterator_traits.hpp +109 -9
  1089. data/src/cxx_supportlib/vendor-modified/boost/move/detail/meta_utils.hpp +8 -32
  1090. data/src/cxx_supportlib/vendor-modified/boost/move/detail/nsec_clock.hpp +268 -0
  1091. data/src/cxx_supportlib/vendor-modified/boost/move/detail/reverse_iterator.hpp +40 -33
  1092. data/src/cxx_supportlib/vendor-modified/boost/move/detail/std_ns_begin.hpp +5 -1
  1093. data/src/cxx_supportlib/vendor-modified/boost/move/detail/std_ns_end.hpp +2 -0
  1094. data/src/cxx_supportlib/vendor-modified/boost/move/detail/type_traits.hpp +263 -51
  1095. data/src/cxx_supportlib/vendor-modified/boost/move/detail/unique_ptr_meta_utils.hpp +0 -26
  1096. data/src/cxx_supportlib/vendor-modified/boost/move/detail/workaround.hpp +82 -3
  1097. data/src/cxx_supportlib/vendor-modified/boost/move/make_unique.hpp +10 -0
  1098. data/src/cxx_supportlib/vendor-modified/boost/move/unique_ptr.hpp +17 -18
  1099. data/src/cxx_supportlib/vendor-modified/boost/move/utility.hpp +2 -2
  1100. data/src/cxx_supportlib/vendor-modified/boost/move/utility_core.hpp +38 -33
  1101. data/src/cxx_supportlib/vendor-modified/boost/mp11/algorithm.hpp +1327 -0
  1102. data/src/cxx_supportlib/vendor-modified/boost/mp11/bind.hpp +111 -0
  1103. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/config.hpp +149 -0
  1104. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_append.hpp +321 -0
  1105. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_copy_if.hpp +48 -0
  1106. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_count.hpp +147 -0
  1107. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_defer.hpp +119 -0
  1108. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_fold.hpp +164 -0
  1109. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_front.hpp +50 -0
  1110. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_is_list.hpp +39 -0
  1111. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_is_value_list.hpp +41 -0
  1112. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_list.hpp +24 -0
  1113. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_list_v.hpp +27 -0
  1114. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_map_find.hpp +87 -0
  1115. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_min_element.hpp +51 -0
  1116. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_plus.hpp +84 -0
  1117. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_remove_if.hpp +48 -0
  1118. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_rename.hpp +54 -0
  1119. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_value.hpp +25 -0
  1120. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_void.hpp +32 -0
  1121. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_with_index.hpp +385 -0
  1122. data/src/cxx_supportlib/vendor-modified/boost/mp11/function.hpp +222 -0
  1123. data/src/cxx_supportlib/vendor-modified/boost/mp11/integer_sequence.hpp +112 -0
  1124. data/src/cxx_supportlib/vendor-modified/boost/mp11/integral.hpp +42 -0
  1125. data/src/cxx_supportlib/vendor-modified/boost/mp11/list.hpp +472 -0
  1126. data/src/cxx_supportlib/vendor-modified/boost/mp11/set.hpp +188 -0
  1127. data/src/cxx_supportlib/vendor-modified/boost/mp11/utility.hpp +169 -0
  1128. data/src/cxx_supportlib/vendor-modified/boost/mp11/version.hpp +16 -0
  1129. data/src/cxx_supportlib/vendor-modified/boost/mpl/and.hpp +1 -1
  1130. data/src/cxx_supportlib/vendor-modified/boost/mpl/assert.hpp +6 -6
  1131. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp +1 -1
  1132. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessor/enum.hpp +12 -0
  1133. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessor/params.hpp +12 -0
  1134. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/template_arity.hpp +1 -1
  1135. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/yes_no.hpp +2 -1
  1136. data/src/cxx_supportlib/vendor-modified/boost/mpl/bitand.hpp +1 -1
  1137. data/src/cxx_supportlib/vendor-modified/boost/mpl/bitor.hpp +1 -1
  1138. data/src/cxx_supportlib/vendor-modified/boost/mpl/has_xxx.hpp +2 -2
  1139. data/src/cxx_supportlib/vendor-modified/boost/mpl/or.hpp +1 -1
  1140. data/src/cxx_supportlib/vendor-modified/boost/mpl/string.hpp +6 -6
  1141. data/src/cxx_supportlib/vendor-modified/boost/next_prior.hpp +3 -44
  1142. data/src/cxx_supportlib/vendor-modified/boost/nondet_random.hpp +22 -0
  1143. data/src/cxx_supportlib/vendor-modified/boost/none.hpp +3 -4
  1144. data/src/cxx_supportlib/vendor-modified/boost/none_t.hpp +3 -1
  1145. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/cast.hpp +1 -1
  1146. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/converter_policies.hpp +4 -5
  1147. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/converter.hpp +1 -1
  1148. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/int_float_mixture.hpp +5 -5
  1149. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/meta.hpp +1 -1
  1150. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/sign_mixture.hpp +5 -5
  1151. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/udt_builtin_mixture.hpp +5 -5
  1152. data/src/cxx_supportlib/vendor-modified/boost/operators.hpp +2 -0
  1153. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/old_optional_implementation.hpp +5 -5
  1154. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_aligned_storage.hpp +1 -1
  1155. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_config.hpp +4 -4
  1156. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_hash.hpp +49 -0
  1157. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_reference_spec.hpp +10 -3
  1158. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_relops.hpp +1 -1
  1159. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_trivially_copyable_base.hpp +37 -26
  1160. data/src/cxx_supportlib/vendor-modified/boost/optional/optional.hpp +87 -26
  1161. data/src/cxx_supportlib/vendor-modified/boost/optional/optional_io.hpp +3 -2
  1162. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/arg_list.hpp +5 -5
  1163. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/default.hpp +11 -0
  1164. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/maybe.hpp +2 -2
  1165. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/name.hpp +1 -1
  1166. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/item.hpp +2 -2
  1167. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/make_arg_list.hpp +4 -4
  1168. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_keyword_arg_ref.hpp +4 -4
  1169. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/unmatched_argument.hpp +1 -1
  1170. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_cast.hpp +1 -1
  1171. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_forward_match.hpp +1 -1
  1172. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/specification.hpp +2 -2
  1173. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/is_binary.hpp +1 -1
  1174. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/is_nullary.hpp +1 -1
  1175. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/overloads.hpp +1 -1
  1176. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/set.hpp +1 -1
  1177. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/tag.hpp +6 -6
  1178. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/tagged_argument.hpp +12 -3
  1179. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/unwrap_cv_reference.hpp +4 -4
  1180. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/void.hpp +1 -1
  1181. data/src/cxx_supportlib/vendor-modified/boost/parameter/binding.hpp +3 -3
  1182. data/src/cxx_supportlib/vendor-modified/boost/parameter/config.hpp +1 -1
  1183. data/src/cxx_supportlib/vendor-modified/boost/parameter/macros.hpp +1 -1
  1184. data/src/cxx_supportlib/vendor-modified/boost/parameter/match.hpp +2 -2
  1185. data/src/cxx_supportlib/vendor-modified/boost/parameter/parameters.hpp +6 -6
  1186. data/src/cxx_supportlib/vendor-modified/boost/parameter/template_keyword.hpp +1 -1
  1187. data/src/cxx_supportlib/vendor-modified/boost/parameter/value_type.hpp +3 -3
  1188. data/src/cxx_supportlib/vendor-modified/boost/pool/object_pool.hpp +2 -2
  1189. data/src/cxx_supportlib/vendor-modified/boost/pool/pool.hpp +22 -9
  1190. data/src/cxx_supportlib/vendor-modified/boost/pool/pool_alloc.hpp +1 -1
  1191. data/src/cxx_supportlib/vendor-modified/boost/pool/simple_segregated_storage.hpp +13 -0
  1192. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/alpha.h +5 -0
  1193. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/arm.h +10 -0
  1194. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/blackfin.h +5 -0
  1195. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/convex.h +5 -0
  1196. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/e2k.h +54 -0
  1197. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ia64.h +5 -0
  1198. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/loongarch.h +41 -0
  1199. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/m68k.h +5 -0
  1200. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/mips.h +10 -0
  1201. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/parisc.h +5 -0
  1202. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ppc.h +55 -4
  1203. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ptx.h +5 -0
  1204. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/pyramid.h +5 -0
  1205. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/riscv.h +5 -0
  1206. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/rs6k.h +10 -0
  1207. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sparc.h +14 -2
  1208. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/superh.h +13 -0
  1209. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sys370.h +5 -0
  1210. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sys390.h +5 -0
  1211. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/x86/32.h +5 -0
  1212. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/x86/64.h +7 -2
  1213. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/z.h +5 -0
  1214. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture.h +2 -1
  1215. data/src/cxx_supportlib/vendor-modified/boost/predef/language/stdc.h +1 -1
  1216. data/src/cxx_supportlib/vendor-modified/boost/predef/language/stdcpp.h +2 -2
  1217. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/cxx.h +1 -1
  1218. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/stdcpp3.h +1 -1
  1219. data/src/cxx_supportlib/vendor-modified/boost/predef/make.h +4 -0
  1220. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/bsdi.h +1 -0
  1221. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/dragonfly.h +1 -0
  1222. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/free.h +1 -0
  1223. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/net.h +1 -0
  1224. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/open.h +1 -0
  1225. data/src/cxx_supportlib/vendor-modified/boost/predef/other/endian.h +8 -10
  1226. data/src/cxx_supportlib/vendor-modified/boost/predef/other/wordsize.h +73 -0
  1227. data/src/cxx_supportlib/vendor-modified/boost/predef/other.h +3 -2
  1228. data/src/cxx_supportlib/vendor-modified/boost/predef/platform.h +0 -1
  1229. data/src/cxx_supportlib/vendor-modified/boost/predef/version.h +1 -1
  1230. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/add.hpp +54 -1
  1231. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/dec.hpp +33 -0
  1232. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_1_number.hpp +21 -0
  1233. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_maximum_number.hpp +22 -0
  1234. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_minimum_number.hpp +21 -0
  1235. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/maximum_number.hpp +19 -0
  1236. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/div.hpp +37 -1
  1237. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/inc.hpp +33 -0
  1238. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_1024.hpp +531 -0
  1239. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_256.hpp +276 -0
  1240. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_512.hpp +275 -0
  1241. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_1024.hpp +536 -0
  1242. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_256.hpp +275 -0
  1243. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_512.hpp +280 -0
  1244. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/mod.hpp +37 -1
  1245. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/mul.hpp +60 -1
  1246. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/sub.hpp +51 -1
  1247. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/detail/get_data.hpp +1 -1
  1248. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/enum.hpp +17 -1
  1249. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/insert.hpp +71 -0
  1250. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/remove.hpp +66 -0
  1251. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/replace.hpp +58 -0
  1252. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_1024.hpp +1044 -0
  1253. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_256.hpp +793 -0
  1254. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_512.hpp +532 -0
  1255. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/not_equal.hpp +44 -1
  1256. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/config/config.hpp +16 -33
  1257. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/config/limits.hpp +136 -3
  1258. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/deduce_d.hpp +27 -0
  1259. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/dmc/while.hpp +2 -3
  1260. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_1024.hpp +1044 -0
  1261. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_256.hpp +533 -0
  1262. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_512.hpp +532 -0
  1263. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/while.hpp +27 -0
  1264. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_1024.hpp +1044 -0
  1265. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_256.hpp +533 -0
  1266. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_512.hpp +532 -0
  1267. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/while.hpp +27 -0
  1268. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_1024.hpp +531 -0
  1269. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_256.hpp +275 -0
  1270. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_512.hpp +275 -0
  1271. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/while.hpp +75 -0
  1272. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/auto_rec.hpp +41 -0
  1273. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/dmc/auto_rec.hpp +2 -2
  1274. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_1024.hpp +532 -0
  1275. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_256.hpp +280 -0
  1276. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_512.hpp +276 -0
  1277. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/intercept.hpp +29 -0
  1278. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/is_empty.hpp +0 -37
  1279. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/is_empty_variadic.hpp +0 -4
  1280. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_1024.hpp +530 -0
  1281. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_256.hpp +273 -0
  1282. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_512.hpp +274 -0
  1283. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/overload.hpp +1 -3
  1284. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward1.hpp +27 -0
  1285. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward2.hpp +27 -0
  1286. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward3.hpp +27 -0
  1287. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward4.hpp +27 -0
  1288. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward5.hpp +27 -0
  1289. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_1024.hpp +2573 -0
  1290. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_256.hpp +1296 -0
  1291. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_512.hpp +1293 -0
  1292. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_1024.hpp +2573 -0
  1293. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_256.hpp +1296 -0
  1294. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_512.hpp +1293 -0
  1295. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_1024.hpp +2573 -0
  1296. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_256.hpp +1296 -0
  1297. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_512.hpp +1293 -0
  1298. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_1024.hpp +2573 -0
  1299. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_256.hpp +1296 -0
  1300. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_512.hpp +1293 -0
  1301. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_1024.hpp +2573 -0
  1302. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_256.hpp +1296 -0
  1303. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_512.hpp +1293 -0
  1304. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_1024.hpp +2571 -0
  1305. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_256.hpp +1296 -0
  1306. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_512.hpp +1291 -0
  1307. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_1024.hpp +2571 -0
  1308. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_256.hpp +1296 -0
  1309. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_512.hpp +1293 -0
  1310. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_1024.hpp +2571 -0
  1311. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_256.hpp +1296 -0
  1312. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_512.hpp +1293 -0
  1313. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_1024.hpp +2571 -0
  1314. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_256.hpp +1296 -0
  1315. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_512.hpp +1293 -0
  1316. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_1024.hpp +2571 -0
  1317. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_256.hpp +1296 -0
  1318. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_512.hpp +1293 -0
  1319. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse1.hpp +25 -0
  1320. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse2.hpp +25 -0
  1321. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse3.hpp +25 -0
  1322. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse4.hpp +25 -0
  1323. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse5.hpp +25 -0
  1324. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_1024.hpp +1549 -0
  1325. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_256.hpp +782 -0
  1326. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_512.hpp +781 -0
  1327. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_1024.hpp +1549 -0
  1328. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_256.hpp +782 -0
  1329. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_512.hpp +781 -0
  1330. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/local.hpp +27 -0
  1331. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/rlocal.hpp +25 -0
  1332. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/dmc/fold_left.hpp +3 -2
  1333. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/fold_left.hpp +28 -0
  1334. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/fold_right.hpp +29 -0
  1335. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_1024.hpp +1044 -0
  1336. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_256.hpp +533 -0
  1337. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_512.hpp +532 -0
  1338. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_1024.hpp +1557 -0
  1339. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_256.hpp +791 -0
  1340. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_512.hpp +789 -0
  1341. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/fold_left.hpp +28 -0
  1342. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/fold_right.hpp +26 -0
  1343. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_1024.hpp +532 -0
  1344. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_256.hpp +275 -0
  1345. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_512.hpp +276 -0
  1346. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_1024.hpp +532 -0
  1347. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_256.hpp +275 -0
  1348. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_512.hpp +276 -0
  1349. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/enum.hpp +13 -1
  1350. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/fold_left.hpp +60 -0
  1351. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/fold_right.hpp +44 -0
  1352. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/for_each_product.hpp +25 -6
  1353. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_1024.hpp +531 -0
  1354. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_256.hpp +275 -0
  1355. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_512.hpp +275 -0
  1356. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/reverse.hpp +35 -0
  1357. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/size.hpp +56 -1
  1358. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/to_array.hpp +5 -72
  1359. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/bool.hpp +22 -0
  1360. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_1024.hpp +531 -0
  1361. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_256.hpp +275 -0
  1362. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_512.hpp +275 -0
  1363. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/punctuation/is_begin_parens.hpp +1 -5
  1364. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/punctuation/remove_parens.hpp +0 -4
  1365. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/deduce_r.hpp +27 -0
  1366. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/dmc/for.hpp +3 -2
  1367. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/for.hpp +26 -0
  1368. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_1024.hpp +1044 -0
  1369. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_256.hpp +533 -0
  1370. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_512.hpp +532 -0
  1371. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/for.hpp +28 -0
  1372. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_1024.hpp +1044 -0
  1373. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_256.hpp +533 -0
  1374. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_512.hpp +532 -0
  1375. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/msvc/for.hpp +1 -0
  1376. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/for.hpp +114 -0
  1377. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_1024.hpp +531 -0
  1378. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_256.hpp +275 -0
  1379. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_512.hpp +275 -0
  1380. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_1024.hpp +1557 -0
  1381. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_256.hpp +791 -0
  1382. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_512.hpp +789 -0
  1383. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/repeat.hpp +22 -0
  1384. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/repeat_from_to.hpp +27 -0
  1385. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/binary_transform.hpp +6 -11
  1386. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_1024.hpp +530 -0
  1387. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_256.hpp +272 -0
  1388. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_512.hpp +274 -0
  1389. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/split.hpp +23 -0
  1390. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/elem.hpp +23 -0
  1391. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/enum.hpp +23 -0
  1392. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/fold_left.hpp +52 -0
  1393. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/fold_right.hpp +37 -0
  1394. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_1024.hpp +530 -0
  1395. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_256.hpp +272 -0
  1396. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_512.hpp +274 -0
  1397. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_1024.hpp +530 -0
  1398. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_256.hpp +272 -0
  1399. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_512.hpp +274 -0
  1400. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_1024.hpp +1556 -0
  1401. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_256.hpp +1053 -0
  1402. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_512.hpp +788 -0
  1403. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_1024.hpp +530 -0
  1404. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_256.hpp +273 -0
  1405. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_512.hpp +274 -0
  1406. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_1024.hpp +1043 -0
  1407. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_256.hpp +532 -0
  1408. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_512.hpp +531 -0
  1409. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/rest_n.hpp +9 -3
  1410. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/size.hpp +23 -0
  1411. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/variadic_seq_to_seq.hpp +0 -2
  1412. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/stringize.hpp +0 -4
  1413. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/detail/is_single_return.hpp +2 -2
  1414. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/eat.hpp +4 -18
  1415. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/elem.hpp +11 -157
  1416. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/insert.hpp +0 -5
  1417. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_128.hpp +403 -0
  1418. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_256.hpp +1171 -0
  1419. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_64.hpp +83 -0
  1420. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_128.hpp +595 -0
  1421. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_256.hpp +1747 -0
  1422. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_64.hpp +83 -0
  1423. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_128.hpp +403 -0
  1424. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_256.hpp +1171 -0
  1425. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_64.hpp +84 -0
  1426. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/pop_back.hpp +0 -5
  1427. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/pop_front.hpp +0 -5
  1428. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/push_back.hpp +0 -5
  1429. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/push_front.hpp +0 -6
  1430. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/rem.hpp +17 -39
  1431. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/remove.hpp +0 -5
  1432. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/replace.hpp +0 -5
  1433. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/reverse.hpp +38 -25
  1434. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/size.hpp +13 -6
  1435. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_array.hpp +15 -12
  1436. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_list.hpp +37 -25
  1437. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_seq.hpp +38 -24
  1438. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/detail/has_opt.hpp +1 -1
  1439. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/detail/is_single_return.hpp +2 -2
  1440. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/elem.hpp +93 -71
  1441. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/has_opt.hpp +7 -3
  1442. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_128.hpp +275 -0
  1443. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_256.hpp +723 -0
  1444. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_64.hpp +81 -0
  1445. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_128.hpp +47 -0
  1446. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_256.hpp +53 -0
  1447. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_64.hpp +23 -0
  1448. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/size.hpp +39 -4
  1449. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_array.hpp +15 -9
  1450. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_list.hpp +9 -2
  1451. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_seq.hpp +1 -3
  1452. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_tuple.hpp +1 -3
  1453. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/wstringize.hpp +0 -4
  1454. data/src/cxx_supportlib/vendor-modified/boost/random/additive_combine.hpp +2 -2
  1455. data/src/cxx_supportlib/vendor-modified/boost/random/detail/gray_coded_qrng.hpp +29 -5
  1456. data/src/cxx_supportlib/vendor-modified/boost/random/detail/int_float_pair.hpp +3 -4
  1457. data/src/cxx_supportlib/vendor-modified/boost/random/detail/mixmax_skip_N17.ipp +287 -0
  1458. data/src/cxx_supportlib/vendor-modified/boost/random/detail/niederreiter_base2_table.hpp +1 -0
  1459. data/src/cxx_supportlib/vendor-modified/boost/random/detail/operators.hpp +1 -1
  1460. data/src/cxx_supportlib/vendor-modified/boost/random/detail/qrng_base.hpp +5 -5
  1461. data/src/cxx_supportlib/vendor-modified/boost/random/detail/seed.hpp +9 -11
  1462. data/src/cxx_supportlib/vendor-modified/boost/random/detail/seed_impl.hpp +13 -14
  1463. data/src/cxx_supportlib/vendor-modified/boost/random/detail/sobol_table.hpp +1 -0
  1464. data/src/cxx_supportlib/vendor-modified/boost/random/discard_block.hpp +2 -2
  1465. data/src/cxx_supportlib/vendor-modified/boost/random/generate_canonical.hpp +2 -3
  1466. data/src/cxx_supportlib/vendor-modified/boost/random/hyperexponential_distribution.hpp +3 -3
  1467. data/src/cxx_supportlib/vendor-modified/boost/random/independent_bits.hpp +3 -3
  1468. data/src/cxx_supportlib/vendor-modified/boost/random/inversive_congruential.hpp +2 -3
  1469. data/src/cxx_supportlib/vendor-modified/boost/random/lagged_fibonacci.hpp +4 -4
  1470. data/src/cxx_supportlib/vendor-modified/boost/random/linear_congruential.hpp +5 -7
  1471. data/src/cxx_supportlib/vendor-modified/boost/random/linear_feedback_shift.hpp +3 -3
  1472. data/src/cxx_supportlib/vendor-modified/boost/random/mersenne_twister.hpp +2 -2
  1473. data/src/cxx_supportlib/vendor-modified/boost/random/mixmax.hpp +313 -0
  1474. data/src/cxx_supportlib/vendor-modified/boost/random/niederreiter_base2.hpp +2 -2
  1475. data/src/cxx_supportlib/vendor-modified/boost/random/random_device.hpp +2 -2
  1476. data/src/cxx_supportlib/vendor-modified/boost/random/shuffle_order.hpp +2 -2
  1477. data/src/cxx_supportlib/vendor-modified/boost/random/sobol.hpp +3 -2
  1478. data/src/cxx_supportlib/vendor-modified/boost/random/subtract_with_carry.hpp +4 -4
  1479. data/src/cxx_supportlib/vendor-modified/boost/random/traits.hpp +3 -3
  1480. data/src/cxx_supportlib/vendor-modified/boost/random/uniform_int_distribution.hpp +7 -7
  1481. data/src/cxx_supportlib/vendor-modified/boost/random/uniform_real_distribution.hpp +2 -3
  1482. data/src/cxx_supportlib/vendor-modified/boost/random/uniform_smallint.hpp +4 -5
  1483. data/src/cxx_supportlib/vendor-modified/boost/random/xor_combine.hpp +4 -2
  1484. data/src/cxx_supportlib/vendor-modified/boost/random.hpp +1 -0
  1485. data/src/cxx_supportlib/vendor-modified/boost/ratio/config.hpp +7 -2
  1486. data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/requires_cxx11.hpp +22 -0
  1487. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/plus.hpp +1 -1
  1488. data/src/cxx_supportlib/vendor-modified/boost/rational.hpp +7 -7
  1489. data/src/cxx_supportlib/vendor-modified/boost/regex/concepts.hpp +79 -74
  1490. data/src/cxx_supportlib/vendor-modified/boost/regex/config.hpp +97 -113
  1491. data/src/cxx_supportlib/vendor-modified/boost/regex/pattern_except.hpp +4 -75
  1492. data/src/cxx_supportlib/vendor-modified/boost/regex/pending/object_cache.hpp +4 -147
  1493. data/src/cxx_supportlib/vendor-modified/boost/regex/pending/unicode_iterator.hpp +8 -761
  1494. data/src/cxx_supportlib/vendor-modified/boost/regex/regex_traits.hpp +4 -0
  1495. data/src/cxx_supportlib/vendor-modified/boost/regex/user.hpp +2 -0
  1496. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex.hpp +8 -9
  1497. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex_creator.hpp +20 -19
  1498. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex_parser.hpp +23 -13
  1499. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/c_regex_traits.hpp +342 -42
  1500. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/cpp_regex_traits.hpp +107 -24
  1501. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/cregex.hpp +0 -117
  1502. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/icu.hpp +1516 -0
  1503. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/match_flags.hpp +5 -5
  1504. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/match_results.hpp +8 -8
  1505. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/mem_block_cache.hpp +39 -1
  1506. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/object_cache.hpp +171 -0
  1507. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/pattern_except.hpp +128 -0
  1508. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher.hpp +13 -4
  1509. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_common.hpp +1 -1
  1510. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_non_recursive.hpp +40 -41
  1511. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_recursive.hpp +6 -6
  1512. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/primary_transform.hpp +1 -1
  1513. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/protected_call.hpp +3 -1
  1514. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex.hpp +0 -36
  1515. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_format.hpp +3 -3
  1516. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_raw_buffer.hpp +35 -4
  1517. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_token_iterator.hpp +2 -0
  1518. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_traits_defaults.hpp +638 -22
  1519. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_workaround.hpp +7 -7
  1520. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/states.hpp +1 -1
  1521. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/unicode_iterator.hpp +871 -0
  1522. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/w32_regex_traits.hpp +521 -37
  1523. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex.hpp +734 -0
  1524. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex_creator.hpp +1576 -0
  1525. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex_parser.hpp +3130 -0
  1526. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/c_regex_traits.hpp +474 -0
  1527. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/char_regex_traits.hpp +59 -0
  1528. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/cpp_regex_traits.hpp +1040 -0
  1529. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/cregex.hpp +195 -0
  1530. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/error_type.hpp +59 -0
  1531. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/icu.hpp +1402 -0
  1532. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/iterator_category.hpp +84 -0
  1533. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/iterator_traits.hpp +32 -0
  1534. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/match_flags.hpp +156 -0
  1535. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/match_results.hpp +667 -0
  1536. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/mem_block_cache.hpp +173 -0
  1537. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/object_cache.hpp +160 -0
  1538. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/pattern_except.hpp +106 -0
  1539. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher.hpp +576 -0
  1540. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher_common.hpp +921 -0
  1541. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher_non_recursive.hpp +1874 -0
  1542. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/primary_transform.hpp +120 -0
  1543. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regbase.hpp +158 -0
  1544. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex.hpp +106 -0
  1545. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_format.hpp +1124 -0
  1546. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_fwd.hpp +73 -0
  1547. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_grep.hpp +98 -0
  1548. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_iterator.hpp +173 -0
  1549. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_match.hpp +92 -0
  1550. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_merge.hpp +71 -0
  1551. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_raw_buffer.hpp +213 -0
  1552. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_replace.hpp +77 -0
  1553. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_search.hpp +103 -0
  1554. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_split.hpp +152 -0
  1555. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_token_iterator.hpp +255 -0
  1556. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_traits.hpp +130 -0
  1557. data/src/cxx_supportlib/vendor-modified/boost/{libs/regex/src/regex_traits_defaults.cpp → regex/v5/regex_traits_defaults.hpp} +719 -415
  1558. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_workaround.hpp +159 -0
  1559. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/states.hpp +299 -0
  1560. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/sub_match.hpp +382 -0
  1561. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/syntax_type.hpp +105 -0
  1562. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/u32regex_iterator.hpp +177 -0
  1563. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/u32regex_token_iterator.hpp +312 -0
  1564. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/unicode_iterator.hpp +862 -0
  1565. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/w32_regex_traits.hpp +1311 -0
  1566. data/src/cxx_supportlib/vendor-modified/boost/regex.hpp +4 -0
  1567. data/src/cxx_supportlib/vendor-modified/boost/regex_fwd.hpp +4 -0
  1568. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/allocate_shared_array.hpp +1 -0
  1569. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/requires_cxx11.hpp +23 -0
  1570. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/shared_count.hpp +2 -2
  1571. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp +4 -2
  1572. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_gcc_atomic.hpp +1 -1
  1573. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_impl.hpp +23 -3
  1574. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp +11 -2
  1575. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/yield_k.hpp +4 -6
  1576. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/enable_shared_from_this.hpp +1 -0
  1577. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ptr.hpp +3 -1
  1578. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared.hpp +1 -0
  1579. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp +1 -0
  1580. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_object.hpp +1 -0
  1581. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/scoped_array.hpp +2 -1
  1582. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/scoped_ptr.hpp +2 -1
  1583. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_array.hpp +3 -1
  1584. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_ptr.hpp +63 -7
  1585. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/weak_ptr.hpp +1 -0
  1586. data/src/cxx_supportlib/vendor-modified/boost/static_assert.hpp +3 -2
  1587. data/src/cxx_supportlib/vendor-modified/boost/system/detail/append_int.hpp +32 -0
  1588. data/src/cxx_supportlib/vendor-modified/boost/system/detail/cerrno.hpp +329 -0
  1589. data/src/cxx_supportlib/vendor-modified/boost/system/detail/config.hpp +51 -12
  1590. data/src/cxx_supportlib/vendor-modified/boost/system/detail/enable_if.hpp +32 -0
  1591. data/src/cxx_supportlib/vendor-modified/boost/system/detail/errc.hpp +126 -0
  1592. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category.hpp +227 -0
  1593. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category_impl.hpp +190 -0
  1594. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_code.hpp +732 -0
  1595. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_condition.hpp +349 -0
  1596. data/src/cxx_supportlib/vendor-modified/boost/system/detail/generic_category.hpp +80 -58
  1597. data/src/cxx_supportlib/vendor-modified/boost/system/detail/generic_category_message.hpp +108 -0
  1598. data/src/cxx_supportlib/vendor-modified/boost/system/detail/interop_category.hpp +107 -0
  1599. data/src/cxx_supportlib/vendor-modified/boost/system/detail/is_same.hpp +33 -0
  1600. data/src/cxx_supportlib/vendor-modified/boost/system/detail/mutex.hpp +121 -0
  1601. data/src/cxx_supportlib/vendor-modified/boost/system/detail/requires_cxx11.hpp +21 -0
  1602. data/src/cxx_supportlib/vendor-modified/boost/system/detail/snprintf.hpp +73 -0
  1603. data/src/cxx_supportlib/vendor-modified/boost/system/detail/std_category.hpp +88 -0
  1604. data/src/cxx_supportlib/vendor-modified/boost/system/detail/std_category_impl.hpp +97 -0
  1605. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category.hpp +110 -0
  1606. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_impl.hpp +61 -0
  1607. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_message.hpp +71 -0
  1608. data/src/cxx_supportlib/vendor-modified/boost/system/detail/throws.hpp +59 -0
  1609. data/src/cxx_supportlib/vendor-modified/boost/system/errc.hpp +57 -0
  1610. data/src/cxx_supportlib/vendor-modified/boost/system/error_category.hpp +13 -0
  1611. data/src/cxx_supportlib/vendor-modified/boost/system/error_code.hpp +7 -958
  1612. data/src/cxx_supportlib/vendor-modified/boost/system/error_condition.hpp +13 -0
  1613. data/src/cxx_supportlib/vendor-modified/boost/system/generic_category.hpp +13 -0
  1614. data/src/cxx_supportlib/vendor-modified/boost/system/is_error_code_enum.hpp +30 -0
  1615. data/src/cxx_supportlib/vendor-modified/boost/system/is_error_condition_enum.hpp +30 -0
  1616. data/src/cxx_supportlib/vendor-modified/boost/system/system_category.hpp +14 -0
  1617. data/src/cxx_supportlib/vendor-modified/boost/system/system_error.hpp +30 -59
  1618. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/config.hpp +1 -1
  1619. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/thread.hpp +26 -0
  1620. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/thread_data.hpp +1 -1
  1621. data/src/cxx_supportlib/vendor-modified/boost/thread/scoped_thread.hpp +9 -0
  1622. data/src/cxx_supportlib/vendor-modified/boost/thread/thread_guard.hpp +5 -0
  1623. data/src/cxx_supportlib/vendor-modified/boost/throw_exception.hpp +141 -45
  1624. data/src/cxx_supportlib/vendor-modified/boost/token_functions.hpp +2 -2
  1625. data/src/cxx_supportlib/vendor-modified/boost/tuple/detail/tuple_basic.hpp +22 -21
  1626. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/config.hpp +4 -1
  1627. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_cxx_11.hpp +247 -168
  1628. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_ptr_helper.hpp +27 -27
  1629. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_ptr_tester.hpp +27 -27
  1630. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_likely_lambda.hpp +1 -1
  1631. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp +27 -27
  1632. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp +27 -27
  1633. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp +242 -217
  1634. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_swappable_cxx_11.hpp +70 -0
  1635. data/src/cxx_supportlib/vendor-modified/boost/type_traits/intrinsics.hpp +22 -8
  1636. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_complete.hpp +2 -1
  1637. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_convertible.hpp +1 -1
  1638. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_empty.hpp +1 -1
  1639. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_function.hpp +1 -1
  1640. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_integral.hpp +3 -0
  1641. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_member_function_pointer.hpp +1 -1
  1642. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_nothrow_swappable.hpp +4 -24
  1643. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_swappable.hpp +92 -0
  1644. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_trivially_copyable.hpp +4 -0
  1645. data/src/cxx_supportlib/vendor-modified/boost/type_traits/type_with_alignment.hpp +1 -1
  1646. data/src/cxx_supportlib/vendor-modified/boost/typeof/detail/requires_cxx11.hpp +18 -0
  1647. data/src/cxx_supportlib/vendor-modified/boost/typeof/modifiers.hpp +3 -3
  1648. data/src/cxx_supportlib/vendor-modified/boost/typeof/register_fundamental.hpp +2 -2
  1649. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/functional.hpp +6 -1
  1650. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/memory.hpp +6 -1
  1651. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/string.hpp +1 -1
  1652. data/src/cxx_supportlib/vendor-modified/boost/typeof/template_encoding.hpp +1 -1
  1653. data/src/cxx_supportlib/vendor-modified/boost/typeof/template_template_param.hpp +1 -1
  1654. data/src/cxx_supportlib/vendor-modified/boost/typeof/typeof.hpp +5 -4
  1655. data/src/cxx_supportlib/vendor-modified/boost/typeof/typeof_impl.hpp +1 -1
  1656. data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_map.hpp +818 -0
  1657. data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_map_fwd.hpp +54 -0
  1658. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/fca.hpp +849 -0
  1659. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/concurrent_table.hpp +1324 -0
  1660. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/core.hpp +2119 -0
  1661. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/element_type.hpp +60 -0
  1662. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/flat_map_types.hpp +73 -0
  1663. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/flat_set_types.hpp +44 -0
  1664. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/ignore_wshadow.hpp +35 -0
  1665. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_handle.hpp +210 -0
  1666. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_map_types.hpp +132 -0
  1667. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_set_types.hpp +95 -0
  1668. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/restore_wshadow.hpp +11 -0
  1669. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/rw_spinlock.hpp +179 -0
  1670. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/table.hpp +556 -0
  1671. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/tuple_rotate_right.hpp +52 -0
  1672. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/fwd.hpp +88 -1
  1673. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/implementation.hpp +1645 -2992
  1674. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/map.hpp +8 -14
  1675. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/mulx.hpp +129 -0
  1676. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/narrow_cast.hpp +44 -0
  1677. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/prime_fmod.hpp +263 -0
  1678. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/requires_cxx11.hpp +21 -0
  1679. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/set.hpp +8 -13
  1680. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/type_traits.hpp +122 -0
  1681. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/xmx.hpp +75 -0
  1682. data/src/cxx_supportlib/vendor-modified/boost/unordered/hash_traits.hpp +45 -0
  1683. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map.hpp +781 -0
  1684. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map_fwd.hpp +48 -0
  1685. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set.hpp +592 -0
  1686. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set_fwd.hpp +48 -0
  1687. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map.hpp +666 -227
  1688. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map_fwd.hpp +10 -2
  1689. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_map.hpp +884 -0
  1690. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_map_fwd.hpp +48 -0
  1691. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_set.hpp +688 -0
  1692. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_set_fwd.hpp +48 -0
  1693. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set.hpp +387 -112
  1694. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set_fwd.hpp +10 -2
  1695. data/src/cxx_supportlib/vendor-modified/boost/utility/base_from_member.hpp +2 -1
  1696. data/src/cxx_supportlib/vendor-modified/boost/utility/binary.hpp +3 -2
  1697. data/src/cxx_supportlib/vendor-modified/boost/utility/detail/result_of_variadic.hpp +190 -0
  1698. data/src/cxx_supportlib/vendor-modified/boost/utility/in_place_factory.hpp +6 -0
  1699. data/src/cxx_supportlib/vendor-modified/boost/utility/result_of.hpp +33 -11
  1700. data/src/cxx_supportlib/vendor-modified/boost/utility/string_ref.hpp +6 -2
  1701. data/src/cxx_supportlib/vendor-modified/boost/utility/string_view.hpp +27 -4
  1702. data/src/cxx_supportlib/vendor-modified/boost/utility/typed_in_place_factory.hpp +6 -1
  1703. data/src/cxx_supportlib/vendor-modified/boost/utility/value_init.hpp +5 -1
  1704. data/src/cxx_supportlib/vendor-modified/boost/version.hpp +2 -2
  1705. data/src/cxx_supportlib/vendor-modified/modp_b64_strict_aliasing.cpp +1 -1
  1706. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/functional.hpp +2 -7
  1707. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/md5.hpp +1 -1
  1708. data/src/helper-scripts/wsgi-loader.py +34 -17
  1709. data/src/nginx_module/ConfigGeneral/AutoGeneratedDefinitions.c +16 -0
  1710. data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c +12 -0
  1711. data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c +24 -0
  1712. data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c +10 -0
  1713. data/src/nginx_module/LocationConfig/AutoGeneratedHeaderSerialization.c +39 -0
  1714. data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c +26 -0
  1715. data/src/nginx_module/LocationConfig/AutoGeneratedMergeFunction.c +6 -0
  1716. data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h +8 -0
  1717. data/src/nginx_module/ngx_http_passenger_module.c +1 -0
  1718. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/common.js +50 -29
  1719. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config/cli-config.js +20 -20
  1720. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config/npm-config.js +11 -11
  1721. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config/syslog-config.js +3 -3
  1722. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config.js +8 -2
  1723. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/container.js +2 -1
  1724. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/logger.js +174 -146
  1725. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/console.js +4 -2
  1726. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/file.js +15 -5
  1727. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/http.js +14 -4
  1728. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports.js +26 -24
  1729. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston.js +5 -5
  1730. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/async/package.json +4 -13
  1731. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/package.json +19 -33
  1732. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/cycle/package.json +11 -29
  1733. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/eyes/package.json +12 -40
  1734. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/isstream/package.json +3 -12
  1735. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/stack-trace/lib/stack-trace.js +49 -24
  1736. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/stack-trace/package.json +4 -16
  1737. data/src/nodejs_supportlib/vendor-copy/winston/package.json +11 -55
  1738. data/src/ruby_native_extension/extconf.rb +1 -1
  1739. data/src/ruby_supportlib/phusion_passenger/admin_tools/instance_registry.rb +3 -2
  1740. data/src/ruby_supportlib/phusion_passenger/apache2/config_options.rb +6 -0
  1741. data/src/ruby_supportlib/phusion_passenger/config/nginx_engine_compiler.rb +3 -2
  1742. data/src/ruby_supportlib/phusion_passenger/config/restart_app_command.rb +16 -12
  1743. data/src/ruby_supportlib/phusion_passenger/console_text_template.rb +7 -2
  1744. data/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb +11 -2
  1745. data/src/ruby_supportlib/phusion_passenger/native_support.rb +4 -2
  1746. data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +12 -0
  1747. data/src/ruby_supportlib/phusion_passenger/packaging.rb +3 -1
  1748. data/src/ruby_supportlib/phusion_passenger/platform_info/apache.rb +6 -3
  1749. data/src/ruby_supportlib/phusion_passenger/platform_info/binary_compatibility.rb +23 -19
  1750. data/src/ruby_supportlib/phusion_passenger/platform_info/curl.rb +3 -0
  1751. data/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb +1 -1
  1752. data/src/ruby_supportlib/phusion_passenger/platform_info/depcheck_specs/libs.rb +6 -2
  1753. data/src/ruby_supportlib/phusion_passenger/platform_info/linux.rb +2 -1
  1754. data/src/ruby_supportlib/phusion_passenger/platform_info/openssl.rb +5 -0
  1755. data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +47 -28
  1756. data/src/ruby_supportlib/phusion_passenger/platform_info/pcre.rb +65 -0
  1757. data/src/ruby_supportlib/phusion_passenger/platform_info/ruby.rb +2 -2
  1758. data/src/ruby_supportlib/phusion_passenger/public_api.rb +3 -0
  1759. data/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb +12 -1
  1760. data/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb +18 -18
  1761. data/src/ruby_supportlib/phusion_passenger/request_handler.rb +4 -1
  1762. data/src/ruby_supportlib/phusion_passenger/ruby_core_enhancements.rb +5 -0
  1763. data/src/ruby_supportlib/phusion_passenger/standalone/config_options_list.rb +7 -1
  1764. data/src/ruby_supportlib/phusion_passenger/standalone/start_command/builtin_engine.rb +1 -0
  1765. data/src/ruby_supportlib/phusion_passenger/standalone/start_command/nginx_engine.rb +28 -17
  1766. data/src/ruby_supportlib/phusion_passenger/utils.rb +1 -0
  1767. data/src/ruby_supportlib/phusion_passenger.rb +7 -7
  1768. metadata +577 -150
  1769. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_fwd.hpp +0 -42
  1770. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/compose.hpp +0 -637
  1771. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.cpp +0 -25
  1772. data/src/cxx_supportlib/vendor-modified/boost/bind.hpp +0 -60
  1773. data/src/cxx_supportlib/vendor-modified/boost/checked_delete.hpp +0 -17
  1774. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/float_functions.hpp +0 -336
  1775. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_float.hpp +0 -271
  1776. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/limits.hpp +0 -62
  1777. data/src/cxx_supportlib/vendor-modified/boost/container_hash/extensions.hpp +0 -363
  1778. data/src/cxx_supportlib/vendor-modified/boost/detail/container_fwd.hpp +0 -157
  1779. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/c_regex_traits.cpp +0 -206
  1780. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/cpp_regex_traits.cpp +0 -117
  1781. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/cregex.cpp +0 -667
  1782. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/instances.cpp +0 -32
  1783. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/regex_raw_buffer.cpp +0 -72
  1784. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/wc_regex_traits.cpp +0 -314
  1785. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/winstances.cpp +0 -35
  1786. data/src/cxx_supportlib/vendor-modified/boost/math/policies/policy.hpp +0 -1038
  1787. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/detail/fp_traits.hpp +0 -581
  1788. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/detail/round_fwd.hpp +0 -93
  1789. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/fpclassify.hpp +0 -640
  1790. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/math_fwd.hpp +0 -1712
  1791. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/sign.hpp +0 -194
  1792. data/src/cxx_supportlib/vendor-modified/boost/math/tools/config.hpp +0 -489
  1793. data/src/cxx_supportlib/vendor-modified/boost/math/tools/promotion.hpp +0 -182
  1794. data/src/cxx_supportlib/vendor-modified/boost/math/tools/real_cast.hpp +0 -31
  1795. data/src/cxx_supportlib/vendor-modified/boost/math/tools/user.hpp +0 -105
  1796. data/src/cxx_supportlib/vendor-modified/boost/pointer_to_other.hpp +0 -55
  1797. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/fileiter.hpp +0 -557
  1798. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/instances.hpp +0 -236
  1799. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_thread_pause.hpp +0 -51
  1800. data/src/cxx_supportlib/vendor-modified/boost/system/detail/std_interoperability.hpp +0 -182
  1801. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_posix.hpp +0 -132
  1802. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/thread.hpp.orig +0 -841
  1803. data/src/cxx_supportlib/vendor-modified/boost/thread/once.hpp.orig +0 -54
  1804. data/src/cxx_supportlib/vendor-modified/boost/type_index/stl_type_index.hpp +0 -278
  1805. data/src/cxx_supportlib/vendor-modified/boost/type_index/type_index_facade.hpp +0 -297
  1806. data/src/cxx_supportlib/vendor-modified/boost/type_index.hpp +0 -265
  1807. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/daily-rotate-file.js +0 -601
  1808. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/webhook.js +0 -146
  1809. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/pkginfo/LICENSE +0 -19
  1810. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/pkginfo/lib/pkginfo.js +0 -136
  1811. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/pkginfo/package.json +0 -56
  1812. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/COPYING +0 -0
  1813. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/changelog.md +0 -0
  1814. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/readme.md +0 -0
  1815. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/base64/base64.hpp +0 -0
  1816. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/client.hpp +0 -0
  1817. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/close.hpp +0 -0
  1818. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/asio.hpp +0 -0
  1819. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/asio_ssl.hpp +0 -0
  1820. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/chrono.hpp +0 -0
  1821. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/connection_hdl.hpp +0 -0
  1822. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/cpp11.hpp +0 -0
  1823. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/memory.hpp +0 -0
  1824. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/network.hpp +0 -0
  1825. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/platforms.hpp +0 -0
  1826. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/random.hpp +0 -0
  1827. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/regex.hpp +0 -0
  1828. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/stdint.hpp +0 -0
  1829. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/system_error.hpp +0 -0
  1830. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/thread.hpp +0 -0
  1831. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/time.hpp +0 -0
  1832. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/type_traits.hpp +0 -0
  1833. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/concurrency/basic.hpp +0 -0
  1834. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/concurrency/none.hpp +0 -0
  1835. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio.hpp +0 -0
  1836. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio_client.hpp +0 -0
  1837. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio_no_tls.hpp +0 -0
  1838. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio_no_tls_client.hpp +0 -0
  1839. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/boost_config.hpp +0 -0
  1840. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/core.hpp +0 -0
  1841. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/core_client.hpp +0 -0
  1842. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/debug.hpp +0 -0
  1843. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/debug_asio.hpp +0 -0
  1844. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/debug_asio_no_tls.hpp +0 -0
  1845. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/minimal_client.hpp +0 -0
  1846. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/minimal_server.hpp +0 -0
  1847. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/connection.hpp +0 -0
  1848. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/connection_base.hpp +0 -0
  1849. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/endpoint.hpp +0 -0
  1850. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/endpoint_base.hpp +0 -0
  1851. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/error.hpp +0 -0
  1852. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/extensions/extension.hpp +0 -0
  1853. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/extensions/permessage_deflate/disabled.hpp +0 -0
  1854. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/extensions/permessage_deflate/enabled.hpp +0 -0
  1855. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/frame.hpp +0 -0
  1856. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/constants.hpp +0 -0
  1857. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/impl/parser.hpp +0 -0
  1858. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/impl/request.hpp +0 -0
  1859. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/impl/response.hpp +0 -0
  1860. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/parser.hpp +0 -0
  1861. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/request.hpp +0 -0
  1862. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/response.hpp +0 -0
  1863. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/impl/connection_impl.hpp +0 -0
  1864. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/impl/endpoint_impl.hpp +0 -0
  1865. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/impl/utilities_impl.hpp +0 -0
  1866. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/basic.hpp +0 -0
  1867. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/levels.hpp +0 -0
  1868. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/stub.hpp +0 -0
  1869. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/syslog.hpp +0 -0
  1870. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/message_buffer/alloc.hpp +0 -0
  1871. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/message_buffer/message.hpp +0 -0
  1872. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/message_buffer/pool.hpp +0 -0
  1873. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/base.hpp +0 -0
  1874. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi00.hpp +0 -0
  1875. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi07.hpp +0 -0
  1876. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi08.hpp +0 -0
  1877. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi13.hpp +0 -0
  1878. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/processor.hpp +0 -0
  1879. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/random/none.hpp +0 -0
  1880. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/random/random_device.hpp +0 -0
  1881. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/roles/client_endpoint.hpp +0 -0
  1882. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/roles/server_endpoint.hpp +0 -0
  1883. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/server.hpp +0 -0
  1884. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/sha1/sha1.hpp +0 -0
  1885. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/base.hpp +0 -0
  1886. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/connection.hpp +0 -0
  1887. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/endpoint.hpp +0 -0
  1888. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/security/base.hpp +0 -0
  1889. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/security/none.hpp +0 -0
  1890. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/security/tls.hpp +0 -0
  1891. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/base/connection.hpp +0 -0
  1892. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/base/endpoint.hpp +0 -0
  1893. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/debug/base.hpp +0 -0
  1894. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/debug/connection.hpp +0 -0
  1895. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/debug/endpoint.hpp +0 -0
  1896. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/iostream/base.hpp +0 -0
  1897. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/iostream/connection.hpp +0 -0
  1898. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/iostream/endpoint.hpp +0 -0
  1899. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/stub/base.hpp +0 -0
  1900. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/stub/connection.hpp +0 -0
  1901. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/stub/endpoint.hpp +0 -0
  1902. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/uri.hpp +0 -0
  1903. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/utf8_validator.hpp +0 -0
  1904. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/utilities.hpp +0 -0
  1905. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/version.hpp +0 -0
@@ -62,7 +62,6 @@
62
62
  #include <boost/move/algo/predicate.hpp>
63
63
  #include <boost/move/algo/detail/set_difference.hpp>
64
64
  // other
65
- #include <boost/core/no_exceptions_support.hpp>
66
65
  #include <boost/assert.hpp>
67
66
  #include <boost/cstdint.hpp>
68
67
 
@@ -82,8 +81,21 @@ class vec_iterator
82
81
  {
83
82
  public:
84
83
  typedef std::random_access_iterator_tag iterator_category;
84
+ #ifdef BOOST_MOVE_CONTIGUOUS_ITERATOR_TAG
85
+ typedef std::contiguous_iterator_tag iterator_concept;
86
+ #endif
85
87
  typedef typename boost::intrusive::pointer_traits<Pointer>::element_type value_type;
88
+
89
+ //Defining element_type to make libstdc++'s std::pointer_traits well-formed leads to ambiguity
90
+ //due to LWG3446. So we need to specialize std::pointer_traits. See
91
+ //https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96416 for details. Many thanks to Jonathan Wakely
92
+ //for explaining the issue.
93
+ #ifndef BOOST_GNU_STDLIB
94
+ //Define element_
95
+ typedef typename boost::intrusive::pointer_traits<Pointer>::element_type element_type;
96
+ #endif
86
97
  typedef typename boost::intrusive::pointer_traits<Pointer>::difference_type difference_type;
98
+ typedef typename boost::intrusive::pointer_traits<Pointer>::size_type size_type;
87
99
  typedef typename dtl::if_c
88
100
  < IsConst
89
101
  , typename boost::intrusive::pointer_traits<Pointer>::template
@@ -108,10 +120,12 @@ class vec_iterator
108
120
  , nat>::type nonconst_iterator;
109
121
 
110
122
  public:
111
- BOOST_CONTAINER_FORCEINLINE const Pointer &get_ptr() const BOOST_NOEXCEPT_OR_NOTHROW
123
+ BOOST_CONTAINER_FORCEINLINE
124
+ const Pointer &get_ptr() const BOOST_NOEXCEPT_OR_NOTHROW
112
125
  { return m_ptr; }
113
126
 
114
- BOOST_CONTAINER_FORCEINLINE Pointer &get_ptr() BOOST_NOEXCEPT_OR_NOTHROW
127
+ BOOST_CONTAINER_FORCEINLINE
128
+ Pointer &get_ptr() BOOST_NOEXCEPT_OR_NOTHROW
115
129
  { return m_ptr; }
116
130
 
117
131
  BOOST_CONTAINER_FORCEINLINE explicit vec_iterator(Pointer ptr) BOOST_NOEXCEPT_OR_NOTHROW
@@ -138,13 +152,16 @@ class vec_iterator
138
152
  { m_ptr = other.get_ptr(); return *this; }
139
153
 
140
154
  //Pointer like operators
141
- BOOST_CONTAINER_FORCEINLINE reference operator*() const BOOST_NOEXCEPT_OR_NOTHROW
155
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
156
+ reference operator*() const BOOST_NOEXCEPT_OR_NOTHROW
142
157
  { BOOST_ASSERT(!!m_ptr); return *m_ptr; }
143
158
 
144
- BOOST_CONTAINER_FORCEINLINE pointer operator->() const BOOST_NOEXCEPT_OR_NOTHROW
159
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
160
+ pointer operator->() const BOOST_NOEXCEPT_OR_NOTHROW
145
161
  { return m_ptr; }
146
162
 
147
- BOOST_CONTAINER_FORCEINLINE reference operator[](difference_type off) const BOOST_NOEXCEPT_OR_NOTHROW
163
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
164
+ reference operator[](difference_type off) const BOOST_NOEXCEPT_OR_NOTHROW
148
165
  { BOOST_ASSERT(!!m_ptr); return m_ptr[off]; }
149
166
 
150
167
  //Increment / Decrement
@@ -167,35 +184,46 @@ class vec_iterator
167
184
  BOOST_CONTAINER_FORCEINLINE vec_iterator& operator-=(difference_type off) BOOST_NOEXCEPT_OR_NOTHROW
168
185
  { BOOST_ASSERT(m_ptr || !off); m_ptr -= off; return *this; }
169
186
 
170
- BOOST_CONTAINER_FORCEINLINE friend vec_iterator operator+(const vec_iterator &x, difference_type off) BOOST_NOEXCEPT_OR_NOTHROW
187
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
188
+ friend vec_iterator operator+(const vec_iterator &x, difference_type off) BOOST_NOEXCEPT_OR_NOTHROW
171
189
  { BOOST_ASSERT(x.m_ptr || !off); return vec_iterator(x.m_ptr+off); }
172
190
 
173
- BOOST_CONTAINER_FORCEINLINE friend vec_iterator operator+(difference_type off, vec_iterator right) BOOST_NOEXCEPT_OR_NOTHROW
191
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
192
+ friend vec_iterator operator+(difference_type off, vec_iterator right) BOOST_NOEXCEPT_OR_NOTHROW
174
193
  { BOOST_ASSERT(right.m_ptr || !off); right.m_ptr += off; return right; }
175
194
 
176
- BOOST_CONTAINER_FORCEINLINE friend vec_iterator operator-(vec_iterator left, difference_type off) BOOST_NOEXCEPT_OR_NOTHROW
195
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
196
+ friend vec_iterator operator-(vec_iterator left, difference_type off) BOOST_NOEXCEPT_OR_NOTHROW
177
197
  { BOOST_ASSERT(left.m_ptr || !off); left.m_ptr -= off; return left; }
178
198
 
179
- BOOST_CONTAINER_FORCEINLINE friend difference_type operator-(const vec_iterator &left, const vec_iterator& right) BOOST_NOEXCEPT_OR_NOTHROW
199
+ //Difference
200
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
201
+ friend difference_type operator-(const vec_iterator &left, const vec_iterator& right) BOOST_NOEXCEPT_OR_NOTHROW
180
202
  { return left.m_ptr - right.m_ptr; }
181
203
 
182
204
  //Comparison operators
183
- BOOST_CONTAINER_FORCEINLINE friend bool operator== (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
205
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
206
+ friend bool operator== (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
184
207
  { return l.m_ptr == r.m_ptr; }
185
208
 
186
- BOOST_CONTAINER_FORCEINLINE friend bool operator!= (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
209
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
210
+ friend bool operator!= (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
187
211
  { return l.m_ptr != r.m_ptr; }
188
212
 
189
- BOOST_CONTAINER_FORCEINLINE friend bool operator< (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
213
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
214
+ friend bool operator< (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
190
215
  { return l.m_ptr < r.m_ptr; }
191
216
 
192
- BOOST_CONTAINER_FORCEINLINE friend bool operator<= (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
217
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
218
+ friend bool operator<= (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
193
219
  { return l.m_ptr <= r.m_ptr; }
194
220
 
195
- BOOST_CONTAINER_FORCEINLINE friend bool operator> (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
221
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
222
+ friend bool operator> (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
196
223
  { return l.m_ptr > r.m_ptr; }
197
224
 
198
- BOOST_CONTAINER_FORCEINLINE friend bool operator>= (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
225
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
226
+ friend bool operator>= (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
199
227
  { return l.m_ptr >= r.m_ptr; }
200
228
  };
201
229
 
@@ -229,8 +257,6 @@ struct vector_insert_ordered_cursor
229
257
  BiDirValueIt last_value_it;
230
258
  };
231
259
 
232
- struct initial_capacity_t{};
233
-
234
260
  template<class Pointer, bool IsConst>
235
261
  BOOST_CONTAINER_FORCEINLINE const Pointer &vector_iterator_get_ptr(const vec_iterator<Pointer, IsConst> &it) BOOST_NOEXCEPT_OR_NOTHROW
236
262
  { return it.get_ptr(); }
@@ -239,18 +265,18 @@ template<class Pointer, bool IsConst>
239
265
  BOOST_CONTAINER_FORCEINLINE Pointer &get_ptr(vec_iterator<Pointer, IsConst> &it) BOOST_NOEXCEPT_OR_NOTHROW
240
266
  { return it.get_ptr(); }
241
267
 
268
+ struct initial_capacity_t {};
269
+
242
270
  struct vector_uninitialized_size_t {};
243
271
  static const vector_uninitialized_size_t vector_uninitialized_size = vector_uninitialized_size_t();
244
272
 
273
+ struct maybe_initial_capacity_t {};
274
+
245
275
  template <class T>
246
276
  struct vector_value_traits_base
247
277
  {
248
278
  static const bool trivial_dctr = dtl::is_trivially_destructible<T>::value;
249
279
  static const bool trivial_dctr_after_move = has_trivial_destructor_after_move<T>::value;
250
- static const bool trivial_copy = dtl::is_trivially_copy_constructible<T>::value;
251
- static const bool nothrow_copy = dtl::is_nothrow_copy_constructible<T>::value || trivial_copy;
252
- static const bool trivial_assign = dtl::is_trivially_copy_assignable<T>::value;
253
- static const bool nothrow_assign = dtl::is_nothrow_copy_assignable<T>::value || trivial_assign;
254
280
  };
255
281
 
256
282
  template <class Allocator>
@@ -288,15 +314,55 @@ struct vector_alloc_holder
288
314
  typedef typename allocator_traits_type::size_type size_type;
289
315
  typedef typename allocator_traits_type::value_type value_type;
290
316
 
291
- BOOST_CONTAINER_FORCEINLINE static bool is_propagable_from(const allocator_type &from_alloc, pointer p, const allocator_type &to_alloc, bool const propagate_allocator)
317
+
318
+ private:
319
+
320
+ template<class SizeType>
321
+ void do_initial_capacity(SizeType initial_capacity)
322
+ {
323
+ if (BOOST_UNLIKELY(initial_capacity > size_type(-1))) {
324
+ boost::container::throw_length_error("get_next_capacity, allocator's max size reached");
325
+ }
326
+ else if (initial_capacity) {
327
+ pointer reuse = pointer();
328
+ size_type final_cap = static_cast<size_type>(initial_capacity);
329
+ m_start = this->allocation_command(allocate_new, final_cap, final_cap, reuse);
330
+ this->set_stored_capacity(final_cap);
331
+ }
332
+ }
333
+
334
+ template<class SizeType>
335
+ void do_maybe_initial_capacity(pointer p, SizeType initial_capacity)
336
+ {
337
+ if (BOOST_UNLIKELY(initial_capacity > size_type(-1))) {
338
+ boost::container::throw_length_error("get_next_capacity, allocator's max size reached");
339
+ }
340
+ else if (p) {
341
+ m_start = p;
342
+ }
343
+ else {
344
+ BOOST_ASSERT(initial_capacity > 0);
345
+ pointer reuse = pointer();
346
+ size_type final_cap = static_cast<size_type>(initial_capacity);
347
+ m_start = this->allocation_command(allocate_new, final_cap, final_cap, reuse);
348
+ this->set_stored_capacity(final_cap);
349
+ }
350
+ }
351
+
352
+ public:
353
+
354
+ BOOST_CONTAINER_FORCEINLINE
355
+ static bool is_propagable_from(const allocator_type &from_alloc, pointer p, const allocator_type &to_alloc, bool const propagate_allocator)
292
356
  {
293
357
  (void)propagate_allocator; (void)p; (void)to_alloc; (void)from_alloc;
294
358
  const bool all_storage_propagable = !allocator_traits_type::is_partially_propagable::value ||
295
359
  !allocator_traits_type::storage_is_unpropagable(from_alloc, p);
296
- return all_storage_propagable && (propagate_allocator || allocator_traits_type::equal(from_alloc, to_alloc));
360
+ return all_storage_propagable &&
361
+ (propagate_allocator || allocator_traits_type::is_always_equal::value || allocator_traits_type::equal(from_alloc, to_alloc));
297
362
  }
298
363
 
299
- BOOST_CONTAINER_FORCEINLINE static bool are_swap_propagable(const allocator_type &l_a, pointer l_p, const allocator_type &r_a, pointer r_p, bool const propagate_allocator)
364
+ BOOST_CONTAINER_FORCEINLINE
365
+ static bool are_swap_propagable(const allocator_type &l_a, pointer l_p, const allocator_type &r_a, pointer r_p, bool const propagate_allocator)
300
366
  {
301
367
  (void)propagate_allocator; (void)l_p; (void)r_p; (void)l_a; (void)r_a;
302
368
  const bool all_storage_propagable = !allocator_traits_type::is_partially_propagable::value ||
@@ -316,48 +382,24 @@ struct vector_alloc_holder
316
382
  : allocator_type(boost::forward<AllocConvertible>(a)), m_start(), m_size(), m_capacity()
317
383
  {}
318
384
 
319
- //Constructor, does not throw
320
- template<class AllocConvertible>
321
- vector_alloc_holder(vector_uninitialized_size_t, BOOST_FWD_REF(AllocConvertible) a, size_type initial_size)
385
+
386
+ template<class AllocConvertible, class SizeType>
387
+ vector_alloc_holder(vector_uninitialized_size_t, BOOST_FWD_REF(AllocConvertible) a, SizeType initial_size)
322
388
  : allocator_type(boost::forward<AllocConvertible>(a))
323
389
  , m_start()
324
390
  //Size is initialized here so vector should only call uninitialized_xxx after this
325
391
  , m_size(static_cast<stored_size_type>(initial_size))
326
392
  , m_capacity()
327
- {
328
- if(initial_size){
329
- pointer reuse = pointer();
330
- size_type final_cap = initial_size;
331
- m_start = this->allocation_command(allocate_new, initial_size, final_cap, reuse);
332
- m_capacity = static_cast<stored_size_type>(final_cap);
333
- }
334
- }
393
+ { this->do_initial_capacity(initial_size); }
335
394
 
336
- //Constructor, does not throw
337
- vector_alloc_holder(vector_uninitialized_size_t, size_type initial_size)
395
+ template<class SizeType>
396
+ vector_alloc_holder(vector_uninitialized_size_t, SizeType initial_size)
338
397
  : allocator_type()
339
398
  , m_start()
340
399
  //Size is initialized here so vector should only call uninitialized_xxx after this
341
400
  , m_size(static_cast<stored_size_type>(initial_size))
342
401
  , m_capacity()
343
- {
344
- if(initial_size){
345
- pointer reuse = pointer();
346
- size_type final_cap = initial_size;
347
- m_start = this->allocation_command(allocate_new, initial_size, final_cap, reuse);
348
- m_capacity = static_cast<stored_size_type>(final_cap);
349
- }
350
- }
351
-
352
- vector_alloc_holder(BOOST_RV_REF(vector_alloc_holder) holder) BOOST_NOEXCEPT_OR_NOTHROW
353
- : allocator_type(BOOST_MOVE_BASE(allocator_type, holder))
354
- , m_start(holder.m_start)
355
- , m_size(holder.m_size)
356
- , m_capacity(holder.m_capacity)
357
- {
358
- holder.m_start = pointer();
359
- holder.m_size = holder.m_capacity = 0;
360
- }
402
+ { this->do_initial_capacity(initial_size); }
361
403
 
362
404
  vector_alloc_holder(initial_capacity_t, pointer p, size_type n)
363
405
  BOOST_NOEXCEPT_IF(dtl::is_nothrow_default_constructible<allocator_type>::value)
@@ -376,6 +418,34 @@ struct vector_alloc_holder
376
418
  , m_capacity(n)
377
419
  {}
378
420
 
421
+ template<class AllocConvertible, class SizeType>
422
+ vector_alloc_holder(maybe_initial_capacity_t, pointer p, SizeType initial_capacity, BOOST_FWD_REF(AllocConvertible) a)
423
+ : allocator_type(boost::forward<AllocConvertible>(a))
424
+ //, m_start()
425
+ //Size is initialized here so vector should only call uninitialized_xxx after this
426
+ , m_size()
427
+ , m_capacity(static_cast<stored_size_type>(initial_capacity))
428
+ { this->do_maybe_initial_capacity(p, initial_capacity); }
429
+
430
+ template<class SizeType>
431
+ vector_alloc_holder(maybe_initial_capacity_t, pointer p, SizeType initial_capacity)
432
+ : allocator_type()
433
+ //, m_start()
434
+ //Size is initialized here so vector should only call uninitialized_xxx after this
435
+ , m_size()
436
+ , m_capacity(static_cast<stored_size_type>(initial_capacity))
437
+ { this->do_maybe_initial_capacity(p, initial_capacity); }
438
+
439
+ vector_alloc_holder(BOOST_RV_REF(vector_alloc_holder) holder) BOOST_NOEXCEPT_OR_NOTHROW
440
+ : allocator_type(BOOST_MOVE_BASE(allocator_type, holder))
441
+ , m_start(holder.m_start)
442
+ , m_size(holder.m_size)
443
+ , m_capacity(holder.m_capacity)
444
+ {
445
+ holder.m_start = pointer();
446
+ holder.m_size = holder.m_capacity = 0;
447
+ }
448
+
379
449
  BOOST_CONTAINER_FORCEINLINE ~vector_alloc_holder() BOOST_NOEXCEPT_OR_NOTHROW
380
450
  {
381
451
  if(this->m_capacity){
@@ -383,8 +453,20 @@ struct vector_alloc_holder
383
453
  }
384
454
  }
385
455
 
456
+ BOOST_CONTAINER_FORCEINLINE void set_stored_size(size_type s) BOOST_NOEXCEPT_OR_NOTHROW
457
+ { this->m_size = static_cast<stored_size_type>(s); }
458
+
459
+ BOOST_CONTAINER_FORCEINLINE void dec_stored_size(size_type s) BOOST_NOEXCEPT_OR_NOTHROW
460
+ { this->m_size = static_cast<stored_size_type>(this->m_size - s); }
461
+
462
+ BOOST_CONTAINER_FORCEINLINE void inc_stored_size(size_type s) BOOST_NOEXCEPT_OR_NOTHROW
463
+ { this->m_size = static_cast<stored_size_type>(this->m_size + s); }
464
+
465
+ BOOST_CONTAINER_FORCEINLINE void set_stored_capacity(size_type c) BOOST_NOEXCEPT_OR_NOTHROW
466
+ { this->m_capacity = static_cast<stored_size_type>(c); }
467
+
386
468
  BOOST_CONTAINER_FORCEINLINE pointer allocation_command(boost::container::allocation_type command,
387
- size_type limit_size, size_type &prefer_in_recvd_out_size, pointer &reuse)
469
+ size_type limit_size, size_type &prefer_in_recvd_out_size, pointer &reuse)
388
470
  {
389
471
  typedef typename dtl::version<allocator_type>::type alloc_version;
390
472
  return this->priv_allocation_command(alloc_version(), command, limit_size, prefer_in_recvd_out_size, reuse);
@@ -394,7 +476,7 @@ struct vector_alloc_holder
394
476
  {
395
477
  const size_type max_alloc = allocator_traits_type::max_size(this->alloc());
396
478
  const size_type max = max_alloc <= stored_size_type(-1) ? max_alloc : stored_size_type(-1);
397
- if ( max < n )
479
+ if (BOOST_UNLIKELY(max < n) )
398
480
  boost::container::throw_length_error("get_next_capacity, allocator's max size reached");
399
481
 
400
482
  return allocator_traits_type::allocate(this->alloc(), n);
@@ -408,7 +490,7 @@ struct vector_alloc_holder
408
490
  bool try_expand_fwd(size_type at_least)
409
491
  {
410
492
  //There is not enough memory, try to expand the old one
411
- const size_type new_cap = this->capacity() + at_least;
493
+ const size_type new_cap = size_type(this->capacity() + at_least);
412
494
  size_type real_cap = new_cap;
413
495
  pointer reuse = this->start();
414
496
  bool const success = !!this->allocation_command(expand_fwd, new_cap, real_cap, reuse);
@@ -427,9 +509,9 @@ struct vector_alloc_holder
427
509
  {
428
510
  BOOST_ASSERT(additional_objects > size_type(this->m_capacity - this->m_size));
429
511
  size_type max = allocator_traits_type::max_size(this->alloc());
430
- (clamp_by_stored_size_type)(max, stored_size_type());
431
- const size_type remaining_cap = max - size_type(this->m_capacity);
432
- const size_type min_additional_cap = additional_objects - size_type(this->m_capacity - this->m_size);
512
+ (clamp_by_stored_size_type<size_type>)(max, stored_size_type());
513
+ const size_type remaining_cap = size_type(max - size_type(this->m_capacity));
514
+ const size_type min_additional_cap = size_type(additional_objects - size_type(this->m_capacity - this->m_size));
433
515
 
434
516
  if ( remaining_cap < min_additional_cap )
435
517
  boost::container::throw_length_error("get_next_capacity, allocator's max size reached");
@@ -470,7 +552,7 @@ struct vector_alloc_holder
470
552
  BOOST_CONTAINER_FORCEINLINE void start(const pointer &p) BOOST_NOEXCEPT_OR_NOTHROW
471
553
  { m_start = p; }
472
554
  BOOST_CONTAINER_FORCEINLINE void capacity(const size_type &c) BOOST_NOEXCEPT_OR_NOTHROW
473
- { BOOST_ASSERT( c <= stored_size_type(-1)); m_capacity = c; }
555
+ { BOOST_ASSERT( c <= stored_size_type(-1)); this->set_stored_capacity(c); }
474
556
 
475
557
  static BOOST_CONTAINER_FORCEINLINE void on_capacity_overflow()
476
558
  { }
@@ -488,17 +570,7 @@ struct vector_alloc_holder
488
570
  }
489
571
  }
490
572
 
491
- BOOST_CONTAINER_FORCEINLINE static void clamp_by_stored_size_type(size_type &, size_type)
492
- {}
493
-
494
- template<class SomeStoredSizeType>
495
- BOOST_CONTAINER_FORCEINLINE static void clamp_by_stored_size_type(size_type &s, SomeStoredSizeType)
496
- {
497
- if (s >= SomeStoredSizeType(-1) )
498
- s = SomeStoredSizeType(-1);
499
- }
500
-
501
- BOOST_CONTAINER_FORCEINLINE pointer priv_allocation_command(version_1, boost::container::allocation_type command,
573
+ pointer priv_allocation_command(version_1, boost::container::allocation_type command,
502
574
  size_type limit_size,
503
575
  size_type &prefer_in_recvd_out_size,
504
576
  pointer &reuse)
@@ -507,10 +579,10 @@ struct vector_alloc_holder
507
579
  BOOST_ASSERT( (command & allocate_new));
508
580
  BOOST_ASSERT(!(command & nothrow_allocation));
509
581
  //First detect overflow on smaller stored_size_types
510
- if (limit_size > stored_size_type(-1)){
582
+ if (BOOST_UNLIKELY(limit_size > stored_size_type(-1))){
511
583
  boost::container::throw_length_error("get_next_capacity, allocator's max size reached");
512
584
  }
513
- (clamp_by_stored_size_type)(prefer_in_recvd_out_size, stored_size_type());
585
+ (clamp_by_stored_size_type<size_type>)(prefer_in_recvd_out_size, stored_size_type());
514
586
  pointer const p = this->allocate(prefer_in_recvd_out_size);
515
587
  reuse = pointer();
516
588
  return p;
@@ -522,14 +594,14 @@ struct vector_alloc_holder
522
594
  pointer &reuse)
523
595
  {
524
596
  //First detect overflow on smaller stored_size_types
525
- if (limit_size > stored_size_type(-1)){
597
+ if (BOOST_UNLIKELY(limit_size > stored_size_type(-1))){
526
598
  boost::container::throw_length_error("get_next_capacity, allocator's max size reached");
527
599
  }
528
- (clamp_by_stored_size_type)(prefer_in_recvd_out_size, stored_size_type());
600
+ (clamp_by_stored_size_type<size_type>)(prefer_in_recvd_out_size, stored_size_type());
529
601
  //Allocate memory
530
602
  pointer p = this->alloc().allocation_command(command, limit_size, prefer_in_recvd_out_size, reuse);
531
603
  //If after allocation prefer_in_recvd_out_size is not representable by stored_size_type, truncate it.
532
- (clamp_by_stored_size_type)(prefer_in_recvd_out_size, stored_size_type());
604
+ (clamp_by_stored_size_type<size_type>)(prefer_in_recvd_out_size, stored_size_type());
533
605
  return p;
534
606
  }
535
607
  };
@@ -611,6 +683,15 @@ struct vector_alloc_holder<Allocator, StoredSizeType, version_0>
611
683
  static BOOST_CONTAINER_FORCEINLINE void on_capacity_overflow()
612
684
  { allocator_type::on_capacity_overflow(); }
613
685
 
686
+ BOOST_CONTAINER_FORCEINLINE void set_stored_size(size_type s) BOOST_NOEXCEPT_OR_NOTHROW
687
+ { this->m_size = static_cast<stored_size_type>(s); }
688
+
689
+ BOOST_CONTAINER_FORCEINLINE void dec_stored_size(size_type s) BOOST_NOEXCEPT_OR_NOTHROW
690
+ { this->m_size = static_cast<stored_size_type>(this->m_size - s); }
691
+
692
+ BOOST_CONTAINER_FORCEINLINE void inc_stored_size(size_type s) BOOST_NOEXCEPT_OR_NOTHROW
693
+ { this->m_size = static_cast<stored_size_type>(this->m_size + s); }
694
+
614
695
  BOOST_CONTAINER_FORCEINLINE void priv_first_allocation(size_type cap)
615
696
  {
616
697
  if(cap > allocator_type::internal_capacity){
@@ -619,9 +700,7 @@ struct vector_alloc_holder<Allocator, StoredSizeType, version_0>
619
700
  }
620
701
 
621
702
  BOOST_CONTAINER_FORCEINLINE void deep_swap(vector_alloc_holder &x)
622
- {
623
- this->priv_deep_swap(x);
624
- }
703
+ { this->priv_deep_swap(x); }
625
704
 
626
705
  template<class OtherAllocator, class OtherStoredSizeType, class OtherAllocatorVersion>
627
706
  void deep_swap(vector_alloc_holder<OtherAllocator, OtherStoredSizeType, OtherAllocatorVersion> &x)
@@ -638,7 +717,6 @@ struct vector_alloc_holder<Allocator, StoredSizeType, version_0>
638
717
  on_capacity_overflow();
639
718
  }
640
719
 
641
-
642
720
  BOOST_CONTAINER_FORCEINLINE void steal_resources(vector_alloc_holder &)
643
721
  { //Containers with version 0 allocators can't be moved without moving elements one by one
644
722
  on_capacity_overflow();
@@ -656,7 +734,7 @@ struct vector_alloc_holder<Allocator, StoredSizeType, version_0>
656
734
  BOOST_CONTAINER_FORCEINLINE pointer start() const BOOST_NOEXCEPT_OR_NOTHROW
657
735
  { return allocator_type::internal_storage(); }
658
736
 
659
- BOOST_CONTAINER_FORCEINLINE size_type capacity() const BOOST_NOEXCEPT_OR_NOTHROW
737
+ BOOST_CONTAINER_FORCEINLINE size_type capacity() const BOOST_NOEXCEPT_OR_NOTHROW
660
738
  { return allocator_type::internal_capacity; }
661
739
 
662
740
  stored_size_type m_size;
@@ -681,6 +759,7 @@ struct vector_alloc_holder<Allocator, StoredSizeType, version_0>
681
759
  };
682
760
 
683
761
  struct growth_factor_60;
762
+ struct growth_factor_100;
684
763
 
685
764
  template<class Options, class AllocatorSizeType>
686
765
  struct get_vector_opt
@@ -772,22 +851,51 @@ private:
772
851
  private:
773
852
  BOOST_COPYABLE_AND_MOVABLE(vector)
774
853
  typedef vector_value_traits<allocator_type> value_traits;
775
- typedef constant_iterator<T, difference_type> cvalue_iterator;
854
+ typedef constant_iterator<T> cvalue_iterator;
776
855
 
777
856
  protected:
778
857
 
779
858
  BOOST_CONTAINER_FORCEINLINE void steal_resources(vector &x)
780
859
  { return this->m_holder.steal_resources(x.m_holder); }
781
860
 
861
+ BOOST_CONTAINER_FORCEINLINE void protected_set_size(size_type n)
862
+ { this->m_holder.m_size = static_cast<stored_size_type>(n); }
863
+
782
864
  template<class AllocFwd>
783
- BOOST_CONTAINER_FORCEINLINE vector(initial_capacity_t, pointer initial_memory, size_type capacity, BOOST_FWD_REF(AllocFwd) a)
784
- : m_holder(initial_capacity_t(), initial_memory, capacity, ::boost::forward<AllocFwd>(a))
865
+ BOOST_CONTAINER_FORCEINLINE vector(initial_capacity_t, pointer initial_memory, size_type cap, BOOST_FWD_REF(AllocFwd) a)
866
+ : m_holder(initial_capacity_t(), initial_memory, cap, ::boost::forward<AllocFwd>(a))
785
867
  {}
786
868
 
787
- BOOST_CONTAINER_FORCEINLINE vector(initial_capacity_t, pointer initial_memory, size_type capacity)
788
- : m_holder(initial_capacity_t(), initial_memory, capacity)
869
+ BOOST_CONTAINER_FORCEINLINE vector(initial_capacity_t, pointer initial_memory, size_type cap)
870
+ : m_holder(initial_capacity_t(), initial_memory, cap)
789
871
  {}
790
872
 
873
+ template<class SizeType, class AllocFwd>
874
+ BOOST_CONTAINER_FORCEINLINE vector(maybe_initial_capacity_t, pointer p, SizeType initial_capacity, BOOST_FWD_REF(AllocFwd) a)
875
+ : m_holder(maybe_initial_capacity_t(), p, initial_capacity, ::boost::forward<AllocFwd>(a))
876
+ {
877
+ #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
878
+ this->num_alloc += size_type(p != pointer());
879
+ #endif
880
+ }
881
+
882
+ template<class SizeType>
883
+ BOOST_CONTAINER_FORCEINLINE vector(maybe_initial_capacity_t, pointer p, SizeType initial_capacity)
884
+ : m_holder(maybe_initial_capacity_t(), p, initial_capacity)
885
+ {
886
+ #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
887
+ this->num_alloc += size_type(p != pointer());
888
+ #endif
889
+ }
890
+
891
+ template <class U>
892
+ void protected_init_n(const size_type new_size, const U& u)
893
+ {
894
+ BOOST_ASSERT(this->empty());
895
+ this->priv_resize_proxy(u).uninitialized_copy_n_and_update(this->m_holder.alloc(), this->priv_raw_begin(), new_size);
896
+ this->m_holder.set_stored_size(new_size);
897
+ }
898
+
791
899
  #endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
792
900
 
793
901
  public:
@@ -1003,7 +1111,7 @@ private:
1003
1111
  #endif
1004
1112
  ::boost::container::uninitialized_copy_alloc_n_source
1005
1113
  ( this->m_holder.alloc(), il.begin()
1006
- , il.size(), this->priv_raw_begin());
1114
+ , static_cast<size_type>(il.size()), this->priv_raw_begin());
1007
1115
  }
1008
1116
  #endif
1009
1117
 
@@ -1024,7 +1132,7 @@ private:
1024
1132
  : m_holder(boost::move(x.m_holder))
1025
1133
  {}
1026
1134
 
1027
- #endif //!defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
1135
+ #endif // defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
1028
1136
 
1029
1137
  //! <b>Effects</b>: Copy constructs a vector using the specified allocator.
1030
1138
  //!
@@ -1249,9 +1357,15 @@ private:
1249
1357
  >::type * = 0)
1250
1358
  )
1251
1359
  {
1360
+ typedef typename iter_size<FwdIt>::type it_size_type;
1252
1361
  //For Fwd iterators the standard only requires EmplaceConstructible and assignable from *first
1253
1362
  //so we can't do any backwards allocation
1254
- const size_type input_sz = static_cast<size_type>(boost::container::iterator_distance(first, last));
1363
+ const it_size_type sz = boost::container::iterator_udistance(first, last);
1364
+ if (BOOST_UNLIKELY(sz > size_type(-1))){
1365
+ boost::container::throw_length_error("vector::assign, FwdIt's max length reached");
1366
+ }
1367
+
1368
+ const size_type input_sz = static_cast<size_type>(sz);
1255
1369
  const size_type old_capacity = this->capacity();
1256
1370
  if(input_sz > old_capacity){ //If input range is too big, we need to reallocate
1257
1371
  size_type real_cap = 0;
@@ -1282,7 +1396,7 @@ private:
1282
1396
  }
1283
1397
 
1284
1398
  boost::container::copy_assign_range_alloc_n(this->m_holder.alloc(), first, input_sz, this->priv_raw_begin(), this->size());
1285
- this->m_holder.m_size = input_sz;
1399
+ m_holder.set_stored_size(input_sz);
1286
1400
  }
1287
1401
 
1288
1402
  //! <b>Effects</b>: Assigns the n copies of val to *this.
@@ -1299,7 +1413,7 @@ private:
1299
1413
  //! <b>Throws</b>: If allocator's copy constructor throws.
1300
1414
  //!
1301
1415
  //! <b>Complexity</b>: Constant.
1302
- allocator_type get_allocator() const BOOST_NOEXCEPT_OR_NOTHROW
1416
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE allocator_type get_allocator() const BOOST_NOEXCEPT_OR_NOTHROW
1303
1417
  { return this->m_holder.alloc(); }
1304
1418
 
1305
1419
  //! <b>Effects</b>: Returns a reference to the internal allocator.
@@ -1309,7 +1423,8 @@ private:
1309
1423
  //! <b>Complexity</b>: Constant.
1310
1424
  //!
1311
1425
  //! <b>Note</b>: Non-standard extension.
1312
- BOOST_CONTAINER_FORCEINLINE stored_allocator_type &get_stored_allocator() BOOST_NOEXCEPT_OR_NOTHROW
1426
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
1427
+ stored_allocator_type &get_stored_allocator() BOOST_NOEXCEPT_OR_NOTHROW
1313
1428
  { return this->m_holder.alloc(); }
1314
1429
 
1315
1430
  //! <b>Effects</b>: Returns a reference to the internal allocator.
@@ -1319,7 +1434,8 @@ private:
1319
1434
  //! <b>Complexity</b>: Constant.
1320
1435
  //!
1321
1436
  //! <b>Note</b>: Non-standard extension.
1322
- BOOST_CONTAINER_FORCEINLINE const stored_allocator_type &get_stored_allocator() const BOOST_NOEXCEPT_OR_NOTHROW
1437
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
1438
+ const stored_allocator_type &get_stored_allocator() const BOOST_NOEXCEPT_OR_NOTHROW
1323
1439
  { return this->m_holder.alloc(); }
1324
1440
 
1325
1441
  //////////////////////////////////////////////
@@ -1333,7 +1449,7 @@ private:
1333
1449
  //! <b>Throws</b>: Nothing.
1334
1450
  //!
1335
1451
  //! <b>Complexity</b>: Constant.
1336
- BOOST_CONTAINER_FORCEINLINE iterator begin() BOOST_NOEXCEPT_OR_NOTHROW
1452
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE iterator begin() BOOST_NOEXCEPT_OR_NOTHROW
1337
1453
  { return iterator(this->m_holder.start()); }
1338
1454
 
1339
1455
  //! <b>Effects</b>: Returns a const_iterator to the first element contained in the vector.
@@ -1341,7 +1457,7 @@ private:
1341
1457
  //! <b>Throws</b>: Nothing.
1342
1458
  //!
1343
1459
  //! <b>Complexity</b>: Constant.
1344
- BOOST_CONTAINER_FORCEINLINE const_iterator begin() const BOOST_NOEXCEPT_OR_NOTHROW
1460
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE const_iterator begin() const BOOST_NOEXCEPT_OR_NOTHROW
1345
1461
  { return const_iterator(this->m_holder.start()); }
1346
1462
 
1347
1463
  //! <b>Effects</b>: Returns an iterator to the end of the vector.
@@ -1349,11 +1465,11 @@ private:
1349
1465
  //! <b>Throws</b>: Nothing.
1350
1466
  //!
1351
1467
  //! <b>Complexity</b>: Constant.
1352
- BOOST_CONTAINER_FORCEINLINE iterator end() BOOST_NOEXCEPT_OR_NOTHROW
1468
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE iterator end() BOOST_NOEXCEPT_OR_NOTHROW
1353
1469
  {
1354
- pointer const bg = this->m_holder.start();
1355
- size_type const sz = this->m_holder.m_size;
1356
- return iterator(BOOST_LIKELY(sz) ? bg + sz : bg); //Avoid UB on null-pointer arithmetic
1470
+ iterator it (this->m_holder.start());
1471
+ it += difference_type(this->m_holder.m_size);
1472
+ return it; //Adding zero to null pointer is allowed (non-UB)
1357
1473
  }
1358
1474
 
1359
1475
  //! <b>Effects</b>: Returns a const_iterator to the end of the vector.
@@ -1361,7 +1477,7 @@ private:
1361
1477
  //! <b>Throws</b>: Nothing.
1362
1478
  //!
1363
1479
  //! <b>Complexity</b>: Constant.
1364
- BOOST_CONTAINER_FORCEINLINE const_iterator end() const BOOST_NOEXCEPT_OR_NOTHROW
1480
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE const_iterator end() const BOOST_NOEXCEPT_OR_NOTHROW
1365
1481
  { return this->cend(); }
1366
1482
 
1367
1483
  //! <b>Effects</b>: Returns a reverse_iterator pointing to the beginning
@@ -1370,7 +1486,7 @@ private:
1370
1486
  //! <b>Throws</b>: Nothing.
1371
1487
  //!
1372
1488
  //! <b>Complexity</b>: Constant.
1373
- BOOST_CONTAINER_FORCEINLINE reverse_iterator rbegin() BOOST_NOEXCEPT_OR_NOTHROW
1489
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE reverse_iterator rbegin() BOOST_NOEXCEPT_OR_NOTHROW
1374
1490
  { return reverse_iterator(this->end()); }
1375
1491
 
1376
1492
  //! <b>Effects</b>: Returns a const_reverse_iterator pointing to the beginning
@@ -1379,7 +1495,7 @@ private:
1379
1495
  //! <b>Throws</b>: Nothing.
1380
1496
  //!
1381
1497
  //! <b>Complexity</b>: Constant.
1382
- BOOST_CONTAINER_FORCEINLINE const_reverse_iterator rbegin() const BOOST_NOEXCEPT_OR_NOTHROW
1498
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE const_reverse_iterator rbegin() const BOOST_NOEXCEPT_OR_NOTHROW
1383
1499
  { return this->crbegin(); }
1384
1500
 
1385
1501
  //! <b>Effects</b>: Returns a reverse_iterator pointing to the end
@@ -1388,7 +1504,7 @@ private:
1388
1504
  //! <b>Throws</b>: Nothing.
1389
1505
  //!
1390
1506
  //! <b>Complexity</b>: Constant.
1391
- BOOST_CONTAINER_FORCEINLINE reverse_iterator rend() BOOST_NOEXCEPT_OR_NOTHROW
1507
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE reverse_iterator rend() BOOST_NOEXCEPT_OR_NOTHROW
1392
1508
  { return reverse_iterator(this->begin()); }
1393
1509
 
1394
1510
  //! <b>Effects</b>: Returns a const_reverse_iterator pointing to the end
@@ -1397,7 +1513,7 @@ private:
1397
1513
  //! <b>Throws</b>: Nothing.
1398
1514
  //!
1399
1515
  //! <b>Complexity</b>: Constant.
1400
- BOOST_CONTAINER_FORCEINLINE const_reverse_iterator rend() const BOOST_NOEXCEPT_OR_NOTHROW
1516
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE const_reverse_iterator rend() const BOOST_NOEXCEPT_OR_NOTHROW
1401
1517
  { return this->crend(); }
1402
1518
 
1403
1519
  //! <b>Effects</b>: Returns a const_iterator to the first element contained in the vector.
@@ -1405,7 +1521,7 @@ private:
1405
1521
  //! <b>Throws</b>: Nothing.
1406
1522
  //!
1407
1523
  //! <b>Complexity</b>: Constant.
1408
- BOOST_CONTAINER_FORCEINLINE const_iterator cbegin() const BOOST_NOEXCEPT_OR_NOTHROW
1524
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE const_iterator cbegin() const BOOST_NOEXCEPT_OR_NOTHROW
1409
1525
  { return const_iterator(this->m_holder.start()); }
1410
1526
 
1411
1527
  //! <b>Effects</b>: Returns a const_iterator to the end of the vector.
@@ -1413,13 +1529,12 @@ private:
1413
1529
  //! <b>Throws</b>: Nothing.
1414
1530
  //!
1415
1531
  //! <b>Complexity</b>: Constant.
1416
- BOOST_CONTAINER_FORCEINLINE const_iterator cend() const BOOST_NOEXCEPT_OR_NOTHROW
1532
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE const_iterator cend() const BOOST_NOEXCEPT_OR_NOTHROW
1417
1533
  {
1418
- pointer const bg = this->m_holder.start();
1419
- size_type const sz = this->m_holder.m_size;
1420
- return const_iterator(BOOST_LIKELY(sz) ? bg + sz : bg); //Avoid UB on null-pointer arithmetic
1534
+ const_iterator it (this->m_holder.start());
1535
+ it += difference_type(this->m_holder.m_size);
1536
+ return it; //Adding zero to null pointer is allowed (non-UB)
1421
1537
  }
1422
- //{ return const_iterator(this->m_holder.start() + this->m_holder.m_size); }
1423
1538
 
1424
1539
  //! <b>Effects</b>: Returns a const_reverse_iterator pointing to the beginning
1425
1540
  //! of the reversed vector.
@@ -1427,7 +1542,7 @@ private:
1427
1542
  //! <b>Throws</b>: Nothing.
1428
1543
  //!
1429
1544
  //! <b>Complexity</b>: Constant.
1430
- BOOST_CONTAINER_FORCEINLINE const_reverse_iterator crbegin() const BOOST_NOEXCEPT_OR_NOTHROW
1545
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE const_reverse_iterator crbegin() const BOOST_NOEXCEPT_OR_NOTHROW
1431
1546
  { return const_reverse_iterator(this->end());}
1432
1547
 
1433
1548
  //! <b>Effects</b>: Returns a const_reverse_iterator pointing to the end
@@ -1436,7 +1551,7 @@ private:
1436
1551
  //! <b>Throws</b>: Nothing.
1437
1552
  //!
1438
1553
  //! <b>Complexity</b>: Constant.
1439
- BOOST_CONTAINER_FORCEINLINE const_reverse_iterator crend() const BOOST_NOEXCEPT_OR_NOTHROW
1554
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE const_reverse_iterator crend() const BOOST_NOEXCEPT_OR_NOTHROW
1440
1555
  { return const_reverse_iterator(this->begin()); }
1441
1556
 
1442
1557
  //////////////////////////////////////////////
@@ -1450,7 +1565,7 @@ private:
1450
1565
  //! <b>Throws</b>: Nothing.
1451
1566
  //!
1452
1567
  //! <b>Complexity</b>: Constant.
1453
- BOOST_CONTAINER_FORCEINLINE bool empty() const BOOST_NOEXCEPT_OR_NOTHROW
1568
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE bool empty() const BOOST_NOEXCEPT_OR_NOTHROW
1454
1569
  { return !this->m_holder.m_size; }
1455
1570
 
1456
1571
  //! <b>Effects</b>: Returns the number of the elements contained in the vector.
@@ -1458,7 +1573,7 @@ private:
1458
1573
  //! <b>Throws</b>: Nothing.
1459
1574
  //!
1460
1575
  //! <b>Complexity</b>: Constant.
1461
- BOOST_CONTAINER_FORCEINLINE size_type size() const BOOST_NOEXCEPT_OR_NOTHROW
1576
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE size_type size() const BOOST_NOEXCEPT_OR_NOTHROW
1462
1577
  { return this->m_holder.m_size; }
1463
1578
 
1464
1579
  //! <b>Effects</b>: Returns the largest possible size of the vector.
@@ -1466,7 +1581,7 @@ private:
1466
1581
  //! <b>Throws</b>: Nothing.
1467
1582
  //!
1468
1583
  //! <b>Complexity</b>: Constant.
1469
- BOOST_CONTAINER_FORCEINLINE size_type max_size() const BOOST_NOEXCEPT_OR_NOTHROW
1584
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE size_type max_size() const BOOST_NOEXCEPT_OR_NOTHROW
1470
1585
  { return allocator_traits_type::max_size(this->m_holder.alloc()); }
1471
1586
 
1472
1587
  //! <b>Effects</b>: Inserts or erases elements at the end such that
@@ -1475,8 +1590,8 @@ private:
1475
1590
  //! <b>Throws</b>: If memory allocation throws, or T's copy/move or value initialization throws.
1476
1591
  //!
1477
1592
  //! <b>Complexity</b>: Linear to the difference between size() and new_size.
1478
- void resize(size_type new_size)
1479
- { this->priv_resize(new_size, value_init); }
1593
+ BOOST_CONTAINER_FORCEINLINE void resize(size_type new_size)
1594
+ { this->priv_resize(new_size, value_init, alloc_version()); }
1480
1595
 
1481
1596
  //! <b>Effects</b>: Inserts or erases elements at the end such that
1482
1597
  //! the size becomes n. New elements are default initialized.
@@ -1486,8 +1601,8 @@ private:
1486
1601
  //! <b>Complexity</b>: Linear to the difference between size() and new_size.
1487
1602
  //!
1488
1603
  //! <b>Note</b>: Non-standard extension
1489
- void resize(size_type new_size, default_init_t)
1490
- { this->priv_resize(new_size, default_init); }
1604
+ BOOST_CONTAINER_FORCEINLINE void resize(size_type new_size, default_init_t)
1605
+ { this->priv_resize(new_size, default_init, alloc_version()); }
1491
1606
 
1492
1607
  //! <b>Effects</b>: Inserts or erases elements at the end such that
1493
1608
  //! the size becomes n. New elements are copy constructed from x.
@@ -1495,8 +1610,8 @@ private:
1495
1610
  //! <b>Throws</b>: If memory allocation throws, or T's copy/move constructor throws.
1496
1611
  //!
1497
1612
  //! <b>Complexity</b>: Linear to the difference between size() and new_size.
1498
- void resize(size_type new_size, const T& x)
1499
- { this->priv_resize(new_size, x); }
1613
+ BOOST_CONTAINER_FORCEINLINE void resize(size_type new_size, const T& x)
1614
+ { this->priv_resize(new_size, x, alloc_version()); }
1500
1615
 
1501
1616
  //! <b>Effects</b>: Number of elements for which memory has been allocated.
1502
1617
  //! capacity() is always greater than or equal to size().
@@ -1504,7 +1619,7 @@ private:
1504
1619
  //! <b>Throws</b>: Nothing.
1505
1620
  //!
1506
1621
  //! <b>Complexity</b>: Constant.
1507
- BOOST_CONTAINER_FORCEINLINE size_type capacity() const BOOST_NOEXCEPT_OR_NOTHROW
1622
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE size_type capacity() const BOOST_NOEXCEPT_OR_NOTHROW
1508
1623
  { return this->m_holder.capacity(); }
1509
1624
 
1510
1625
  //! <b>Effects</b>: If n is less than or equal to capacity(), this call has no
@@ -1516,7 +1631,7 @@ private:
1516
1631
  BOOST_CONTAINER_FORCEINLINE void reserve(size_type new_cap)
1517
1632
  {
1518
1633
  if (this->capacity() < new_cap){
1519
- this->priv_reserve_no_capacity(new_cap, alloc_version());
1634
+ this->priv_move_to_new_buffer(new_cap, alloc_version());
1520
1635
  }
1521
1636
  }
1522
1637
 
@@ -1543,7 +1658,7 @@ private:
1543
1658
  //! <b>Throws</b>: Nothing.
1544
1659
  //!
1545
1660
  //! <b>Complexity</b>: Constant.
1546
- reference front() BOOST_NOEXCEPT_OR_NOTHROW
1661
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE reference front() BOOST_NOEXCEPT_OR_NOTHROW
1547
1662
  {
1548
1663
  BOOST_ASSERT(!this->empty());
1549
1664
  return *this->m_holder.start();
@@ -1557,7 +1672,7 @@ private:
1557
1672
  //! <b>Throws</b>: Nothing.
1558
1673
  //!
1559
1674
  //! <b>Complexity</b>: Constant.
1560
- const_reference front() const BOOST_NOEXCEPT_OR_NOTHROW
1675
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE const_reference front() const BOOST_NOEXCEPT_OR_NOTHROW
1561
1676
  {
1562
1677
  BOOST_ASSERT(!this->empty());
1563
1678
  return *this->m_holder.start();
@@ -1571,10 +1686,10 @@ private:
1571
1686
  //! <b>Throws</b>: Nothing.
1572
1687
  //!
1573
1688
  //! <b>Complexity</b>: Constant.
1574
- reference back() BOOST_NOEXCEPT_OR_NOTHROW
1689
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE reference back() BOOST_NOEXCEPT_OR_NOTHROW
1575
1690
  {
1576
1691
  BOOST_ASSERT(!this->empty());
1577
- return this->m_holder.start()[this->m_holder.m_size - 1];
1692
+ return this->m_holder.start()[difference_type(this->m_holder.m_size - 1u)];
1578
1693
  }
1579
1694
 
1580
1695
  //! <b>Requires</b>: !empty()
@@ -1585,7 +1700,7 @@ private:
1585
1700
  //! <b>Throws</b>: Nothing.
1586
1701
  //!
1587
1702
  //! <b>Complexity</b>: Constant.
1588
- const_reference back() const BOOST_NOEXCEPT_OR_NOTHROW
1703
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE const_reference back() const BOOST_NOEXCEPT_OR_NOTHROW
1589
1704
  {
1590
1705
  BOOST_ASSERT(!this->empty());
1591
1706
  return this->m_holder.start()[this->m_holder.m_size - 1];
@@ -1599,10 +1714,10 @@ private:
1599
1714
  //! <b>Throws</b>: Nothing.
1600
1715
  //!
1601
1716
  //! <b>Complexity</b>: Constant.
1602
- reference operator[](size_type n) BOOST_NOEXCEPT_OR_NOTHROW
1717
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE reference operator[](size_type n) BOOST_NOEXCEPT_OR_NOTHROW
1603
1718
  {
1604
1719
  BOOST_ASSERT(this->m_holder.m_size > n);
1605
- return this->m_holder.start()[n];
1720
+ return this->m_holder.start()[difference_type(n)];
1606
1721
  }
1607
1722
 
1608
1723
  //! <b>Requires</b>: size() > n.
@@ -1613,7 +1728,8 @@ private:
1613
1728
  //! <b>Throws</b>: Nothing.
1614
1729
  //!
1615
1730
  //! <b>Complexity</b>: Constant.
1616
- const_reference operator[](size_type n) const BOOST_NOEXCEPT_OR_NOTHROW
1731
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
1732
+ const_reference operator[](size_type n) const BOOST_NOEXCEPT_OR_NOTHROW
1617
1733
  {
1618
1734
  BOOST_ASSERT(this->m_holder.m_size > n);
1619
1735
  return this->m_holder.start()[n];
@@ -1630,10 +1746,11 @@ private:
1630
1746
  //! <b>Complexity</b>: Constant.
1631
1747
  //!
1632
1748
  //! <b>Note</b>: Non-standard extension
1633
- iterator nth(size_type n) BOOST_NOEXCEPT_OR_NOTHROW
1749
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
1750
+ iterator nth(size_type n) BOOST_NOEXCEPT_OR_NOTHROW
1634
1751
  {
1635
1752
  BOOST_ASSERT(this->m_holder.m_size >= n);
1636
- return iterator(this->m_holder.start()+n);
1753
+ return iterator(this->m_holder.start()+difference_type(n));
1637
1754
  }
1638
1755
 
1639
1756
  //! <b>Requires</b>: size() >= n.
@@ -1647,10 +1764,11 @@ private:
1647
1764
  //! <b>Complexity</b>: Constant.
1648
1765
  //!
1649
1766
  //! <b>Note</b>: Non-standard extension
1650
- const_iterator nth(size_type n) const BOOST_NOEXCEPT_OR_NOTHROW
1767
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
1768
+ const_iterator nth(size_type n) const BOOST_NOEXCEPT_OR_NOTHROW
1651
1769
  {
1652
1770
  BOOST_ASSERT(this->m_holder.m_size >= n);
1653
- return const_iterator(this->m_holder.start()+n);
1771
+ return const_iterator(this->m_holder.start()+difference_type(n));
1654
1772
  }
1655
1773
 
1656
1774
  //! <b>Requires</b>: begin() <= p <= end().
@@ -1663,7 +1781,8 @@ private:
1663
1781
  //! <b>Complexity</b>: Constant.
1664
1782
  //!
1665
1783
  //! <b>Note</b>: Non-standard extension
1666
- size_type index_of(iterator p) BOOST_NOEXCEPT_OR_NOTHROW
1784
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
1785
+ size_type index_of(iterator p) BOOST_NOEXCEPT_OR_NOTHROW
1667
1786
  {
1668
1787
  //Range check assert done in priv_index_of
1669
1788
  return this->priv_index_of(vector_iterator_get_ptr(p));
@@ -1679,7 +1798,8 @@ private:
1679
1798
  //! <b>Complexity</b>: Constant.
1680
1799
  //!
1681
1800
  //! <b>Note</b>: Non-standard extension
1682
- size_type index_of(const_iterator p) const BOOST_NOEXCEPT_OR_NOTHROW
1801
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
1802
+ size_type index_of(const_iterator p) const BOOST_NOEXCEPT_OR_NOTHROW
1683
1803
  {
1684
1804
  //Range check assert done in priv_index_of
1685
1805
  return this->priv_index_of(vector_iterator_get_ptr(p));
@@ -1690,13 +1810,13 @@ private:
1690
1810
  //! <b>Effects</b>: Returns a reference to the nth element
1691
1811
  //! from the beginning of the container.
1692
1812
  //!
1693
- //! <b>Throws</b>: std::range_error if n >= size()
1813
+ //! <b>Throws</b>: range_error if n >= size()
1694
1814
  //!
1695
1815
  //! <b>Complexity</b>: Constant.
1696
- reference at(size_type n)
1816
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE reference at(size_type n)
1697
1817
  {
1698
1818
  this->priv_throw_if_out_of_range(n);
1699
- return this->m_holder.start()[n];
1819
+ return this->m_holder.start()[difference_type(n)];
1700
1820
  }
1701
1821
 
1702
1822
  //! <b>Requires</b>: size() > n.
@@ -1704,10 +1824,10 @@ private:
1704
1824
  //! <b>Effects</b>: Returns a const reference to the nth element
1705
1825
  //! from the beginning of the container.
1706
1826
  //!
1707
- //! <b>Throws</b>: std::range_error if n >= size()
1827
+ //! <b>Throws</b>: range_error if n >= size()
1708
1828
  //!
1709
1829
  //! <b>Complexity</b>: Constant.
1710
- const_reference at(size_type n) const
1830
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE const_reference at(size_type n) const
1711
1831
  {
1712
1832
  this->priv_throw_if_out_of_range(n);
1713
1833
  return this->m_holder.start()[n];
@@ -1725,7 +1845,7 @@ private:
1725
1845
  //! <b>Throws</b>: Nothing.
1726
1846
  //!
1727
1847
  //! <b>Complexity</b>: Constant.
1728
- T* data() BOOST_NOEXCEPT_OR_NOTHROW
1848
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE T* data() BOOST_NOEXCEPT_OR_NOTHROW
1729
1849
  { return this->priv_raw_begin(); }
1730
1850
 
1731
1851
  //! <b>Returns</b>: A pointer such that [data(),data() + size()) is a valid range.
@@ -1734,7 +1854,7 @@ private:
1734
1854
  //! <b>Throws</b>: Nothing.
1735
1855
  //!
1736
1856
  //! <b>Complexity</b>: Constant.
1737
- const T * data() const BOOST_NOEXCEPT_OR_NOTHROW
1857
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE const T * data() const BOOST_NOEXCEPT_OR_NOTHROW
1738
1858
  { return this->priv_raw_begin(); }
1739
1859
 
1740
1860
  //////////////////////////////////////////////
@@ -1756,17 +1876,17 @@ private:
1756
1876
  template<class ...Args>
1757
1877
  BOOST_CONTAINER_FORCEINLINE reference emplace_back(BOOST_FWD_REF(Args)...args)
1758
1878
  {
1879
+ T* const p = this->priv_raw_end();
1759
1880
  if (BOOST_LIKELY(this->room_enough())){
1760
1881
  //There is more memory, just construct a new object at the end
1761
- T* const p = this->priv_raw_end();
1762
1882
  allocator_traits_type::construct(this->m_holder.alloc(), p, ::boost::forward<Args>(args)...);
1763
1883
  ++this->m_holder.m_size;
1764
1884
  return *p;
1765
1885
  }
1766
1886
  else{
1767
- typedef dtl::insert_emplace_proxy<allocator_type, T*, Args...> type;
1768
- return *this->priv_forward_range_insert_no_capacity
1769
- (this->back_ptr(), 1, type(::boost::forward<Args>(args)...), alloc_version());
1887
+ typedef dtl::insert_emplace_proxy<allocator_type, Args...> proxy_t;
1888
+ return *this->priv_insert_forward_range_no_capacity
1889
+ (p, 1, proxy_t(::boost::forward<Args>(args)...), alloc_version());
1770
1890
  }
1771
1891
  }
1772
1892
 
@@ -1801,13 +1921,13 @@ private:
1801
1921
  //! <b>Complexity</b>: If position is end(), amortized constant time
1802
1922
  //! Linear time otherwise.
1803
1923
  template<class ...Args>
1804
- iterator emplace(const_iterator position, BOOST_FWD_REF(Args) ...args)
1924
+ BOOST_CONTAINER_FORCEINLINE iterator emplace(const_iterator position, BOOST_FWD_REF(Args) ...args)
1805
1925
  {
1806
1926
  BOOST_ASSERT(this->priv_in_range_or_end(position));
1807
1927
  //Just call more general insert(pos, size, value) and return iterator
1808
- typedef dtl::insert_emplace_proxy<allocator_type, T*, Args...> type;
1809
- return this->priv_forward_range_insert( vector_iterator_get_ptr(position), 1
1810
- , type(::boost::forward<Args>(args)...));
1928
+ typedef dtl::insert_emplace_proxy<allocator_type, Args...> proxy_t;
1929
+ return this->priv_insert_forward_range( vector_iterator_get_ptr(position), 1
1930
+ , proxy_t(::boost::forward<Args>(args)...));
1811
1931
  }
1812
1932
 
1813
1933
  #else // !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
@@ -1816,17 +1936,17 @@ private:
1816
1936
  BOOST_MOVE_TMPL_LT##N BOOST_MOVE_CLASS##N BOOST_MOVE_GT##N \
1817
1937
  BOOST_CONTAINER_FORCEINLINE reference emplace_back(BOOST_MOVE_UREF##N)\
1818
1938
  {\
1939
+ T* const p = this->priv_raw_end();\
1819
1940
  if (BOOST_LIKELY(this->room_enough())){\
1820
- T* const p = this->priv_raw_end();\
1821
1941
  allocator_traits_type::construct (this->m_holder.alloc()\
1822
1942
  , this->priv_raw_end() BOOST_MOVE_I##N BOOST_MOVE_FWD##N);\
1823
1943
  ++this->m_holder.m_size;\
1824
1944
  return *p;\
1825
1945
  }\
1826
1946
  else{\
1827
- typedef dtl::insert_emplace_proxy_arg##N<allocator_type, T* BOOST_MOVE_I##N BOOST_MOVE_TARG##N> type;\
1828
- return *this->priv_forward_range_insert_no_capacity\
1829
- ( this->back_ptr(), 1, type(BOOST_MOVE_FWD##N), alloc_version());\
1947
+ typedef dtl::insert_emplace_proxy_arg##N<allocator_type BOOST_MOVE_I##N BOOST_MOVE_TARG##N> proxy_t;\
1948
+ return *this->priv_insert_forward_range_no_capacity\
1949
+ ( p, 1, proxy_t(BOOST_MOVE_FWD##N), alloc_version());\
1830
1950
  }\
1831
1951
  }\
1832
1952
  \
@@ -1843,11 +1963,11 @@ private:
1843
1963
  }\
1844
1964
  \
1845
1965
  BOOST_MOVE_TMPL_LT##N BOOST_MOVE_CLASS##N BOOST_MOVE_GT##N \
1846
- iterator emplace(const_iterator pos BOOST_MOVE_I##N BOOST_MOVE_UREF##N)\
1966
+ BOOST_CONTAINER_FORCEINLINE iterator emplace(const_iterator pos BOOST_MOVE_I##N BOOST_MOVE_UREF##N)\
1847
1967
  {\
1848
1968
  BOOST_ASSERT(this->priv_in_range_or_end(pos));\
1849
- typedef dtl::insert_emplace_proxy_arg##N<allocator_type, T* BOOST_MOVE_I##N BOOST_MOVE_TARG##N> type;\
1850
- return this->priv_forward_range_insert(vector_iterator_get_ptr(pos), 1, type(BOOST_MOVE_FWD##N));\
1969
+ typedef dtl::insert_emplace_proxy_arg##N<allocator_type BOOST_MOVE_I##N BOOST_MOVE_TARG##N> proxy_t;\
1970
+ return this->priv_insert_forward_range(vector_iterator_get_ptr(pos), 1, proxy_t(BOOST_MOVE_FWD##N));\
1851
1971
  }\
1852
1972
  //
1853
1973
  BOOST_MOVE_ITERATE_0TO9(BOOST_CONTAINER_VECTOR_EMPLACE_CODE)
@@ -1909,11 +2029,11 @@ private:
1909
2029
  //! <b>Throws</b>: If memory allocation throws or T's copy/move constructor throws.
1910
2030
  //!
1911
2031
  //! <b>Complexity</b>: Linear to n.
1912
- iterator insert(const_iterator p, size_type n, const T& x)
2032
+ BOOST_CONTAINER_FORCEINLINE iterator insert(const_iterator p, size_type n, const T& x)
1913
2033
  {
1914
2034
  BOOST_ASSERT(this->priv_in_range_or_end(p));
1915
- dtl::insert_n_copies_proxy<allocator_type, T*> proxy(x);
1916
- return this->priv_forward_range_insert(vector_iterator_get_ptr(p), n, proxy);
2035
+ dtl::insert_n_copies_proxy<allocator_type> proxy(x);
2036
+ return this->priv_insert_forward_range(vector_iterator_get_ptr(p), n, proxy);
1917
2037
  }
1918
2038
 
1919
2039
  //! <b>Requires</b>: p must be a valid iterator of *this.
@@ -1938,18 +2058,18 @@ private:
1938
2058
  )
1939
2059
  {
1940
2060
  BOOST_ASSERT(this->priv_in_range_or_end(pos));
1941
- const size_type n_pos = pos - this->cbegin();
2061
+ const size_type n_pos = size_type(pos - this->cbegin());
1942
2062
  iterator it(vector_iterator_get_ptr(pos));
1943
2063
  for(;first != last; ++first){
1944
2064
  it = this->emplace(it, *first);
1945
2065
  ++it;
1946
2066
  }
1947
- return iterator(this->m_holder.start() + n_pos);
2067
+ return iterator(this->m_holder.start() + difference_type(n_pos));
1948
2068
  }
1949
2069
 
1950
2070
  #if !defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
1951
2071
  template <class FwdIt>
1952
- iterator insert(const_iterator pos, FwdIt first, FwdIt last
2072
+ BOOST_CONTAINER_FORCEINLINE iterator insert(const_iterator pos, FwdIt first, FwdIt last
1953
2073
  , typename dtl::disable_if_or
1954
2074
  < void
1955
2075
  , dtl::is_convertible<FwdIt, size_type>
@@ -1957,9 +2077,15 @@ private:
1957
2077
  >::type * = 0
1958
2078
  )
1959
2079
  {
2080
+ typedef typename iter_size<FwdIt>::type it_size_type;
1960
2081
  BOOST_ASSERT(this->priv_in_range_or_end(pos));
1961
- dtl::insert_range_proxy<allocator_type, FwdIt, T*> proxy(first);
1962
- return this->priv_forward_range_insert(vector_iterator_get_ptr(pos), boost::container::iterator_distance(first, last), proxy);
2082
+ const it_size_type sz = boost::container::iterator_udistance(first, last);
2083
+ if (BOOST_UNLIKELY(sz > size_type(-1))){
2084
+ boost::container::throw_length_error("vector::insert, FwdIt's max length reached");
2085
+ }
2086
+
2087
+ dtl::insert_range_proxy<allocator_type, FwdIt> proxy(first);
2088
+ return this->priv_insert_forward_range(vector_iterator_get_ptr(pos), static_cast<size_type>(sz), proxy);
1963
2089
  }
1964
2090
  #endif
1965
2091
 
@@ -1980,14 +2106,14 @@ private:
1980
2106
  //! a non-standard extension.
1981
2107
  #if !defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
1982
2108
  template <class InIt>
1983
- iterator insert(const_iterator pos, size_type num, InIt first, InIt last)
2109
+ BOOST_CONTAINER_FORCEINLINE iterator insert(const_iterator pos, size_type num, InIt first, InIt last)
1984
2110
  {
1985
2111
  BOOST_ASSERT(this->priv_in_range_or_end(pos));
1986
2112
  BOOST_ASSERT(dtl::is_input_iterator<InIt>::value ||
1987
- num == static_cast<size_type>(boost::container::iterator_distance(first, last)));
2113
+ num == boost::container::iterator_udistance(first, last));
1988
2114
  (void)last;
1989
- dtl::insert_range_proxy<allocator_type, InIt, T*> proxy(first);
1990
- return this->priv_forward_range_insert(vector_iterator_get_ptr(pos), num, proxy);
2115
+ dtl::insert_range_proxy<allocator_type, InIt> proxy(first);
2116
+ return this->priv_insert_forward_range(vector_iterator_get_ptr(pos), num, proxy);
1991
2117
  }
1992
2118
  #endif
1993
2119
 
@@ -1999,7 +2125,7 @@ private:
1999
2125
  //! <b>Returns</b>: an iterator to the first inserted element or position if first == last.
2000
2126
  //!
2001
2127
  //! <b>Complexity</b>: Linear to the range [il.begin(), il.end()).
2002
- iterator insert(const_iterator position, std::initializer_list<value_type> il)
2128
+ BOOST_CONTAINER_FORCEINLINE iterator insert(const_iterator position, std::initializer_list<value_type> il)
2003
2129
  {
2004
2130
  //Assertion done in insert()
2005
2131
  return this->insert(position, il.begin(), il.end());
@@ -2011,11 +2137,12 @@ private:
2011
2137
  //! <b>Throws</b>: Nothing.
2012
2138
  //!
2013
2139
  //! <b>Complexity</b>: Constant time.
2014
- void pop_back() BOOST_NOEXCEPT_OR_NOTHROW
2140
+ BOOST_CONTAINER_FORCEINLINE void pop_back() BOOST_NOEXCEPT_OR_NOTHROW
2015
2141
  {
2016
2142
  BOOST_ASSERT(!this->empty());
2017
2143
  //Destroy last element
2018
- this->priv_destroy_last();
2144
+ allocator_traits_type::destroy(this->get_stored_allocator(), this->priv_raw_end() - 1);
2145
+ --this->m_holder.m_size;
2019
2146
  }
2020
2147
 
2021
2148
  //! <b>Effects</b>: Erases the element at position pos.
@@ -2029,10 +2156,16 @@ private:
2029
2156
  BOOST_ASSERT(this->priv_in_range(position));
2030
2157
  const pointer p = vector_iterator_get_ptr(position);
2031
2158
  T *const pos_ptr = boost::movelib::to_raw_pointer(p);
2032
- T *const beg_ptr = this->priv_raw_begin();
2033
- T *const new_end_ptr = ::boost::container::move(pos_ptr + 1, beg_ptr + this->m_holder.m_size, pos_ptr);
2159
+ T *const end_ptr = this->priv_raw_end();
2160
+
2034
2161
  //Move elements forward and destroy last
2035
- this->priv_destroy_last(pos_ptr != new_end_ptr);
2162
+ (void)::boost::container::move(pos_ptr + 1, end_ptr, pos_ptr);
2163
+
2164
+ T *const last_ptr = end_ptr-1;
2165
+ if(!value_traits::trivial_dctr_after_move || pos_ptr == last_ptr){
2166
+ allocator_traits_type::destroy(this->get_stored_allocator(), last_ptr);
2167
+ }
2168
+ --this->m_holder.m_size;
2036
2169
  return iterator(p);
2037
2170
  }
2038
2171
 
@@ -2044,15 +2177,19 @@ private:
2044
2177
  //! plus linear to the elements between pos and the last element.
2045
2178
  iterator erase(const_iterator first, const_iterator last)
2046
2179
  {
2047
- if (first != last){
2048
- BOOST_ASSERT(this->priv_in_range(first));
2049
- BOOST_ASSERT(this->priv_in_range_or_end(last));
2050
- BOOST_ASSERT(first < last);
2180
+ BOOST_ASSERT(this->priv_in_range_or_end(first));
2181
+ BOOST_ASSERT(this->priv_in_range_or_end(last));
2182
+ BOOST_ASSERT(first <= last);
2183
+ if(first != last){
2051
2184
  T* const old_end_ptr = this->priv_raw_end();
2052
2185
  T* const first_ptr = boost::movelib::to_raw_pointer(vector_iterator_get_ptr(first));
2053
2186
  T* const last_ptr = boost::movelib::to_raw_pointer(vector_iterator_get_ptr(last));
2054
- T* const ptr = boost::movelib::to_raw_pointer(boost::container::move(last_ptr, old_end_ptr, first_ptr));
2055
- this->priv_destroy_last_n(old_end_ptr - ptr);
2187
+ T* const new_last_ptr = boost::movelib::to_raw_pointer(boost::container::move(last_ptr, old_end_ptr, first_ptr));
2188
+ const size_type n = static_cast<size_type>(old_end_ptr - new_last_ptr);
2189
+ if(!value_traits::trivial_dctr_after_move || old_end_ptr == last_ptr){
2190
+ boost::container::destroy_alloc_n(this->get_stored_allocator(), new_last_ptr, n);
2191
+ }
2192
+ this->m_holder.dec_stored_size(n);
2056
2193
  }
2057
2194
  return iterator(vector_iterator_get_ptr(first));
2058
2195
  }
@@ -2102,43 +2239,44 @@ private:
2102
2239
  //! <b>Effects</b>: Returns true if x and y are equal
2103
2240
  //!
2104
2241
  //! <b>Complexity</b>: Linear to the number of elements in the container.
2105
- BOOST_CONTAINER_FORCEINLINE friend bool operator==(const vector& x, const vector& y)
2242
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE friend bool operator==(const vector& x, const vector& y)
2106
2243
  { return x.size() == y.size() && ::boost::container::algo_equal(x.begin(), x.end(), y.begin()); }
2107
2244
 
2108
2245
  //! <b>Effects</b>: Returns true if x and y are unequal
2109
2246
  //!
2110
2247
  //! <b>Complexity</b>: Linear to the number of elements in the container.
2111
- BOOST_CONTAINER_FORCEINLINE friend bool operator!=(const vector& x, const vector& y)
2248
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE friend bool operator!=(const vector& x, const vector& y)
2112
2249
  { return !(x == y); }
2113
2250
 
2114
2251
  //! <b>Effects</b>: Returns true if x is less than y
2115
2252
  //!
2116
2253
  //! <b>Complexity</b>: Linear to the number of elements in the container.
2117
- friend bool operator<(const vector& x, const vector& y)
2254
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD friend bool operator<(const vector& x, const vector& y)
2118
2255
  { return boost::container::algo_lexicographical_compare(x.begin(), x.end(), y.begin(), y.end()); }
2119
2256
 
2120
2257
  //! <b>Effects</b>: Returns true if x is greater than y
2121
2258
  //!
2122
2259
  //! <b>Complexity</b>: Linear to the number of elements in the container.
2123
- BOOST_CONTAINER_FORCEINLINE friend bool operator>(const vector& x, const vector& y)
2260
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE friend bool operator>(const vector& x, const vector& y)
2124
2261
  { return y < x; }
2125
2262
 
2126
2263
  //! <b>Effects</b>: Returns true if x is equal or less than y
2127
2264
  //!
2128
2265
  //! <b>Complexity</b>: Linear to the number of elements in the container.
2129
- BOOST_CONTAINER_FORCEINLINE friend bool operator<=(const vector& x, const vector& y)
2266
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE friend bool operator<=(const vector& x, const vector& y)
2130
2267
  { return !(y < x); }
2131
2268
 
2132
2269
  //! <b>Effects</b>: Returns true if x is equal or greater than y
2133
2270
  //!
2134
2271
  //! <b>Complexity</b>: Linear to the number of elements in the container.
2135
- BOOST_CONTAINER_FORCEINLINE friend bool operator>=(const vector& x, const vector& y)
2272
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE friend bool operator>=(const vector& x, const vector& y)
2136
2273
  { return !(x < y); }
2137
2274
 
2138
2275
  //! <b>Effects</b>: x.swap(y)
2139
2276
  //!
2140
2277
  //! <b>Complexity</b>: Constant.
2141
2278
  BOOST_CONTAINER_FORCEINLINE friend void swap(vector& x, vector& y)
2279
+ BOOST_NOEXCEPT_IF(BOOST_NOEXCEPT(x.swap(y)))
2142
2280
  { x.swap(y); }
2143
2281
 
2144
2282
  #ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
@@ -2154,7 +2292,7 @@ private:
2154
2292
  bool stable_reserve(size_type new_cap)
2155
2293
  {
2156
2294
  const size_type cp = this->capacity();
2157
- return cp >= new_cap || (alloc_version::value == 2 && this->m_holder.try_expand_fwd(new_cap - cp));
2295
+ return cp >= new_cap || (alloc_version::value == 2 && this->m_holder.try_expand_fwd(size_type(new_cap - cp)));
2158
2296
  }
2159
2297
 
2160
2298
  //Absolutely experimental. This function might change, disappear or simply crash!
@@ -2178,7 +2316,7 @@ private:
2178
2316
  size_type const free_cap = c - s;
2179
2317
  //If not input iterator and new elements don't fit in the remaining capacity, merge in new buffer
2180
2318
  if(!dtl::is_input_iterator<InputIt>::value &&
2181
- free_cap < (n = static_cast<size_type>(boost::container::iterator_distance(first, last)))){
2319
+ free_cap < (n = boost::container::iterator_udistance(first, last))){
2182
2320
  this->priv_merge_in_new_buffer(first, n, comp, alloc_version());
2183
2321
  }
2184
2322
  else{
@@ -2245,14 +2383,14 @@ private:
2245
2383
  else{
2246
2384
  //Hole was just filled, disable exception rollback and change vector size
2247
2385
  past_hole_values_destroyer.release();
2248
- this->m_holder.m_size += element_count;
2386
+ this->m_holder.inc_stored_size(element_count);
2249
2387
  }
2250
2388
  }
2251
2389
  else{
2252
2390
  if(old_hole_size){
2253
2391
  //Hole was just filled by priv_insert_ordered_at_shift_range, disable exception rollback and change vector size
2254
2392
  past_hole_values_destroyer.release();
2255
- this->m_holder.m_size += element_count;
2393
+ this->m_holder.inc_stored_size(element_count);
2256
2394
  }
2257
2395
  //Insert the new value in the already constructed range
2258
2396
  begin_ptr[pos + insertions_left - 1] = position_value.get_val();
@@ -2353,7 +2491,7 @@ private:
2353
2491
  if (old_cap > 0) {
2354
2492
  this->m_holder.deallocate(old_p, old_cap);
2355
2493
  }
2356
- this->m_holder.m_size = old_size + added;
2494
+ m_holder.set_stored_size(old_size + added);
2357
2495
  this->m_holder.start(new_storage);
2358
2496
  this->m_holder.capacity(new_cap);
2359
2497
  new_buffer_deallocator.release();
@@ -2361,15 +2499,15 @@ private:
2361
2499
  }
2362
2500
 
2363
2501
  BOOST_CONTAINER_FORCEINLINE bool room_enough() const
2364
- { return this->m_holder.m_size < this->m_holder.capacity(); }
2502
+ { return this->m_holder.m_size != this->m_holder.capacity(); }
2365
2503
 
2366
2504
  BOOST_CONTAINER_FORCEINLINE pointer back_ptr() const
2367
- { return this->m_holder.start() + this->m_holder.m_size; }
2505
+ { return this->m_holder.start() + difference_type(this->m_holder.m_size); }
2368
2506
 
2369
- size_type priv_index_of(pointer p) const
2507
+ BOOST_CONTAINER_FORCEINLINE size_type priv_index_of(pointer p) const
2370
2508
  {
2371
2509
  BOOST_ASSERT(this->m_holder.start() <= p);
2372
- BOOST_ASSERT(p <= (this->m_holder.start()+this->size()));
2510
+ BOOST_ASSERT(p <= (this->m_holder.start()+difference_type(this->size())));
2373
2511
  return static_cast<size_type>(p - this->m_holder.start());
2374
2512
  }
2375
2513
 
@@ -2387,7 +2525,7 @@ private:
2387
2525
  const size_type this_sz = m_holder.m_size;
2388
2526
  const size_type other_sz = static_cast<size_type>(x.m_holder.m_size);
2389
2527
  boost::container::move_assign_range_alloc_n(this->m_holder.alloc(), other_start, other_sz, this_start, this_sz);
2390
- this->m_holder.m_size = other_sz;
2528
+ m_holder.set_stored_size(other_sz);
2391
2529
  //Not emptying the source container seems to be confusing for users as drop-in
2392
2530
  //replacement for non-static vectors, so clear it.
2393
2531
  x.clear();
@@ -2445,7 +2583,7 @@ private:
2445
2583
  const size_type this_sz = m_holder.m_size;
2446
2584
  const size_type other_sz = static_cast<size_type>(x.m_holder.m_size);
2447
2585
  boost::container::copy_assign_range_alloc_n(this->m_holder.alloc(), other_start, other_sz, this_start, this_sz);
2448
- this->m_holder.m_size = other_sz;
2586
+ m_holder.set_stored_size(other_sz);
2449
2587
  }
2450
2588
 
2451
2589
  template<class OtherA>
@@ -2469,63 +2607,75 @@ private:
2469
2607
  }
2470
2608
 
2471
2609
  template<class Vector> //Template it to avoid it in explicit instantiations
2472
- void priv_swap(Vector &x, dtl::true_type) //version_0
2610
+ BOOST_CONTAINER_FORCEINLINE void priv_swap(Vector &x, dtl::true_type) //version_0
2473
2611
  { this->m_holder.deep_swap(x.m_holder); }
2474
2612
 
2475
2613
  template<class Vector> //Template it to avoid it in explicit instantiations
2476
2614
  void priv_swap(Vector &x, dtl::false_type) //version_N
2477
2615
  {
2478
2616
  const bool propagate_alloc = allocator_traits_type::propagate_on_container_swap::value;
2479
- if(are_swap_propagable( this->get_stored_allocator(), this->m_holder.start()
2480
- , x.get_stored_allocator(), x.m_holder.start(), propagate_alloc)){
2617
+ if (BOOST_UNLIKELY(&x == this)){
2618
+ return;
2619
+ }
2620
+ else if(are_swap_propagable( this->get_stored_allocator(), this->m_holder.start()
2621
+ , x.get_stored_allocator(), x.m_holder.start(), propagate_alloc)){
2481
2622
  //Just swap internals
2482
2623
  this->m_holder.swap_resources(x.m_holder);
2483
2624
  }
2484
2625
  else{
2485
- if (BOOST_UNLIKELY(&x == this))
2486
- return;
2487
-
2488
2626
  //Else swap element by element...
2489
2627
  bool const t_smaller = this->size() < x.size();
2490
2628
  vector &sml = t_smaller ? *this : x;
2491
2629
  vector &big = t_smaller ? x : *this;
2492
2630
 
2493
- size_type const common_elements = sml.size();
2494
- for(size_type i = 0; i != common_elements; ++i){
2495
- boost::adl_move_swap(sml[i], big[i]);
2631
+ //For empty containers, maybe storage can be moved from the other (just like in the move constructor)
2632
+ if(sml.empty() && is_propagable_from(big.get_stored_allocator(), big.data(), sml.get_allocator(), propagate_alloc)){
2633
+ if(BOOST_LIKELY(0u != sml.capacity()))
2634
+ sml.m_holder.deallocate(sml.m_holder.m_start, sml.m_holder.m_capacity);
2635
+ sml.steal_resources(big);
2636
+ }
2637
+ else {
2638
+ //Else swap element by element...
2639
+ size_type const common_elements = sml.size();
2640
+ for(size_type i = 0; i != common_elements; ++i){
2641
+ boost::adl_move_swap(sml[i], big[i]);
2642
+ }
2643
+ //... and move-insert the remaining range
2644
+ sml.insert( sml.cend()
2645
+ , boost::make_move_iterator(boost::movelib::iterator_to_raw_pointer(big.nth(common_elements)))
2646
+ , boost::make_move_iterator(boost::movelib::iterator_to_raw_pointer(big.end()))
2647
+ );
2648
+ //Destroy remaining elements
2649
+ big.erase(big.nth(common_elements), big.cend());
2496
2650
  }
2497
- //... and move-insert the remaining range
2498
- sml.insert( sml.cend()
2499
- , boost::make_move_iterator(boost::movelib::iterator_to_raw_pointer(big.nth(common_elements)))
2500
- , boost::make_move_iterator(boost::movelib::iterator_to_raw_pointer(big.end()))
2501
- );
2502
- //Destroy remaining elements
2503
- big.erase(big.nth(common_elements), big.cend());
2504
2651
  }
2505
2652
  //And now swap the allocator
2506
2653
  dtl::swap_alloc(this->m_holder.alloc(), x.m_holder.alloc(), dtl::bool_<propagate_alloc>());
2507
2654
  }
2508
2655
 
2509
- void priv_reserve_no_capacity(size_type, version_0)
2656
+ BOOST_CONTAINER_FORCEINLINE void priv_move_to_new_buffer(size_type, version_0)
2510
2657
  { alloc_holder_t::on_capacity_overflow(); }
2511
2658
 
2512
- dtl::insert_range_proxy<allocator_type, boost::move_iterator<T*>, T*> priv_dummy_empty_proxy()
2659
+ BOOST_CONTAINER_FORCEINLINE dtl::insert_range_proxy<allocator_type, boost::move_iterator<T*> > priv_dummy_empty_proxy()
2513
2660
  {
2514
- return dtl::insert_range_proxy<allocator_type, boost::move_iterator<T*>, T*>
2661
+ return dtl::insert_range_proxy<allocator_type, boost::move_iterator<T*> >
2515
2662
  (::boost::make_move_iterator((T *)0));
2516
2663
  }
2517
2664
 
2518
- void priv_reserve_no_capacity(size_type new_cap, version_1)
2665
+ BOOST_CONTAINER_FORCEINLINE void priv_move_to_new_buffer(size_type new_cap, version_1)
2519
2666
  {
2520
2667
  //There is not enough memory, allocate a new buffer
2521
2668
  //Pass the hint so that allocators can take advantage of this.
2522
2669
  pointer const p = this->m_holder.allocate(new_cap);
2670
+ #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
2671
+ ++this->num_alloc;
2672
+ #endif
2523
2673
  //We will reuse insert code, so create a dummy input iterator
2524
- this->priv_forward_range_insert_new_allocation
2674
+ this->priv_insert_forward_range_new_allocation
2525
2675
  ( boost::movelib::to_raw_pointer(p), new_cap, this->priv_raw_end(), 0, this->priv_dummy_empty_proxy());
2526
2676
  }
2527
2677
 
2528
- void priv_reserve_no_capacity(size_type new_cap, version_2)
2678
+ void priv_move_to_new_buffer(size_type new_cap, version_2)
2529
2679
  {
2530
2680
  //There is not enough memory, allocate a new
2531
2681
  //buffer or expand the old one.
@@ -2549,38 +2699,24 @@ private:
2549
2699
  #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
2550
2700
  ++this->num_expand_bwd;
2551
2701
  #endif
2552
- this->priv_forward_range_insert_expand_backwards
2553
- ( new_mem , real_cap, ins_pos, 0, this->priv_dummy_empty_proxy());
2702
+ this->priv_insert_forward_range_expand_backwards
2703
+ ( new_mem, real_cap, ins_pos, 0, this->priv_dummy_empty_proxy());
2554
2704
  }
2555
2705
  else{ //New buffer
2556
2706
  #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
2557
2707
  ++this->num_alloc;
2558
2708
  #endif
2559
- this->priv_forward_range_insert_new_allocation
2709
+ this->priv_insert_forward_range_new_allocation
2560
2710
  ( new_mem, real_cap, ins_pos, 0, this->priv_dummy_empty_proxy());
2561
2711
  }
2562
2712
  }
2563
2713
  }
2564
2714
 
2565
- void priv_destroy_last(const bool moved = false) BOOST_NOEXCEPT_OR_NOTHROW
2566
- {
2567
- (void)moved;
2568
- const bool skip_destructor = value_traits::trivial_dctr || (value_traits::trivial_dctr_after_move && moved);
2569
- if(!skip_destructor){
2570
- value_type* const p = this->priv_raw_end() - 1;
2571
- allocator_traits_type::destroy(this->get_stored_allocator(), p);
2572
- }
2573
- --this->m_holder.m_size;
2574
- }
2575
-
2576
2715
  void priv_destroy_last_n(const size_type n) BOOST_NOEXCEPT_OR_NOTHROW
2577
2716
  {
2578
2717
  BOOST_ASSERT(n <= this->m_holder.m_size);
2579
- if(!value_traits::trivial_dctr){
2580
- T* const destroy_pos = this->priv_raw_begin() + (this->m_holder.m_size-n);
2581
- boost::container::destroy_alloc_n(this->get_stored_allocator(), destroy_pos, n);
2582
- }
2583
- this->m_holder.m_size -= n;
2718
+ boost::container::destroy_alloc_n(this->get_stored_allocator(), this->priv_raw_end() - n, n);
2719
+ this->m_holder.dec_stored_size(n);
2584
2720
  }
2585
2721
 
2586
2722
  template<class InpIt>
@@ -2588,7 +2724,7 @@ private:
2588
2724
  {
2589
2725
  T* const old_end_pos = this->priv_raw_end();
2590
2726
  T* const new_end_pos = boost::container::uninitialized_copy_alloc(this->m_holder.alloc(), first, last, old_end_pos);
2591
- this->m_holder.m_size += new_end_pos - old_end_pos;
2727
+ this->m_holder.inc_stored_size(static_cast<size_type>(new_end_pos - old_end_pos));
2592
2728
  }
2593
2729
 
2594
2730
  void priv_destroy_all() BOOST_NOEXCEPT_OR_NOTHROW
@@ -2599,57 +2735,32 @@ private:
2599
2735
  }
2600
2736
 
2601
2737
  template<class U>
2602
- iterator priv_insert(const const_iterator &p, BOOST_FWD_REF(U) x)
2738
+ BOOST_CONTAINER_FORCEINLINE iterator priv_insert(const const_iterator &p, BOOST_FWD_REF(U) u)
2603
2739
  {
2604
- BOOST_ASSERT(this->priv_in_range_or_end(p));
2605
- return this->priv_forward_range_insert
2606
- ( vector_iterator_get_ptr(p), 1, dtl::get_insert_value_proxy<T*, allocator_type>(::boost::forward<U>(x)));
2740
+ return this->emplace(p, ::boost::forward<U>(u));
2607
2741
  }
2608
2742
 
2609
- BOOST_CONTAINER_FORCEINLINE dtl::insert_copy_proxy<allocator_type, T*> priv_single_insert_proxy(const T &x)
2610
- { return dtl::insert_copy_proxy<allocator_type, T*> (x); }
2611
-
2612
- BOOST_CONTAINER_FORCEINLINE dtl::insert_move_proxy<allocator_type, T*> priv_single_insert_proxy(BOOST_RV_REF(T) x)
2613
- { return dtl::insert_move_proxy<allocator_type, T*> (x); }
2614
-
2615
2743
  template <class U>
2616
- void priv_push_back(BOOST_FWD_REF(U) u)
2744
+ BOOST_CONTAINER_FORCEINLINE void priv_push_back(BOOST_FWD_REF(U) u)
2617
2745
  {
2618
- if (BOOST_LIKELY(this->room_enough())){
2619
- //There is more memory, just construct a new object at the end
2620
- allocator_traits_type::construct
2621
- ( this->m_holder.alloc(), this->priv_raw_end(), ::boost::forward<U>(u) );
2622
- ++this->m_holder.m_size;
2623
- }
2624
- else{
2625
- this->priv_forward_range_insert_no_capacity
2626
- ( this->back_ptr(), 1
2627
- , this->priv_single_insert_proxy(::boost::forward<U>(u)), alloc_version());
2628
- }
2746
+ this->emplace_back(::boost::forward<U>(u));
2629
2747
  }
2630
2748
 
2631
- BOOST_CONTAINER_FORCEINLINE dtl::insert_n_copies_proxy<allocator_type, T*> priv_resize_proxy(const T &x)
2632
- { return dtl::insert_n_copies_proxy<allocator_type, T*>(x); }
2749
+ //Overload to support compiler errors that instantiate too much
2750
+ BOOST_CONTAINER_FORCEINLINE void priv_push_back(::boost::move_detail::nat)
2751
+ {}
2633
2752
 
2634
- BOOST_CONTAINER_FORCEINLINE dtl::insert_default_initialized_n_proxy<allocator_type, T*> priv_resize_proxy(default_init_t)
2635
- { return dtl::insert_default_initialized_n_proxy<allocator_type, T*>(); }
2753
+ BOOST_CONTAINER_FORCEINLINE iterator priv_insert(const_iterator, ::boost::move_detail::nat)
2754
+ { return iterator(); }
2636
2755
 
2637
- BOOST_CONTAINER_FORCEINLINE dtl::insert_value_initialized_n_proxy<allocator_type, T*> priv_resize_proxy(value_init_t)
2638
- { return dtl::insert_value_initialized_n_proxy<allocator_type, T*>(); }
2756
+ BOOST_CONTAINER_FORCEINLINE dtl::insert_n_copies_proxy<allocator_type> priv_resize_proxy(const T &x)
2757
+ { return dtl::insert_n_copies_proxy<allocator_type>(x); }
2639
2758
 
2640
- template <class U>
2641
- void priv_resize(size_type new_size, const U& u)
2642
- {
2643
- const size_type sz = this->size();
2644
- if (new_size < sz){
2645
- //Destroy last elements
2646
- this->priv_destroy_last_n(sz - new_size);
2647
- }
2648
- else{
2649
- const size_type n = new_size - this->size();
2650
- this->priv_forward_range_insert_at_end(n, this->priv_resize_proxy(u), alloc_version());
2651
- }
2652
- }
2759
+ BOOST_CONTAINER_FORCEINLINE dtl::insert_default_initialized_n_proxy<allocator_type> priv_resize_proxy(default_init_t)
2760
+ { return dtl::insert_default_initialized_n_proxy<allocator_type>(); }
2761
+
2762
+ BOOST_CONTAINER_FORCEINLINE dtl::insert_value_initialized_n_proxy<allocator_type> priv_resize_proxy(value_init_t)
2763
+ { return dtl::insert_value_initialized_n_proxy<allocator_type>(); }
2653
2764
 
2654
2765
  BOOST_CONTAINER_FORCEINLINE void priv_shrink_to_fit(version_0) BOOST_NOEXCEPT_OR_NOTHROW
2655
2766
  {}
@@ -2666,17 +2777,7 @@ private:
2666
2777
  this->m_holder.m_capacity = 0;
2667
2778
  }
2668
2779
  else if(sz < cp){
2669
- //Allocate a new buffer.
2670
- //Pass the hint so that allocators can take advantage of this.
2671
- pointer const p = this->m_holder.allocate(sz);
2672
-
2673
- //We will reuse insert code, so create a dummy input iterator
2674
- #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
2675
- ++this->num_alloc;
2676
- #endif
2677
- this->priv_forward_range_insert_new_allocation
2678
- ( boost::movelib::to_raw_pointer(p), sz
2679
- , this->priv_raw_begin(), 0, this->priv_dummy_empty_proxy());
2780
+ this->priv_move_to_new_buffer(sz, alloc_version());
2680
2781
  }
2681
2782
  }
2682
2783
  }
@@ -2707,20 +2808,18 @@ private:
2707
2808
  }
2708
2809
 
2709
2810
  template <class InsertionProxy>
2710
- iterator priv_forward_range_insert_no_capacity
2711
- (const pointer &pos, const size_type, const InsertionProxy , version_0)
2811
+ BOOST_CONTAINER_FORCEINLINE iterator priv_insert_forward_range_no_capacity
2812
+ (T * const, const size_type, const InsertionProxy , version_0)
2712
2813
  {
2713
- alloc_holder_t::on_capacity_overflow();
2714
- return iterator(pos);
2814
+ return alloc_holder_t::on_capacity_overflow(), iterator();
2715
2815
  }
2716
2816
 
2717
2817
  template <class InsertionProxy>
2718
- iterator priv_forward_range_insert_no_capacity
2719
- (const pointer &pos, const size_type n, const InsertionProxy insert_range_proxy, version_1)
2818
+ BOOST_CONTAINER_NOINLINE iterator priv_insert_forward_range_no_capacity
2819
+ (T *const raw_pos, const size_type n, const InsertionProxy insert_range_proxy, version_1)
2720
2820
  {
2721
2821
  //Check if we have enough memory or try to expand current memory
2722
- const size_type n_pos = pos - this->m_holder.start();
2723
- T *const raw_pos = boost::movelib::to_raw_pointer(pos);
2822
+ const size_type n_pos = static_cast<size_type>(raw_pos - this->priv_raw_begin());
2724
2823
 
2725
2824
  const size_type new_cap = this->m_holder.template next_capacity<growth_factor_type>(n);
2726
2825
  //Pass the hint so that allocators can take advantage of this.
@@ -2728,25 +2827,23 @@ private:
2728
2827
  #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
2729
2828
  ++this->num_alloc;
2730
2829
  #endif
2731
- this->priv_forward_range_insert_new_allocation
2732
- ( new_buf, new_cap, raw_pos, n, insert_range_proxy);
2733
- return iterator(this->m_holder.start() + n_pos);
2830
+ this->priv_insert_forward_range_new_allocation(new_buf, new_cap, raw_pos, n, insert_range_proxy);
2831
+ return iterator(this->m_holder.start() + difference_type(n_pos));
2734
2832
  }
2735
2833
 
2736
2834
  template <class InsertionProxy>
2737
- iterator priv_forward_range_insert_no_capacity
2738
- (const pointer &pos, const size_type n, const InsertionProxy insert_range_proxy, version_2)
2835
+ BOOST_CONTAINER_NOINLINE iterator priv_insert_forward_range_no_capacity
2836
+ (T *const raw_pos, const size_type n, const InsertionProxy insert_range_proxy, version_2)
2739
2837
  {
2740
2838
  //Check if we have enough memory or try to expand current memory
2741
- T *const raw_pos = boost::movelib::to_raw_pointer(pos);
2742
- const size_type n_pos = raw_pos - this->priv_raw_begin();
2839
+ const size_type n_pos = size_type(raw_pos - this->priv_raw_begin());
2743
2840
 
2744
2841
  //There is not enough memory, allocate a new
2745
2842
  //buffer or expand the old one.
2746
2843
  size_type real_cap = this->m_holder.template next_capacity<growth_factor_type>(n);
2747
2844
  pointer reuse(this->m_holder.start());
2748
2845
  pointer const ret (this->m_holder.allocation_command
2749
- (allocate_new | expand_fwd | expand_bwd, this->m_holder.m_size + n, real_cap, reuse));
2846
+ (allocate_new | expand_fwd | expand_bwd, size_type(this->m_holder.m_size + n), real_cap, reuse));
2750
2847
 
2751
2848
  //Buffer reallocated
2752
2849
  if(reuse){
@@ -2757,14 +2854,15 @@ private:
2757
2854
  #endif
2758
2855
  this->m_holder.capacity(real_cap);
2759
2856
  //Expand forward
2760
- this->priv_forward_range_insert_expand_forward(raw_pos, n, insert_range_proxy);
2857
+ this->priv_insert_forward_range_expand_forward
2858
+ (raw_pos, n, insert_range_proxy, dtl::bool_<dtl::is_single_value_proxy<InsertionProxy>::value>());
2761
2859
  }
2762
2860
  //Backwards (and possibly forward) expansion
2763
2861
  else{
2764
2862
  #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
2765
2863
  ++this->num_expand_bwd;
2766
2864
  #endif
2767
- this->priv_forward_range_insert_expand_backwards
2865
+ this->priv_insert_forward_range_expand_backwards
2768
2866
  (boost::movelib::to_raw_pointer(ret), real_cap, raw_pos, n, insert_range_proxy);
2769
2867
  }
2770
2868
  }
@@ -2773,54 +2871,61 @@ private:
2773
2871
  #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
2774
2872
  ++this->num_alloc;
2775
2873
  #endif
2776
- this->priv_forward_range_insert_new_allocation
2874
+ this->priv_insert_forward_range_new_allocation
2777
2875
  ( boost::movelib::to_raw_pointer(ret), real_cap, raw_pos, n, insert_range_proxy);
2778
2876
  }
2779
2877
 
2780
- return iterator(this->m_holder.start() + n_pos);
2878
+ return iterator(this->m_holder.start() + (difference_type)(n_pos));
2781
2879
  }
2782
2880
 
2783
2881
  template <class InsertionProxy>
2784
- iterator priv_forward_range_insert
2882
+ BOOST_CONTAINER_FORCEINLINE iterator priv_insert_forward_range
2785
2883
  (const pointer &pos, const size_type n, const InsertionProxy insert_range_proxy)
2786
2884
  {
2787
2885
  BOOST_ASSERT(this->m_holder.capacity() >= this->m_holder.m_size);
2886
+ T *const p = boost::movelib::to_raw_pointer(pos);
2788
2887
  //Check if we have enough memory or try to expand current memory
2789
- const size_type remaining = this->m_holder.capacity() - this->m_holder.m_size;
2790
-
2791
- bool same_buffer_start = n <= remaining;
2792
- if (!same_buffer_start){
2793
- return priv_forward_range_insert_no_capacity(pos, n, insert_range_proxy, alloc_version());
2888
+ if (BOOST_LIKELY(n <= (this->m_holder.capacity() - this->m_holder.m_size))){
2889
+ //Expand forward
2890
+ this->priv_insert_forward_range_expand_forward
2891
+ (p, n, insert_range_proxy, dtl::bool_<dtl::is_single_value_proxy<InsertionProxy>::value>());
2892
+ return iterator(pos);
2794
2893
  }
2795
2894
  else{
2796
- //Expand forward
2797
- T *const raw_pos = boost::movelib::to_raw_pointer(pos);
2798
- const size_type n_pos = raw_pos - this->priv_raw_begin();
2799
- this->priv_forward_range_insert_expand_forward(raw_pos, n, insert_range_proxy);
2800
- return iterator(this->m_holder.start() + n_pos);
2895
+ return this->priv_insert_forward_range_no_capacity(p, n, insert_range_proxy, alloc_version());
2801
2896
  }
2802
2897
  }
2803
2898
 
2804
- template <class InsertionProxy>
2805
- iterator priv_forward_range_insert_at_end
2806
- (const size_type n, const InsertionProxy insert_range_proxy, version_0)
2899
+ template <class U>
2900
+ void priv_resize(const size_type new_size, const U &u, version_0)
2807
2901
  {
2808
- //Check if we have enough memory or try to expand current memory
2809
- const size_type remaining = this->m_holder.capacity() - this->m_holder.m_size;
2810
-
2811
- if (n > remaining){
2902
+ const size_type sz = this->m_holder.m_size;
2903
+ if (new_size > this->capacity()){
2812
2904
  //This will trigger an error
2813
2905
  alloc_holder_t::on_capacity_overflow();
2814
2906
  }
2815
- this->priv_forward_range_insert_at_end_expand_forward(n, insert_range_proxy);
2816
- return this->end();
2907
+ else if (new_size < sz){
2908
+ //Destroy last elements
2909
+ this->priv_destroy_last_n(sz - new_size);
2910
+ }
2911
+ else{
2912
+ T* const old_finish = this->priv_raw_end();
2913
+ this->priv_resize_proxy(u).uninitialized_copy_n_and_update(this->m_holder.alloc(), old_finish, new_size - sz);
2914
+ this->m_holder.set_stored_size(new_size);
2915
+ }
2817
2916
  }
2818
2917
 
2819
- template <class InsertionProxy, class AllocVersion>
2820
- BOOST_CONTAINER_FORCEINLINE iterator priv_forward_range_insert_at_end
2821
- (const size_type n, const InsertionProxy insert_range_proxy, AllocVersion)
2918
+ template <class U, class AllocVersion>
2919
+ void priv_resize(const size_type new_size, const U &u, AllocVersion)
2822
2920
  {
2823
- return this->priv_forward_range_insert(this->back_ptr(), n, insert_range_proxy);
2921
+ const size_type sz = this->m_holder.m_size;
2922
+ if (new_size < sz){
2923
+ //Destroy last elements
2924
+ this->priv_destroy_last_n(size_type(sz - new_size));
2925
+ }
2926
+ else {
2927
+ this->priv_insert_forward_range(this->back_ptr(), size_type(new_size - sz), this->priv_resize_proxy(u));
2928
+ }
2824
2929
  }
2825
2930
 
2826
2931
  //Takes the range pointed by [first_pos, last_pos) and shifts it to the right
@@ -2895,7 +3000,9 @@ private:
2895
3000
  //All uninitialized_moved
2896
3001
  ::boost::container::uninitialized_move_alloc
2897
3002
  (this->m_holder.alloc(), first_ptr, last_ptr, first_ptr + shift_count);
2898
- hole_size = first_pos + shift_count - limit_pos;
3003
+ //Cast in case size_type is narrower than int, promotions are applied
3004
+ //and Wconversion is in place
3005
+ hole_size = static_cast<size_type>(first_pos + shift_count - limit_pos);
2899
3006
  }
2900
3007
  //Case C:
2901
3008
  else{
@@ -2916,420 +3023,86 @@ private:
2916
3023
  BOOST_CONTAINER_FORCEINLINE T* priv_raw_end() const
2917
3024
  { return this->priv_raw_begin() + this->m_holder.m_size; }
2918
3025
 
2919
- template <class InsertionProxy>
2920
- void priv_forward_range_insert_at_end_expand_forward(const size_type n, InsertionProxy insert_range_proxy)
2921
- {
2922
- T* const old_finish = this->priv_raw_end();
2923
- insert_range_proxy.uninitialized_copy_n_and_update(this->m_holder.alloc(), old_finish, n);
2924
- this->m_holder.m_size += n;
2925
- }
2926
-
2927
- template <class InsertionProxy>
2928
- void priv_forward_range_insert_expand_forward(T* const pos, const size_type n, InsertionProxy insert_range_proxy)
3026
+ template <class InsertionProxy> //inline single-element version as it is significantly smaller
3027
+ BOOST_CONTAINER_FORCEINLINE void priv_insert_forward_range_expand_forward
3028
+ (T* const raw_pos, const size_type, InsertionProxy insert_range_proxy, dtl::true_type)
2929
3029
  {
2930
- //n can't be 0, because there is nothing to do in that case
2931
- if(BOOST_UNLIKELY(!n)) return;
3030
+ BOOST_ASSERT(this->room_enough());
2932
3031
  //There is enough memory
2933
3032
  T* const old_finish = this->priv_raw_end();
2934
- const size_type elems_after = old_finish - pos;
3033
+ allocator_type & a = this->m_holder.alloc();
2935
3034
 
2936
- if (!elems_after){
2937
- insert_range_proxy.uninitialized_copy_n_and_update(this->m_holder.alloc(), old_finish, n);
2938
- this->m_holder.m_size += n;
3035
+ if (old_finish == raw_pos){
3036
+ insert_range_proxy.uninitialized_copy_n_and_update(a, old_finish, 1);
3037
+ ++this->m_holder.m_size;
2939
3038
  }
2940
- else if (elems_after >= n){
3039
+ else{
2941
3040
  //New elements can be just copied.
2942
3041
  //Move to uninitialized memory last objects
2943
- ::boost::container::uninitialized_move_alloc
2944
- (this->m_holder.alloc(), old_finish - n, old_finish, old_finish);
2945
- this->m_holder.m_size += n;
3042
+ T * const before_old_finish = old_finish-1;
3043
+
3044
+ allocator_traits_type::construct(a, old_finish, ::boost::move(*before_old_finish));
3045
+ ++this->m_holder.m_size;
2946
3046
  //Copy previous to last objects to the initialized end
2947
- boost::container::move_backward(pos, old_finish - n, old_finish);
2948
- //Insert new objects in the pos
2949
- insert_range_proxy.copy_n_and_update(this->m_holder.alloc(), pos, n);
2950
- }
2951
- else {
2952
- //The new elements don't fit in the [pos, end()) range.
2953
-
2954
- //Copy old [pos, end()) elements to the uninitialized memory (a gap is created)
2955
- ::boost::container::uninitialized_move_alloc(this->m_holder.alloc(), pos, old_finish, pos + n);
2956
- BOOST_TRY{
2957
- //Copy first new elements in pos (gap is still there)
2958
- insert_range_proxy.copy_n_and_update(this->m_holder.alloc(), pos, elems_after);
2959
- //Copy to the beginning of the unallocated zone the last new elements (the gap is closed).
2960
- insert_range_proxy.uninitialized_copy_n_and_update(this->m_holder.alloc(), old_finish, n - elems_after);
2961
- this->m_holder.m_size += n;
2962
- }
2963
- BOOST_CATCH(...){
2964
- boost::container::destroy_alloc_n(this->get_stored_allocator(), pos + n, elems_after);
2965
- BOOST_RETHROW
2966
- }
2967
- BOOST_CATCH_END
3047
+ boost::container::move_backward(raw_pos, before_old_finish, old_finish);
3048
+ //Insert new objects in the raw_pos
3049
+ insert_range_proxy.copy_n_and_update(a, raw_pos, 1);
2968
3050
  }
2969
3051
  }
2970
3052
 
2971
3053
  template <class InsertionProxy>
2972
- void priv_forward_range_insert_new_allocation
3054
+ BOOST_CONTAINER_FORCEINLINE void priv_insert_forward_range_expand_forward
3055
+ (T* const raw_pos, const size_type n, InsertionProxy insert_range_proxy, dtl::false_type)
3056
+ {
3057
+ //There is enough memory
3058
+ boost::container::expand_forward_and_insert_alloc
3059
+ ( this->m_holder.alloc(), raw_pos, this->priv_raw_end(), n, insert_range_proxy);
3060
+ this->m_holder.inc_stored_size(n);
3061
+ }
3062
+
3063
+ template <class InsertionProxy>
3064
+ void priv_insert_forward_range_new_allocation
2973
3065
  (T* const new_start, size_type new_cap, T* const pos, const size_type n, InsertionProxy insert_range_proxy)
2974
3066
  {
2975
3067
  //n can be zero, if we want to reallocate!
2976
- T *new_finish = new_start;
2977
- T *old_finish;
2978
- //Anti-exception rollbacks
2979
- typename value_traits::ArrayDeallocator new_buffer_deallocator(new_start, this->m_holder.alloc(), new_cap);
2980
- typename value_traits::ArrayDestructor new_values_destroyer(new_start, this->m_holder.alloc(), 0u);
2981
-
2982
- //Initialize with [begin(), pos) old buffer
2983
- //the start of the new buffer
2984
- T * const old_buffer = this->priv_raw_begin();
2985
- if(old_buffer){
2986
- new_finish = ::boost::container::uninitialized_move_alloc
2987
- (this->m_holder.alloc(), this->priv_raw_begin(), pos, old_finish = new_finish);
2988
- new_values_destroyer.increment_size(new_finish - old_finish);
2989
- }
2990
- //Initialize new objects, starting from previous point
2991
- old_finish = new_finish;
2992
- insert_range_proxy.uninitialized_copy_n_and_update(this->m_holder.alloc(), old_finish, n);
2993
- new_finish += n;
2994
- new_values_destroyer.increment_size(new_finish - old_finish);
2995
- //Initialize from the rest of the old buffer,
2996
- //starting from previous point
2997
- if(old_buffer){
2998
- new_finish = ::boost::container::uninitialized_move_alloc
2999
- (this->m_holder.alloc(), pos, old_buffer + this->m_holder.m_size, new_finish);
3000
- //Destroy and deallocate old elements
3001
- //If there is allocated memory, destroy and deallocate
3002
- if(!value_traits::trivial_dctr_after_move)
3003
- boost::container::destroy_alloc_n(this->get_stored_allocator(), old_buffer, this->m_holder.m_size);
3068
+ allocator_type &a = this->m_holder.alloc();
3069
+ T * const raw_old_buffer = this->priv_raw_begin();
3070
+
3071
+ typename value_traits::ArrayDeallocator new_buffer_deallocator(new_start, a, new_cap);
3072
+ boost::container::uninitialized_move_and_insert_alloc
3073
+ (a, raw_old_buffer, pos, this->priv_raw_end(), new_start, n, insert_range_proxy);
3074
+ new_buffer_deallocator.release();
3075
+
3076
+ //Destroy and deallocate old elements
3077
+ if(raw_old_buffer){
3078
+ BOOST_IF_CONSTEXPR(!has_trivial_destructor_after_move<value_type>::value)
3079
+ boost::container::destroy_alloc_n(a, raw_old_buffer, this->m_holder.m_size);
3004
3080
  this->m_holder.deallocate(this->m_holder.start(), this->m_holder.capacity());
3005
3081
  }
3082
+
3006
3083
  this->m_holder.start(new_start);
3007
- this->m_holder.m_size = size_type(new_finish - new_start);
3084
+ this->m_holder.inc_stored_size(n);
3008
3085
  this->m_holder.capacity(new_cap);
3009
- //All construction successful, disable rollbacks
3010
- new_values_destroyer.release();
3011
- new_buffer_deallocator.release();
3012
3086
  }
3013
3087
 
3014
3088
  template <class InsertionProxy>
3015
- void priv_forward_range_insert_expand_backwards
3089
+ void priv_insert_forward_range_expand_backwards
3016
3090
  (T* const new_start, const size_type new_capacity,
3017
3091
  T* const pos, const size_type n, InsertionProxy insert_range_proxy)
3018
3092
  {
3019
- //n can be zero to just expand capacity
3020
- //Backup old data
3021
- T* const old_start = this->priv_raw_begin();
3093
+ T* const old_start = this->priv_raw_begin();
3022
3094
  const size_type old_size = this->m_holder.m_size;
3023
- T* const old_finish = old_start + old_size;
3024
-
3025
- //We can have 8 possibilities:
3026
- const size_type elemsbefore = static_cast<size_type>(pos - old_start);
3027
- const size_type s_before = static_cast<size_type>(old_start - new_start);
3028
- const size_type before_plus_new = elemsbefore + n;
3095
+ allocator_type& a = this->m_holder.alloc();
3029
3096
 
3030
3097
  //Update the vector buffer information to a safe state
3031
3098
  this->m_holder.start(new_start);
3032
3099
  this->m_holder.capacity(new_capacity);
3033
3100
  this->m_holder.m_size = 0;
3034
3101
 
3035
- //If anything goes wrong, this object will destroy
3036
- //all the old objects to fulfill previous vector state
3037
- typename value_traits::ArrayDestructor old_values_destroyer(old_start, this->m_holder.alloc(), old_size);
3038
- //Check if s_before is big enough to hold the beginning of old data + new data
3039
- if(s_before >= before_plus_new){
3040
- //Copy first old values before pos, after that the new objects
3041
- T *const new_elem_pos =
3042
- ::boost::container::uninitialized_move_alloc(this->m_holder.alloc(), old_start, pos, new_start);
3043
- this->m_holder.m_size = elemsbefore;
3044
- insert_range_proxy.uninitialized_copy_n_and_update(this->m_holder.alloc(), new_elem_pos, n);
3045
- this->m_holder.m_size = before_plus_new;
3046
- const size_type new_size = old_size + n;
3047
- //Check if s_before is so big that even copying the old data + new data
3048
- //there is a gap between the new data and the old data
3049
- if(s_before >= new_size){
3050
- //Old situation:
3051
- // _________________________________________________________
3052
- //| raw_mem | old_begin | old_end |
3053
- //| __________________________________|___________|_________|
3054
- //
3055
- //New situation:
3056
- // _________________________________________________________
3057
- //| old_begin | new | old_end | raw_mem |
3058
- //|___________|__________|_________|________________________|
3059
- //
3060
- //Now initialize the rest of memory with the last old values
3061
- if(before_plus_new != new_size){ //Special case to avoid operations in back insertion
3062
- ::boost::container::uninitialized_move_alloc
3063
- (this->m_holder.alloc(), pos, old_finish, new_start + before_plus_new);
3064
- //All new elements correctly constructed, avoid new element destruction
3065
- this->m_holder.m_size = new_size;
3066
- }
3067
- //Old values destroyed automatically with "old_values_destroyer"
3068
- //when "old_values_destroyer" goes out of scope unless the have trivial
3069
- //destructor after move.
3070
- if(value_traits::trivial_dctr_after_move)
3071
- old_values_destroyer.release();
3072
- }
3073
- //s_before is so big that divides old_end
3074
- else{
3075
- //Old situation:
3076
- // __________________________________________________
3077
- //| raw_mem | old_begin | old_end |
3078
- //| ___________________________|___________|_________|
3079
- //
3080
- //New situation:
3081
- // __________________________________________________
3082
- //| old_begin | new | old_end | raw_mem |
3083
- //|___________|__________|_________|_________________|
3084
- //
3085
- //Now initialize the rest of memory with the last old values
3086
- //All new elements correctly constructed, avoid new element destruction
3087
- const size_type raw_gap = s_before - before_plus_new;
3088
- if(!value_traits::trivial_dctr){
3089
- //Now initialize the rest of s_before memory with the
3090
- //first of elements after new values
3091
- ::boost::container::uninitialized_move_alloc_n
3092
- (this->m_holder.alloc(), pos, raw_gap, new_start + before_plus_new);
3093
- //Now we have a contiguous buffer so program trailing element destruction
3094
- //and update size to the final size.
3095
- old_values_destroyer.shrink_forward(new_size-s_before);
3096
- this->m_holder.m_size = new_size;
3097
- //Now move remaining last objects in the old buffer begin
3098
- T * const remaining_pos = pos + raw_gap;
3099
- if(remaining_pos != old_start){ //Make sure data has to be moved
3100
- ::boost::container::move(remaining_pos, old_finish, old_start);
3101
- }
3102
- //Once moved, avoid calling the destructors if trivial after move
3103
- if(value_traits::trivial_dctr_after_move){
3104
- old_values_destroyer.release();
3105
- }
3106
- }
3107
- else{ //If trivial destructor, we can uninitialized copy + copy in a single uninitialized copy
3108
- ::boost::container::uninitialized_move_alloc_n
3109
- (this->m_holder.alloc(), pos, static_cast<size_type>(old_finish - pos), new_start + before_plus_new);
3110
- this->m_holder.m_size = new_size;
3111
- old_values_destroyer.release();
3112
- }
3113
- }
3114
- }
3115
- else{
3116
- //Check if we have to do the insertion in two phases
3117
- //since maybe s_before is not big enough and
3118
- //the buffer was expanded both sides
3119
- //
3120
- //Old situation:
3121
- // _________________________________________________
3122
- //| raw_mem | old_begin + old_end | raw_mem |
3123
- //|_________|_____________________|_________________|
3124
- //
3125
- //New situation with do_after:
3126
- // _________________________________________________
3127
- //| old_begin + new + old_end | raw_mem |
3128
- //|___________________________________|_____________|
3129
- //
3130
- //New without do_after:
3131
- // _________________________________________________
3132
- //| old_begin + new + old_end | raw_mem |
3133
- //|____________________________|____________________|
3134
- //
3135
- const bool do_after = n > s_before;
3136
-
3137
- //Now we can have two situations: the raw_mem of the
3138
- //beginning divides the old_begin, or the new elements:
3139
- if (s_before <= elemsbefore) {
3140
- //The raw memory divides the old_begin group:
3141
- //
3142
- //If we need two phase construction (do_after)
3143
- //new group is divided in new = new_beg + new_end groups
3144
- //In this phase only new_beg will be inserted
3145
- //
3146
- //Old situation:
3147
- // _________________________________________________
3148
- //| raw_mem | old_begin | old_end | raw_mem |
3149
- //|_________|___________|_________|_________________|
3150
- //
3151
- //New situation with do_after(1):
3152
- //This is not definitive situation, the second phase
3153
- //will include
3154
- // _________________________________________________
3155
- //| old_begin | new_beg | old_end | raw_mem |
3156
- //|___________|_________|_________|_________________|
3157
- //
3158
- //New situation without do_after:
3159
- // _________________________________________________
3160
- //| old_begin | new | old_end | raw_mem |
3161
- //|___________|_____|_________|_____________________|
3162
- //
3163
- //Copy the first part of old_begin to raw_mem
3164
- ::boost::container::uninitialized_move_alloc_n
3165
- (this->m_holder.alloc(), old_start, s_before, new_start);
3166
- //The buffer is all constructed until old_end,
3167
- //so program trailing destruction and assign final size
3168
- //if !do_after, s_before+n otherwise.
3169
- size_type new_1st_range;
3170
- if(do_after){
3171
- new_1st_range = s_before;
3172
- //release destroyer and update size
3173
- old_values_destroyer.release();
3174
- }
3175
- else{
3176
- new_1st_range = n;
3177
- if(value_traits::trivial_dctr_after_move)
3178
- old_values_destroyer.release();
3179
- else{
3180
- old_values_destroyer.shrink_forward(old_size - (s_before - n));
3181
- }
3182
- }
3183
- this->m_holder.m_size = old_size + new_1st_range;
3184
- //Now copy the second part of old_begin overwriting itself
3185
- T *const next = ::boost::container::move(old_start + s_before, pos, old_start);
3186
- //Now copy the new_beg elements
3187
- insert_range_proxy.copy_n_and_update(this->m_holder.alloc(), next, new_1st_range);
3188
-
3189
- //If there is no after work and the last old part needs to be moved to front, do it
3190
- if(!do_after && (n != s_before)){
3191
- //Now displace old_end elements
3192
- ::boost::container::move(pos, old_finish, next + new_1st_range);
3193
- }
3194
- }
3195
- else {
3196
- //If we have to expand both sides,
3197
- //we will play if the first new values so
3198
- //calculate the upper bound of new values
3199
-
3200
- //The raw memory divides the new elements
3201
- //
3202
- //If we need two phase construction (do_after)
3203
- //new group is divided in new = new_beg + new_end groups
3204
- //In this phase only new_beg will be inserted
3205
- //
3206
- //Old situation:
3207
- // _______________________________________________________
3208
- //| raw_mem | old_begin | old_end | raw_mem |
3209
- //|_______________|___________|_________|_________________|
3210
- //
3211
- //New situation with do_after():
3212
- // ____________________________________________________
3213
- //| old_begin | new_beg | old_end | raw_mem |
3214
- //|___________|_______________|_________|______________|
3215
- //
3216
- //New situation without do_after:
3217
- // ______________________________________________________
3218
- //| old_begin | new | old_end | raw_mem |
3219
- //|___________|_____|_________|__________________________|
3220
- //
3221
- //First copy whole old_begin and part of new to raw_mem
3222
- T * const new_pos = ::boost::container::uninitialized_move_alloc
3223
- (this->m_holder.alloc(), old_start, pos, new_start);
3224
- this->m_holder.m_size = elemsbefore;
3225
- const size_type mid_n = s_before - elemsbefore;
3226
- insert_range_proxy.uninitialized_copy_n_and_update(this->m_holder.alloc(), new_pos, mid_n);
3227
- //The buffer is all constructed until old_end,
3228
- //release destroyer
3229
- this->m_holder.m_size = old_size + s_before;
3230
- old_values_destroyer.release();
3231
-
3232
- if(do_after){
3233
- //Copy new_beg part
3234
- insert_range_proxy.copy_n_and_update(this->m_holder.alloc(), old_start, elemsbefore);
3235
- }
3236
- else{
3237
- //Copy all new elements
3238
- const size_type rest_new = n - mid_n;
3239
- insert_range_proxy.copy_n_and_update(this->m_holder.alloc(), old_start, rest_new);
3240
- T* const move_start = old_start + rest_new;
3241
- //Displace old_end, but make sure data has to be moved
3242
- T* const move_end = move_start != pos ? ::boost::container::move(pos, old_finish, move_start)
3243
- : old_finish;
3244
- //Destroy remaining moved elements from old_end except if they
3245
- //have trivial destructor after being moved
3246
- size_type n_destroy = s_before - n;
3247
- if(!value_traits::trivial_dctr_after_move)
3248
- boost::container::destroy_alloc_n(this->get_stored_allocator(), move_end, n_destroy);
3249
- this->m_holder.m_size -= n_destroy;
3250
- }
3251
- }
3102
+ expand_backward_forward_and_insert_alloc(old_start, old_size, new_start, pos, n, insert_range_proxy, a);
3252
3103
 
3253
- //This is only executed if two phase construction is needed
3254
- if(do_after){
3255
- //The raw memory divides the new elements
3256
- //
3257
- //Old situation:
3258
- // ______________________________________________________
3259
- //| raw_mem | old_begin | old_end | raw_mem |
3260
- //|______________|___________|____________|______________|
3261
- //
3262
- //New situation with do_after(1):
3263
- // _______________________________________________________
3264
- //| old_begin + new_beg | new_end |old_end | raw_mem |
3265
- //|__________________________|_________|________|_________|
3266
- //
3267
- //New situation with do_after(2):
3268
- // ______________________________________________________
3269
- //| old_begin + new | old_end |raw |
3270
- //|_______________________________________|_________|____|
3271
- //
3272
- const size_type n_after = n - s_before;
3273
- const size_type elemsafter = old_size - elemsbefore;
3274
-
3275
- //We can have two situations:
3276
- if (elemsafter >= n_after){
3277
- //The raw_mem from end will divide displaced old_end
3278
- //
3279
- //Old situation:
3280
- // ______________________________________________________
3281
- //| raw_mem | old_begin | old_end | raw_mem |
3282
- //|______________|___________|____________|______________|
3283
- //
3284
- //New situation with do_after(1):
3285
- // _______________________________________________________
3286
- //| old_begin + new_beg | new_end |old_end | raw_mem |
3287
- //|__________________________|_________|________|_________|
3288
- //
3289
- //First copy the part of old_end raw_mem
3290
- T* finish_n = old_finish - n_after;
3291
- ::boost::container::uninitialized_move_alloc
3292
- (this->m_holder.alloc(), finish_n, old_finish, old_finish);
3293
- this->m_holder.m_size += n_after;
3294
- //Displace the rest of old_end to the new position
3295
- boost::container::move_backward(pos, finish_n, old_finish);
3296
- //Now overwrite with new_end
3297
- //The new_end part is [first + (n - n_after), last)
3298
- insert_range_proxy.copy_n_and_update(this->m_holder.alloc(), pos, n_after);
3299
- }
3300
- else {
3301
- //The raw_mem from end will divide new_end part
3302
- //
3303
- //Old situation:
3304
- // _____________________________________________________________
3305
- //| raw_mem | old_begin | old_end | raw_mem |
3306
- //|______________|___________|____________|_____________________|
3307
- //
3308
- //New situation with do_after(2):
3309
- // _____________________________________________________________
3310
- //| old_begin + new_beg | new_end |old_end | raw_mem |
3311
- //|__________________________|_______________|________|_________|
3312
- //
3313
-
3314
- const size_type mid_last_dist = n_after - elemsafter;
3315
- //First initialize data in raw memory
3316
-
3317
- //Copy to the old_end part to the uninitialized zone leaving a gap.
3318
- ::boost::container::uninitialized_move_alloc
3319
- (this->m_holder.alloc(), pos, old_finish, old_finish + mid_last_dist);
3320
-
3321
- typename value_traits::ArrayDestructor old_end_destroyer
3322
- (old_finish + mid_last_dist, this->m_holder.alloc(), old_finish - pos);
3323
-
3324
- //Copy the first part to the already constructed old_end zone
3325
- insert_range_proxy.copy_n_and_update(this->m_holder.alloc(), pos, elemsafter);
3326
- //Copy the rest to the uninitialized zone filling the gap
3327
- insert_range_proxy.uninitialized_copy_n_and_update(this->m_holder.alloc(), old_finish, mid_last_dist);
3328
- this->m_holder.m_size += n_after;
3329
- old_end_destroyer.release();
3330
- }
3331
- }
3332
- }
3104
+ //Update the vector buffer information to a safe state
3105
+ this->m_holder.m_size = stored_size_type(old_size + n);
3333
3106
  }
3334
3107
 
3335
3108
  void priv_throw_if_out_of_range(size_type n) const
@@ -3366,11 +3139,11 @@ private:
3366
3139
 
3367
3140
  template <typename InputIterator>
3368
3141
  vector(InputIterator, InputIterator) ->
3369
- vector<typename iterator_traits<InputIterator>::value_type>;
3142
+ vector<typename iter_value<InputIterator>::type>;
3370
3143
 
3371
3144
  template <typename InputIterator, typename Allocator>
3372
3145
  vector(InputIterator, InputIterator, Allocator const&) ->
3373
- vector<typename iterator_traits<InputIterator>::value_type, Allocator>;
3146
+ vector<typename iter_value<InputIterator>::type, Allocator>;
3374
3147
 
3375
3148
  #endif
3376
3149
 
@@ -3394,6 +3167,20 @@ struct has_trivial_destructor_after_move<boost::container::vector<T, Allocator,
3394
3167
 
3395
3168
  }
3396
3169
 
3170
+ //See comments on vec_iterator::element_type to know why is this needed
3171
+ #ifdef BOOST_GNU_STDLIB
3172
+
3173
+ BOOST_MOVE_STD_NS_BEG
3174
+
3175
+ template <class Pointer, bool IsConst>
3176
+ struct pointer_traits< boost::container::vec_iterator<Pointer, IsConst> >
3177
+ : public boost::intrusive::pointer_traits< boost::container::vec_iterator<Pointer, IsConst> >
3178
+ {};
3179
+
3180
+ BOOST_MOVE_STD_NS_END
3181
+
3182
+ #endif //BOOST_GNU_STDLIB
3183
+
3397
3184
  #endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
3398
3185
 
3399
3186
  #include <boost/container/detail/config_end.hpp>