passenger 6.0.2 → 6.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2529) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +356 -19
  3. data/CONTRIBUTING.md +1 -1
  4. data/CONTRIBUTORS +17 -0
  5. data/README.md +2 -9
  6. data/bin/passenger-install-nginx-module +2 -1
  7. data/bin/passenger-memory-stats +65 -12
  8. data/bin/passenger-status +29 -4
  9. data/build/common_library.rb +6 -5
  10. data/build/packaging.rb +4 -2
  11. data/build/support/cxx_dependency_map.rb +1 -0
  12. data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder/builder.rb +56 -3
  13. data/build/test_basics.rb +2 -2
  14. data/dev/copy_boost_headers +50 -17
  15. data/dev/index_cxx_dependencies.rb +1 -1
  16. data/dev/webpacketpp.patch +39 -0
  17. data/doc/templates/markdown.html.erb +2 -6
  18. data/package.json +20 -18
  19. data/passenger.gemspec +9 -1
  20. data/resources/mime.types +1 -0
  21. data/resources/release.txt +1 -0
  22. data/resources/templates/config/installation_utils/user_support_binaries_dir_not_writable.txt.erb +1 -0
  23. data/resources/templates/error_renderer/with_details/dist/bundle.js +2 -33
  24. data/resources/templates/error_renderer/with_details/dist/styles.css +2 -2
  25. data/resources/templates/error_renderer/with_details/src/GetHelpView.jsx +1 -1
  26. data/resources/templates/error_renderer/with_details/src/bootstrap/bootstrap.css +0 -0
  27. data/resources/templates/error_renderer/with_details/src/bootstrap/bootstrap.js +0 -0
  28. data/resources/templates/error_renderer/with_details/src/bootstrap/config.json +0 -0
  29. data/resources/templates/error_renderer/with_details/src/index.html.template +0 -2
  30. data/resources/templates/error_renderer/with_details/webpack.config.js +13 -16
  31. data/resources/templates/error_renderer/without_details/dist/bundle.js +0 -1
  32. data/resources/templates/error_renderer/without_details/dist/styles.css +1 -1
  33. data/resources/templates/error_renderer/without_details/webpack.config.js +13 -16
  34. data/resources/templates/standalone/global.erb +4 -0
  35. data/resources/templates/standalone/http.erb +1 -0
  36. data/resources/templates/standalone/rails_asset_pipeline.erb +1 -1
  37. data/resources/templates/standalone/server.erb +2 -0
  38. data/src/agent/Core/AdminPanelConnector.h +1 -1
  39. data/src/agent/Core/ApiServer.h +35 -0
  40. data/src/agent/Core/ApplicationPool/Group/InternalUtils.cpp +2 -2
  41. data/src/agent/Core/ApplicationPool/Group/OutOfBandWork.cpp +1 -1
  42. data/src/agent/Core/ApplicationPool/Group/ProcessListManagement.cpp +1 -1
  43. data/src/agent/Core/ApplicationPool/Group/StateInspection.cpp +3 -0
  44. data/src/agent/Core/ApplicationPool/Group.h +1 -1
  45. data/src/agent/Core/ApplicationPool/Implementation.cpp +0 -1
  46. data/src/agent/Core/ApplicationPool/Options.h +26 -2
  47. data/src/agent/Core/ApplicationPool/Pool/GarbageCollection.cpp +1 -1
  48. data/src/agent/Core/ApplicationPool/Pool/ProcessUtils.cpp +1 -1
  49. data/src/agent/Core/ApplicationPool/Pool/StateInspection.cpp +1 -1
  50. data/src/agent/Core/ApplicationPool/Pool.h +10 -2
  51. data/src/agent/Core/Config.h +17 -2
  52. data/src/agent/Core/Controller/CheckoutSession.cpp +24 -13
  53. data/src/agent/Core/Controller/Config.h +15 -3
  54. data/src/agent/Core/Controller/ForwardResponse.cpp +13 -0
  55. data/src/agent/Core/Controller/InitRequest.cpp +7 -0
  56. data/src/agent/Core/Controller/InitializationAndShutdown.cpp +1 -0
  57. data/src/agent/Core/Controller/InternalUtils.cpp +32 -6
  58. data/src/agent/Core/Controller.h +5 -1
  59. data/src/agent/Core/CoreMain.cpp +1 -0
  60. data/src/agent/Core/OptionParser.h +7 -0
  61. data/src/agent/Core/SpawningKit/Config/AutoGeneratedCode.h +20 -0
  62. data/src/agent/Core/SpawningKit/Config.h +24 -0
  63. data/src/agent/Core/SpawningKit/Context.h +1 -0
  64. data/src/agent/Core/SpawningKit/Handshake/BackgroundIOCapturer.h +1 -1
  65. data/src/agent/Core/SpawningKit/Handshake/Perform.h +1 -1
  66. data/src/agent/Core/SpawningKit/Handshake/Prepare.h +5 -1
  67. data/src/agent/Core/SpawningKit/Handshake/WorkDir.h +5 -2
  68. data/src/agent/Core/SpawningKit/PipeWatcher.h +1 -1
  69. data/src/agent/Core/SpawningKit/SmartSpawner.h +1 -1
  70. data/src/agent/Core/SpawningKit/Spawner.h +3 -0
  71. data/src/agent/Core/TelemetryCollector.h +1 -1
  72. data/src/agent/Shared/ApiServerUtils.h +1 -1
  73. data/src/agent/Shared/ApplicationPoolApiKey.h +2 -0
  74. data/src/agent/SpawnEnvSetupper/SpawnEnvSetupperMain.cpp +27 -1
  75. data/src/agent/TempDirToucher/TempDirToucherMain.cpp +2 -0
  76. data/src/agent/Watchdog/Config.h +17 -1
  77. data/src/agent/Watchdog/InstanceDirToucher.cpp +1 -1
  78. data/src/agent/Watchdog/WatchdogMain.cpp +12 -1
  79. data/src/apache2_module/Config.cpp +1 -1
  80. data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp +46 -26
  81. data/src/apache2_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.cpp +20 -0
  82. data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp +59 -1
  83. data/src/apache2_module/DirConfig/AutoGeneratedCreateFunction.cpp +13 -0
  84. data/src/apache2_module/DirConfig/AutoGeneratedHeaderSerialization.cpp +9 -0
  85. data/src/apache2_module/DirConfig/AutoGeneratedManifestGeneration.cpp +37 -0
  86. data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp +21 -0
  87. data/src/apache2_module/DirConfig/AutoGeneratedStruct.h +53 -2
  88. data/src/apache2_module/Hooks.cpp +6 -0
  89. data/src/apache2_module/ServerConfig/AutoGeneratedManifestGeneration.cpp +11 -0
  90. data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h +31 -18
  91. data/src/cxx_supportlib/BackgroundEventLoop.cpp +5 -1
  92. data/src/cxx_supportlib/ConfigKit/Schema.h +1 -1
  93. data/src/cxx_supportlib/ConfigKit/Translator.h +1 -1
  94. data/src/cxx_supportlib/Constants.h +5 -3
  95. data/src/cxx_supportlib/DataStructures/HashedStaticString.h +2 -0
  96. data/src/cxx_supportlib/FileDescriptor.h +8 -0
  97. data/src/cxx_supportlib/FileTools/FileManip.cpp +10 -1
  98. data/src/cxx_supportlib/FileTools/FileManip.h +16 -0
  99. data/src/cxx_supportlib/Hooks.h +1 -0
  100. data/src/cxx_supportlib/IOTools/BufferedIO.h +1 -1
  101. data/src/cxx_supportlib/IOTools/IOUtils.cpp +4 -4
  102. data/src/cxx_supportlib/IOTools/MessageIO.h +1 -1
  103. data/src/cxx_supportlib/LoggingKit/Config.h +1 -0
  104. data/src/cxx_supportlib/LoggingKit/Context.h +1 -1
  105. data/src/cxx_supportlib/SafeLibev.h +3 -1
  106. data/src/cxx_supportlib/ServerKit/AcceptLoadBalancer.h +1 -1
  107. data/src/cxx_supportlib/ServerKit/HttpChunkedBodyParser.h +1 -1
  108. data/src/cxx_supportlib/StaticString.h +2 -0
  109. data/src/cxx_supportlib/SystemTools/ContainerHelpers.h +2 -2
  110. data/src/cxx_supportlib/SystemTools/ProcessMetricsCollector.h +1 -1
  111. data/src/cxx_supportlib/Utils/HttpConstants.h +1 -1
  112. data/src/cxx_supportlib/WebSocketCommandReverseServer.h +20 -19
  113. data/src/cxx_supportlib/oxt/dynamic_thread_group.hpp +5 -1
  114. data/src/cxx_supportlib/oxt/system_calls.cpp +10 -10
  115. data/src/cxx_supportlib/oxt/thread.hpp +1 -1
  116. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/compare.hpp +3 -3
  117. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/case_conv.hpp +5 -2
  118. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/classification.hpp +3 -1
  119. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/find_format_all.hpp +2 -0
  120. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/find_iterator.hpp +11 -3
  121. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/finder.hpp +15 -15
  122. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/formatter.hpp +1 -1
  123. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/trim.hpp +3 -3
  124. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/find_format.hpp +1 -2
  125. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/find_iterator.hpp +27 -1
  126. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/finder.hpp +0 -4
  127. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/formatter.hpp +0 -1
  128. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/iter_find.hpp +8 -0
  129. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/predicate.hpp +4 -3
  130. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/split.hpp +12 -0
  131. data/src/cxx_supportlib/vendor-modified/boost/align/align.hpp +19 -0
  132. data/src/cxx_supportlib/vendor-modified/boost/align/aligned_alloc.hpp +47 -0
  133. data/src/cxx_supportlib/vendor-modified/boost/align/alignment_of.hpp +54 -0
  134. data/src/cxx_supportlib/vendor-modified/boost/align/alignment_of_forward.hpp +20 -0
  135. data/src/cxx_supportlib/vendor-modified/boost/align/detail/align_cxx11.hpp +21 -0
  136. data/src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc.hpp +52 -0
  137. data/src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc_posix.hpp +41 -0
  138. data/src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc_sunos.hpp +34 -0
  139. data/src/cxx_supportlib/vendor-modified/boost/align/detail/alignment_of.hpp +31 -0
  140. data/src/cxx_supportlib/vendor-modified/boost/align/detail/alignment_of_cxx11.hpp +23 -0
  141. data/src/cxx_supportlib/vendor-modified/boost/align/detail/element_type.hpp +91 -0
  142. data/src/cxx_supportlib/vendor-modified/boost/align/detail/integral_constant.hpp +53 -0
  143. data/src/cxx_supportlib/vendor-modified/boost/align/detail/is_alignment.hpp +28 -0
  144. data/src/cxx_supportlib/vendor-modified/boost/align/detail/min_size.hpp +26 -0
  145. data/src/cxx_supportlib/vendor-modified/boost/array.hpp +2 -3
  146. data/src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp +305 -0
  147. data/src/cxx_supportlib/vendor-modified/boost/asio/append.hpp +80 -0
  148. data/src/cxx_supportlib/vendor-modified/boost/asio/as_tuple.hpp +141 -0
  149. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_allocator.hpp +54 -8
  150. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_cancellation_slot.hpp +180 -0
  151. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_executor.hpp +96 -23
  152. data/src/cxx_supportlib/vendor-modified/boost/asio/associator.hpp +37 -0
  153. data/src/cxx_supportlib/vendor-modified/boost/asio/async_result.hpp +1478 -72
  154. data/src/cxx_supportlib/vendor-modified/boost/asio/awaitable.hpp +144 -0
  155. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +665 -309
  156. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +206 -119
  157. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_file.hpp +831 -0
  158. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_io_object.hpp +1 -1
  159. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_random_access_file.hpp +703 -0
  160. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +668 -311
  161. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_readable_pipe.hpp +637 -0
  162. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +380 -163
  163. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +420 -108
  164. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +273 -66
  165. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +427 -237
  166. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +1266 -501
  167. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_iostream.hpp +21 -44
  168. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_streambuf.hpp +15 -35
  169. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_file.hpp +756 -0
  170. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +501 -233
  171. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf.hpp +1 -1
  172. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf_fwd.hpp +1 -1
  173. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +250 -122
  174. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_writable_pipe.hpp +633 -0
  175. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_allocator.hpp +724 -0
  176. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_cancellation_slot.hpp +726 -0
  177. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_executor.hpp +212 -53
  178. data/src/cxx_supportlib/vendor-modified/boost/asio/buffer.hpp +680 -164
  179. data/src/cxx_supportlib/vendor-modified/boost/asio/buffer_registration.hpp +330 -0
  180. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream.hpp +55 -27
  181. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream_fwd.hpp +1 -1
  182. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream.hpp +60 -30
  183. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream_fwd.hpp +1 -1
  184. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream.hpp +55 -27
  185. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream_fwd.hpp +1 -1
  186. data/src/cxx_supportlib/vendor-modified/boost/asio/buffers_iterator.hpp +1 -1
  187. data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_signal.hpp +307 -0
  188. data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_state.hpp +237 -0
  189. data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_type.hpp +176 -0
  190. data/src/cxx_supportlib/vendor-modified/boost/asio/co_spawn.hpp +525 -0
  191. data/src/cxx_supportlib/vendor-modified/boost/asio/completion_condition.hpp +1 -1
  192. data/src/cxx_supportlib/vendor-modified/boost/asio/compose.hpp +808 -0
  193. data/src/cxx_supportlib/vendor-modified/boost/asio/connect.hpp +307 -159
  194. data/src/cxx_supportlib/vendor-modified/boost/asio/connect_pipe.hpp +85 -0
  195. data/src/cxx_supportlib/vendor-modified/boost/asio/coroutine.hpp +3 -3
  196. data/src/cxx_supportlib/vendor-modified/boost/asio/deadline_timer.hpp +1 -1
  197. data/src/cxx_supportlib/vendor-modified/boost/asio/defer.hpp +150 -41
  198. data/src/cxx_supportlib/vendor-modified/boost/asio/deferred.hpp +677 -0
  199. data/src/cxx_supportlib/vendor-modified/boost/asio/detached.hpp +115 -0
  200. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array.hpp +1 -1
  201. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array_fwd.hpp +1 -1
  202. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/assert.hpp +1 -1
  203. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/atomic_count.hpp +23 -1
  204. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_cancellation_state.hpp +165 -0
  205. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_completion_cond.hpp +4 -3
  206. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +354 -99
  207. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/blocking_executor_op.hpp +109 -0
  208. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_resize_guard.hpp +1 -1
  209. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_sequence_adapter.hpp +298 -1
  210. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffered_stream_storage.hpp +1 -1
  211. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bulk_executor_op.hpp +90 -0
  212. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/call_stack.hpp +1 -1
  213. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono.hpp +1 -1
  214. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono_time_traits.hpp +1 -1
  215. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_handler.hpp +11 -6
  216. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/concurrency_hint.hpp +1 -1
  217. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_event.hpp +9 -1
  218. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_mutex.hpp +1 -1
  219. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +938 -212
  220. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/consuming_buffers.hpp +38 -1
  221. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstddef.hpp +1 -1
  222. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstdint.hpp +3 -1
  223. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/date_time_fwd.hpp +1 -1
  224. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/deadline_timer_service.hpp +69 -12
  225. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dependent_type.hpp +1 -1
  226. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_ops.hpp +65 -7
  227. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_read_op.hpp +38 -16
  228. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_write_op.hpp +38 -16
  229. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dev_poll_reactor.hpp +18 -6
  230. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/epoll_reactor.hpp +18 -6
  231. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/event.hpp +1 -1
  232. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/eventfd_select_interrupter.hpp +2 -2
  233. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/exception.hpp +42 -0
  234. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_function.hpp +206 -0
  235. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_op.hpp +1 -1
  236. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fd_set_adapter.hpp +1 -1
  237. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fenced_block.hpp +1 -1
  238. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/functional.hpp +7 -1
  239. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/future.hpp +33 -0
  240. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_arm_fenced_block.hpp +1 -1
  241. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_hppa_fenced_block.hpp +1 -1
  242. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_sync_fenced_block.hpp +1 -1
  243. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_x86_fenced_block.hpp +2 -2
  244. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/global.hpp +1 -1
  245. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +63 -10
  246. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_cont_helpers.hpp +1 -1
  247. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_invoke_helpers.hpp +24 -1
  248. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_tracking.hpp +27 -1
  249. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_type_requirements.hpp +22 -19
  250. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_work.hpp +465 -35
  251. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/hash_map.hpp +1 -1
  252. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/buffer_sequence_adapter.ipp +1 -1
  253. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +543 -84
  254. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.hpp +21 -1
  255. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.ipp +15 -1
  256. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.hpp +21 -1
  257. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.ipp +31 -1
  258. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/eventfd_select_interrupter.ipp +20 -14
  259. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +40 -2
  260. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_descriptor_service.ipp +207 -0
  261. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_file_service.ipp +142 -0
  262. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.hpp +114 -0
  263. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.ipp +882 -0
  264. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_socket_service_base.ipp +251 -0
  265. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.hpp +21 -1
  266. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.ipp +35 -2
  267. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/null_event.ipp +1 -1
  268. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/pipe_select_interrupter.ipp +11 -6
  269. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_event.ipp +8 -4
  270. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_mutex.ipp +1 -1
  271. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/{reactive_serial_port_service.ipp → posix_serial_port_service.ipp} +52 -36
  272. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_thread.ipp +1 -1
  273. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_tss_ptr.ipp +1 -1
  274. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_descriptor_service.ipp +13 -5
  275. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_socket_service_base.ipp +9 -7
  276. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/resolver_service_base.ipp +37 -33
  277. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/scheduler.ipp +109 -6
  278. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.hpp +25 -1
  279. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.ipp +62 -3
  280. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.hpp +1 -1
  281. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.ipp +1 -1
  282. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/signal_set_service.ipp +129 -25
  283. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_ops.ipp +746 -348
  284. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_select_interrupter.ipp +18 -9
  285. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.hpp +200 -25
  286. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.ipp +25 -1
  287. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.hpp +7 -38
  288. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.ipp +34 -9
  289. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/thread_context.ipp +37 -0
  290. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/throw_error.ipp +10 -6
  291. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_ptime.ipp +7 -1
  292. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_set.ipp +1 -1
  293. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_control.hpp +1 -1
  294. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_object_impl.hpp +183 -0
  295. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_at_op.hpp +194 -0
  296. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_op.hpp +189 -0
  297. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_service.hpp +681 -0
  298. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_at_op.hpp +188 -0
  299. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_op.hpp +184 -0
  300. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_file_service.hpp +264 -0
  301. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_null_buffers_op.hpp +115 -0
  302. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_operation.hpp +86 -0
  303. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_service.hpp +320 -0
  304. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_accept_op.hpp +283 -0
  305. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_connect_op.hpp +141 -0
  306. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recv_op.hpp +204 -0
  307. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvfrom_op.hpp +205 -0
  308. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvmsg_op.hpp +191 -0
  309. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_send_op.hpp +190 -0
  310. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_sendto_op.hpp +193 -0
  311. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service.hpp +633 -0
  312. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service_base.hpp +665 -0
  313. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_wait_op.hpp +113 -0
  314. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_buffer_sequence.hpp +117 -18
  315. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_executor.hpp +1 -1
  316. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/keyword_tss_ptr.hpp +1 -1
  317. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/kqueue_reactor.hpp +19 -7
  318. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/local_free_on_block_exit.hpp +1 -1
  319. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/macos_fenced_block.hpp +1 -1
  320. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +80 -1
  321. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/mutex.hpp +1 -1
  322. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/non_const_lvalue.hpp +56 -0
  323. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/noncopyable.hpp +1 -1
  324. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_event.hpp +7 -1
  325. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_fenced_block.hpp +1 -1
  326. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_global.hpp +1 -1
  327. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_mutex.hpp +1 -5
  328. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_reactor.hpp +19 -4
  329. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_signal_blocker.hpp +1 -1
  330. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_socket_service.hpp +63 -52
  331. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_static_mutex.hpp +1 -1
  332. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_thread.hpp +1 -1
  333. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_tss_ptr.hpp +1 -1
  334. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/object_pool.hpp +1 -1
  335. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/old_win_sdk_compat.hpp +1 -1
  336. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/op_queue.hpp +1 -1
  337. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/operation.hpp +1 -1
  338. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pipe_select_interrupter.hpp +2 -2
  339. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pop_options.hpp +30 -8
  340. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_event.hpp +15 -2
  341. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_fd_set_adapter.hpp +1 -1
  342. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_global.hpp +1 -1
  343. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_mutex.hpp +1 -1
  344. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/{reactive_serial_port_service.hpp → posix_serial_port_service.hpp} +42 -29
  345. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_signal_blocker.hpp +1 -1
  346. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_static_mutex.hpp +1 -1
  347. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_thread.hpp +1 -1
  348. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_tss_ptr.hpp +1 -1
  349. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/push_options.hpp +60 -7
  350. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_descriptor_service.hpp +179 -37
  351. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_null_buffers_op.hpp +15 -7
  352. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_accept_op.hpp +57 -28
  353. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_connect_op.hpp +22 -10
  354. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recv_op.hpp +45 -19
  355. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvfrom_op.hpp +44 -16
  356. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvmsg_op.hpp +28 -13
  357. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_send_op.hpp +50 -20
  358. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_sendto_op.hpp +45 -17
  359. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service.hpp +189 -82
  360. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service_base.hpp +191 -49
  361. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_wait_op.hpp +15 -7
  362. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor.hpp +29 -5
  363. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op.hpp +8 -2
  364. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op_queue.hpp +45 -1
  365. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/recycling_allocator.hpp +17 -16
  366. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/regex_fwd.hpp +11 -2
  367. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_endpoint_op.hpp +33 -15
  368. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_op.hpp +1 -1
  369. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_query_op.hpp +32 -16
  370. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service.hpp +24 -22
  371. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service_base.hpp +37 -19
  372. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler.hpp +36 -8
  373. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_operation.hpp +1 -1
  374. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_task.hpp +51 -0
  375. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_thread_info.hpp +1 -1
  376. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_lock.hpp +1 -1
  377. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_ptr.hpp +1 -1
  378. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_interrupter.hpp +1 -1
  379. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_reactor.hpp +41 -5
  380. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/service_registry.hpp +1 -1
  381. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_blocker.hpp +1 -1
  382. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_handler.hpp +11 -7
  383. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_init.hpp +1 -1
  384. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_op.hpp +5 -1
  385. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_set_service.hpp +80 -14
  386. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_holder.hpp +1 -1
  387. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_ops.hpp +71 -33
  388. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_option.hpp +1 -1
  389. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_select_interrupter.hpp +2 -2
  390. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_types.hpp +2 -1
  391. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/solaris_fenced_block.hpp +1 -1
  392. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/source_location.hpp +47 -0
  393. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/static_mutex.hpp +1 -1
  394. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_event.hpp +13 -1
  395. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_fenced_block.hpp +1 -1
  396. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_global.hpp +1 -1
  397. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_mutex.hpp +1 -1
  398. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_static_mutex.hpp +1 -1
  399. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_thread.hpp +1 -1
  400. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_executor_service.hpp +33 -2
  401. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_service.hpp +8 -6
  402. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/string_view.hpp +1 -1
  403. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread.hpp +5 -5
  404. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_context.hpp +10 -1
  405. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_group.hpp +11 -1
  406. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_info_base.hpp +164 -25
  407. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_error.hpp +18 -9
  408. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_exception.hpp +7 -3
  409. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue.hpp +33 -2
  410. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_base.hpp +1 -1
  411. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_ptime.hpp +5 -1
  412. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_set.hpp +1 -1
  413. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler.hpp +3 -1
  414. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler_fwd.hpp +3 -1
  415. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/tss_ptr.hpp +1 -1
  416. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/type_traits.hpp +81 -3
  417. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/utility.hpp +86 -0
  418. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/variadic_templates.hpp +177 -2
  419. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_handler.hpp +13 -8
  420. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_op.hpp +6 -2
  421. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/winsock_init.hpp +1 -1
  422. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/work_dispatcher.hpp +90 -9
  423. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wrapped_handler.hpp +46 -10
  424. data/src/cxx_supportlib/vendor-modified/boost/asio/dispatch.hpp +144 -47
  425. data/src/cxx_supportlib/vendor-modified/boost/asio/error.hpp +30 -1
  426. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp +339 -0
  427. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/any_executor.hpp +2353 -0
  428. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bad_executor.hpp +49 -0
  429. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking.hpp +1553 -0
  430. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking_adaptation.hpp +1214 -0
  431. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_execute.hpp +401 -0
  432. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_guarantee.hpp +1217 -0
  433. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/connect.hpp +493 -0
  434. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context.hpp +235 -0
  435. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context_as.hpp +223 -0
  436. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_invocable.hpp +154 -0
  437. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_operation.hpp +107 -0
  438. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_receiver.hpp +130 -0
  439. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/bulk_sender.hpp +263 -0
  440. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/submit_receiver.hpp +235 -0
  441. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/void_receiver.hpp +92 -0
  442. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/execute.hpp +289 -0
  443. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp +254 -0
  444. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/bad_executor.ipp +42 -0
  445. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/receiver_invocation_error.ipp +38 -0
  446. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/invocable_archetype.hpp +73 -0
  447. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/mapping.hpp +1118 -0
  448. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/occupancy.hpp +228 -0
  449. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/operation_state.hpp +96 -0
  450. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/outstanding_work.hpp +869 -0
  451. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/prefer_only.hpp +333 -0
  452. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver.hpp +282 -0
  453. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver_invocation_error.hpp +50 -0
  454. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/relationship.hpp +867 -0
  455. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/schedule.hpp +291 -0
  456. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/scheduler.hpp +88 -0
  457. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/sender.hpp +313 -0
  458. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_done.hpp +254 -0
  459. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_error.hpp +254 -0
  460. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_value.hpp +487 -0
  461. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/start.hpp +251 -0
  462. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/submit.hpp +454 -0
  463. data/src/cxx_supportlib/vendor-modified/boost/asio/execution.hpp +48 -0
  464. data/src/cxx_supportlib/vendor-modified/boost/asio/execution_context.hpp +3 -2
  465. data/src/cxx_supportlib/vendor-modified/boost/asio/executor.hpp +8 -2
  466. data/src/cxx_supportlib/vendor-modified/boost/asio/executor_work_guard.hpp +235 -35
  467. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/append.hpp +38 -0
  468. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_single.hpp +138 -0
  469. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_tuple.hpp +38 -0
  470. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/awaitable_operators.hpp +538 -0
  471. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_channel.hpp +493 -0
  472. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_concurrent_channel.hpp +493 -0
  473. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/cancellation_condition.hpp +157 -0
  474. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel.hpp +72 -0
  475. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_error.hpp +88 -0
  476. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_traits.hpp +233 -0
  477. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_spawn.hpp +138 -177
  478. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/concurrent_channel.hpp +72 -0
  479. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro.hpp +265 -0
  480. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro_traits.hpp +230 -0
  481. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/deferred.hpp +38 -0
  482. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_handler.hpp +72 -0
  483. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_message.hpp +124 -0
  484. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_operation.hpp +201 -0
  485. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_payload.hpp +95 -0
  486. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_receive_op.hpp +114 -0
  487. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_functions.hpp +134 -0
  488. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_op.hpp +142 -0
  489. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_service.hpp +499 -0
  490. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/completion_handler_erasure.hpp +196 -0
  491. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_promise_allocator.hpp +120 -0
  492. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/has_signature.hpp +56 -0
  493. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/impl/channel_service.hpp +611 -0
  494. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/partial_promise.hpp +180 -0
  495. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_single.hpp +231 -0
  496. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/channel_error.ipp +63 -0
  497. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/coro.hpp +1197 -0
  498. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/parallel_group.hpp +420 -0
  499. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/promise.hpp +104 -0
  500. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_coro.hpp +270 -0
  501. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/parallel_group.hpp +207 -0
  502. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/prepend.hpp +38 -0
  503. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/promise.hpp +230 -0
  504. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_coro.hpp +171 -0
  505. data/src/cxx_supportlib/vendor-modified/boost/asio/file_base.hpp +168 -0
  506. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/basic_endpoint.hpp +2 -2
  507. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/datagram_protocol.hpp +4 -4
  508. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/endpoint.hpp +1 -1
  509. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/impl/endpoint.ipp +1 -1
  510. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/raw_protocol.hpp +4 -4
  511. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/seq_packet_protocol.hpp +4 -4
  512. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/stream_protocol.hpp +4 -4
  513. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_alloc_hook.hpp +29 -6
  514. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_continuation_hook.hpp +1 -1
  515. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_invoke_hook.hpp +30 -4
  516. data/src/cxx_supportlib/vendor-modified/boost/asio/high_resolution_timer.hpp +1 -1
  517. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_io_executor.ipp +131 -0
  518. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/append.hpp +218 -0
  519. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/as_tuple.hpp +246 -0
  520. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/awaitable.hpp +1157 -0
  521. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +187 -108
  522. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +181 -104
  523. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/cancellation_signal.ipp +98 -0
  524. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/co_spawn.hpp +412 -0
  525. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/compose.hpp +709 -0
  526. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +394 -317
  527. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.hpp +75 -0
  528. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.ipp +151 -0
  529. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/defer.hpp +219 -30
  530. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/deferred.hpp +97 -0
  531. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/detached.hpp +132 -0
  532. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/dispatch.hpp +214 -31
  533. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/error.ipp +1 -1
  534. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.hpp +8 -6
  535. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.ipp +1 -1
  536. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.hpp +16 -102
  537. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.ipp +6 -1
  538. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/handler_alloc_hook.ipp +19 -9
  539. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.hpp +220 -115
  540. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.ipp +4 -3
  541. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/multiple_exceptions.ipp +51 -0
  542. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/post.hpp +219 -30
  543. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/prepend.hpp +218 -0
  544. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +766 -236
  545. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +286 -173
  546. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +2420 -545
  547. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/redirect_error.hpp +611 -0
  548. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.hpp +1 -1
  549. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.ipp +1 -1
  550. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +1319 -293
  551. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +15 -2
  552. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.hpp +1 -1
  553. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.ipp +25 -6
  554. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_executor.hpp +114 -14
  555. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.hpp +266 -39
  556. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.ipp +73 -8
  557. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_awaitable.hpp +303 -0
  558. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +131 -41
  559. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +703 -232
  560. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +256 -162
  561. data/src/cxx_supportlib/vendor-modified/boost/asio/io_context.hpp +727 -56
  562. data/src/cxx_supportlib/vendor-modified/boost/asio/io_context_strand.hpp +58 -54
  563. data/src/cxx_supportlib/vendor-modified/boost/asio/io_service.hpp +1 -1
  564. data/src/cxx_supportlib/vendor-modified/boost/asio/io_service_strand.hpp +1 -1
  565. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address.hpp +57 -27
  566. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4.hpp +126 -26
  567. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_iterator.hpp +1 -1
  568. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_range.hpp +1 -1
  569. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6.hpp +119 -39
  570. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_iterator.hpp +1 -1
  571. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_range.hpp +1 -1
  572. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/bad_address_cast.hpp +7 -2
  573. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_endpoint.hpp +51 -23
  574. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver.hpp +347 -223
  575. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_entry.hpp +1 -1
  576. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_iterator.hpp +1 -1
  577. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_query.hpp +1 -1
  578. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_results.hpp +5 -5
  579. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/endpoint.hpp +21 -19
  580. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/impl/endpoint.ipp +10 -10
  581. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/socket_option.hpp +1 -1
  582. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/host_name.hpp +1 -1
  583. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/icmp.hpp +7 -7
  584. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.hpp +1 -1
  585. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.ipp +23 -18
  586. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.hpp +1 -1
  587. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.ipp +11 -11
  588. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.hpp +1 -1
  589. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.ipp +27 -27
  590. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/basic_endpoint.hpp +1 -1
  591. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/host_name.ipp +1 -1
  592. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.hpp +1 -1
  593. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.ipp +1 -1
  594. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.hpp +1 -1
  595. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.ipp +1 -1
  596. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/multicast.hpp +8 -8
  597. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v4.hpp +2 -2
  598. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v6.hpp +1 -1
  599. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_base.hpp +1 -1
  600. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_query_base.hpp +1 -1
  601. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/tcp.hpp +9 -9
  602. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/udp.hpp +7 -7
  603. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/unicast.hpp +3 -3
  604. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/v6_only.hpp +4 -4
  605. data/src/cxx_supportlib/vendor-modified/boost/asio/is_applicable_property.hpp +63 -0
  606. data/src/cxx_supportlib/vendor-modified/boost/asio/is_contiguous_iterator.hpp +47 -0
  607. data/src/cxx_supportlib/vendor-modified/boost/asio/is_executor.hpp +1 -1
  608. data/src/cxx_supportlib/vendor-modified/boost/asio/is_read_buffered.hpp +1 -1
  609. data/src/cxx_supportlib/vendor-modified/boost/asio/is_write_buffered.hpp +1 -1
  610. data/src/cxx_supportlib/vendor-modified/boost/asio/local/basic_endpoint.hpp +10 -2
  611. data/src/cxx_supportlib/vendor-modified/boost/asio/local/connect_pair.hpp +14 -19
  612. data/src/cxx_supportlib/vendor-modified/boost/asio/local/datagram_protocol.hpp +4 -4
  613. data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/endpoint.hpp +7 -1
  614. data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/impl/endpoint.ipp +10 -8
  615. data/src/cxx_supportlib/vendor-modified/boost/asio/local/stream_protocol.hpp +4 -4
  616. data/src/cxx_supportlib/vendor-modified/boost/asio/multiple_exceptions.hpp +60 -0
  617. data/src/cxx_supportlib/vendor-modified/boost/asio/packaged_task.hpp +4 -4
  618. data/src/cxx_supportlib/vendor-modified/boost/asio/placeholders.hpp +1 -1
  619. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +278 -79
  620. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +287 -80
  621. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor.hpp +5 -612
  622. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor_base.hpp +2 -2
  623. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/stream_descriptor.hpp +3 -326
  624. data/src/cxx_supportlib/vendor-modified/boost/asio/post.hpp +146 -41
  625. data/src/cxx_supportlib/vendor-modified/boost/asio/prefer.hpp +738 -0
  626. data/src/cxx_supportlib/vendor-modified/boost/asio/prepend.hpp +80 -0
  627. data/src/cxx_supportlib/vendor-modified/boost/asio/query.hpp +328 -0
  628. data/src/cxx_supportlib/vendor-modified/boost/asio/random_access_file.hpp +37 -0
  629. data/src/cxx_supportlib/vendor-modified/boost/asio/read.hpp +696 -163
  630. data/src/cxx_supportlib/vendor-modified/boost/asio/read_at.hpp +184 -60
  631. data/src/cxx_supportlib/vendor-modified/boost/asio/read_until.hpp +1795 -453
  632. data/src/cxx_supportlib/vendor-modified/boost/asio/readable_pipe.hpp +37 -0
  633. data/src/cxx_supportlib/vendor-modified/boost/asio/recycling_allocator.hpp +140 -0
  634. data/src/cxx_supportlib/vendor-modified/boost/asio/{experimental/redirect_error.hpp → redirect_error.hpp} +11 -12
  635. data/src/cxx_supportlib/vendor-modified/boost/asio/registered_buffer.hpp +358 -0
  636. data/src/cxx_supportlib/vendor-modified/boost/asio/require.hpp +575 -0
  637. data/src/cxx_supportlib/vendor-modified/boost/asio/require_concept.hpp +356 -0
  638. data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port.hpp +3 -736
  639. data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port_base.hpp +1 -1
  640. data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set.hpp +3 -422
  641. data/src/cxx_supportlib/vendor-modified/boost/asio/socket_base.hpp +26 -26
  642. data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +661 -93
  643. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context.hpp +7 -1
  644. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context_base.hpp +18 -1
  645. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/buffered_handshake_op.hpp +7 -2
  646. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/engine.hpp +14 -1
  647. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/handshake_op.hpp +7 -2
  648. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/engine.ipp +69 -10
  649. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/openssl_init.ipp +6 -2
  650. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +87 -34
  651. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_init.hpp +1 -1
  652. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_types.hpp +5 -1
  653. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/password_callback.hpp +1 -1
  654. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/read_op.hpp +7 -2
  655. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/shutdown_op.hpp +17 -2
  656. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/stream_core.hpp +93 -6
  657. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/verify_callback.hpp +1 -1
  658. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/write_op.hpp +12 -3
  659. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/error.hpp +21 -7
  660. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/host_name_verification.hpp +92 -0
  661. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.hpp +1 -1
  662. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.ipp +237 -75
  663. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/error.ipp +27 -3
  664. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/host_name_verification.ipp +75 -0
  665. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/rfc2818_verification.ipp +5 -1
  666. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/src.hpp +2 -1
  667. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/rfc2818_verification.hpp +7 -3
  668. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream.hpp +437 -125
  669. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream_base.hpp +1 -1
  670. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_context.hpp +1 -1
  671. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_mode.hpp +1 -1
  672. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl.hpp +2 -1
  673. data/src/cxx_supportlib/vendor-modified/boost/asio/static_thread_pool.hpp +33 -0
  674. data/src/cxx_supportlib/vendor-modified/boost/asio/steady_timer.hpp +1 -1
  675. data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +307 -13
  676. data/src/cxx_supportlib/vendor-modified/boost/asio/stream_file.hpp +37 -0
  677. data/src/cxx_supportlib/vendor-modified/boost/asio/streambuf.hpp +1 -1
  678. data/src/cxx_supportlib/vendor-modified/boost/asio/system_context.hpp +16 -4
  679. data/src/cxx_supportlib/vendor-modified/boost/asio/system_executor.hpp +580 -25
  680. data/src/cxx_supportlib/vendor-modified/boost/asio/system_timer.hpp +1 -1
  681. data/src/cxx_supportlib/vendor-modified/boost/asio/this_coro.hpp +282 -0
  682. data/src/cxx_supportlib/vendor-modified/boost/asio/thread_pool.hpp +946 -38
  683. data/src/cxx_supportlib/vendor-modified/boost/asio/time_traits.hpp +1 -1
  684. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/bulk_execute_free.hpp +116 -0
  685. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/bulk_execute_member.hpp +116 -0
  686. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/connect_free.hpp +114 -0
  687. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/connect_member.hpp +114 -0
  688. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/equality_comparable.hpp +106 -0
  689. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_free.hpp +110 -0
  690. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_member.hpp +110 -0
  691. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_free.hpp +110 -0
  692. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_member.hpp +110 -0
  693. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_free.hpp +110 -0
  694. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_member.hpp +110 -0
  695. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_static_constexpr_member.hpp +110 -0
  696. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_free.hpp +110 -0
  697. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_member.hpp +110 -0
  698. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_free.hpp +110 -0
  699. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_member.hpp +110 -0
  700. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/schedule_free.hpp +110 -0
  701. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/schedule_member.hpp +110 -0
  702. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_done_free.hpp +110 -0
  703. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_done_member.hpp +110 -0
  704. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_error_free.hpp +114 -0
  705. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_error_member.hpp +114 -0
  706. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_value_free.hpp +236 -0
  707. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_value_member.hpp +236 -0
  708. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/start_free.hpp +110 -0
  709. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/start_member.hpp +110 -0
  710. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_query.hpp +110 -0
  711. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require.hpp +125 -0
  712. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require_concept.hpp +126 -0
  713. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/submit_free.hpp +114 -0
  714. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/submit_member.hpp +114 -0
  715. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/buffer.hpp +1 -1
  716. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/executor.hpp +2 -2
  717. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/internet.hpp +1 -1
  718. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/io_context.hpp +1 -1
  719. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/net.hpp +1 -1
  720. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/netfwd.hpp +93 -36
  721. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/socket.hpp +1 -1
  722. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/timer.hpp +1 -1
  723. data/src/cxx_supportlib/vendor-modified/boost/asio/unyield.hpp +1 -1
  724. data/src/cxx_supportlib/vendor-modified/boost/asio/use_awaitable.hpp +169 -0
  725. data/src/cxx_supportlib/vendor-modified/boost/asio/use_future.hpp +13 -9
  726. data/src/cxx_supportlib/vendor-modified/boost/asio/uses_executor.hpp +1 -1
  727. data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +2 -2
  728. data/src/cxx_supportlib/vendor-modified/boost/asio/wait_traits.hpp +1 -1
  729. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_object_handle.hpp +357 -46
  730. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_overlapped_handle.hpp +462 -0
  731. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_random_access_handle.hpp +287 -84
  732. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_stream_handle.hpp +287 -85
  733. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/object_handle.hpp +3 -346
  734. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/overlapped_handle.hpp +4 -296
  735. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/overlapped_ptr.hpp +38 -9
  736. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/random_access_handle.hpp +3 -344
  737. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/stream_handle.hpp +3 -328
  738. data/src/cxx_supportlib/vendor-modified/boost/asio/writable_pipe.hpp +37 -0
  739. data/src/cxx_supportlib/vendor-modified/boost/asio/write.hpp +670 -159
  740. data/src/cxx_supportlib/vendor-modified/boost/asio/write_at.hpp +187 -59
  741. data/src/cxx_supportlib/vendor-modified/boost/asio/yield.hpp +1 -1
  742. data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +73 -17
  743. data/src/cxx_supportlib/vendor-modified/boost/assert/source_location.hpp +189 -0
  744. data/src/cxx_supportlib/vendor-modified/boost/atomic/atomic.hpp +184 -11
  745. data/src/cxx_supportlib/vendor-modified/boost/atomic/atomic_flag.hpp +12 -3
  746. data/src/cxx_supportlib/vendor-modified/boost/atomic/atomic_ref.hpp +98 -0
  747. data/src/cxx_supportlib/vendor-modified/boost/atomic/capabilities.hpp +2 -191
  748. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/addressof.hpp +8 -1
  749. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/aligned_variable.hpp +57 -0
  750. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/atomic_flag_impl.hpp +129 -0
  751. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{atomic_template.hpp → atomic_impl.hpp} +473 -456
  752. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/atomic_ref_impl.hpp +1226 -0
  753. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/bitwise_cast.hpp +99 -11
  754. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/bitwise_fp_cast.hpp +43 -11
  755. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/capabilities.hpp +217 -0
  756. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_gcc_aarch32.hpp +53 -0
  757. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_gcc_aarch64.hpp +65 -0
  758. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{caps_gcc_alpha.hpp → caps_arch_gcc_alpha.hpp} +4 -4
  759. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{hwcaps_gcc_arm.hpp → caps_arch_gcc_arm.hpp} +44 -8
  760. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{hwcaps_gcc_ppc.hpp → caps_arch_gcc_ppc.hpp} +19 -6
  761. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{caps_gcc_sparc.hpp → caps_arch_gcc_sparc.hpp} +4 -4
  762. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{hwcaps_gcc_x86.hpp → caps_arch_gcc_x86.hpp} +22 -6
  763. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{caps_msvc_arm.hpp → caps_arch_msvc_arm.hpp} +4 -4
  764. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{caps_msvc_x86.hpp → caps_arch_msvc_x86.hpp} +12 -6
  765. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_atomic.hpp +100 -75
  766. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp +0 -7
  767. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/cas_based_exchange.hpp +50 -0
  768. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/classify.hpp +90 -0
  769. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/config.hpp +64 -22
  770. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_operations.hpp +50 -0
  771. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_operations_fwd.hpp +38 -0
  772. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_aarch32.hpp +1121 -0
  773. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_aarch64.hpp +1909 -0
  774. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{ops_gcc_alpha.hpp → core_arch_ops_gcc_alpha.hpp} +280 -289
  775. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{ops_gcc_arm.hpp → core_arch_ops_gcc_arm.hpp} +467 -447
  776. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{ops_gcc_ppc.hpp → core_arch_ops_gcc_ppc.hpp} +180 -194
  777. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{ops_gcc_sparc.hpp → core_arch_ops_gcc_sparc.hpp} +33 -58
  778. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{ops_gcc_x86_dcas.hpp → core_arch_ops_gcc_x86.hpp} +520 -32
  779. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{ops_msvc_arm.hpp → core_arch_ops_msvc_arm.hpp} +62 -58
  780. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{ops_msvc_x86.hpp → core_arch_ops_msvc_x86.hpp} +69 -101
  781. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_operations.hpp +49 -0
  782. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_operations_emulated.hpp +195 -0
  783. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_operations_emulated_fwd.hpp +38 -0
  784. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_operations_fwd.hpp +38 -0
  785. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{ops_cas_based.hpp → core_ops_cas_based.hpp} +9 -22
  786. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_ops_gcc_atomic.hpp +306 -0
  787. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{ops_gcc_sync.hpp → core_ops_gcc_sync.hpp} +75 -52
  788. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{ops_linux_arm.hpp → core_ops_linux_arm.hpp} +32 -43
  789. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_ops_windows.hpp +201 -0
  790. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{ops_extending_cas_based.hpp → extending_cas_based_arithmetic.hpp} +12 -9
  791. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_fp_operations_fwd.hpp +4 -1
  792. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_fp_ops_emulated.hpp +23 -12
  793. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_fp_ops_generic.hpp +13 -10
  794. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_operations_fwd.hpp +4 -1
  795. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_emulated.hpp +60 -40
  796. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_aarch32.hpp +1060 -0
  797. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_aarch64.hpp +1330 -0
  798. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_arm.hpp +363 -355
  799. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_ppc.hpp +167 -163
  800. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_x86.hpp +232 -102
  801. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_generic.hpp +9 -17
  802. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_msvc_arm.hpp +6 -4
  803. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_msvc_x86.hpp +119 -92
  804. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_operations.hpp +41 -0
  805. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_gcc_aarch32.hpp +60 -0
  806. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_gcc_aarch64.hpp +58 -0
  807. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_gcc_alpha.hpp +53 -0
  808. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_gcc_arm.hpp +90 -0
  809. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_gcc_ppc.hpp +68 -0
  810. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_gcc_sparc.hpp +70 -0
  811. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_gcc_x86.hpp +69 -0
  812. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_msvc_arm.hpp +66 -0
  813. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_msvc_x86.hpp +66 -0
  814. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_operations.hpp +41 -0
  815. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_operations_emulated.hpp +50 -0
  816. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_ops_gcc_atomic.hpp +75 -0
  817. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_ops_gcc_sync.hpp +53 -0
  818. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_ops_linux_arm.hpp +64 -0
  819. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_ops_windows.hpp +67 -0
  820. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/footer.hpp +24 -0
  821. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fp_operations_fwd.hpp +4 -1
  822. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fp_ops_emulated.hpp +14 -8
  823. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fp_ops_generic.hpp +6 -3
  824. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/futex.hpp +154 -0
  825. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/gcc_arm_asm_common.hpp +79 -0
  826. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/gcc_atomic_memory_order_utils.hpp +66 -0
  827. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/gcc_ppc_asm_common.hpp +33 -0
  828. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/header.hpp +72 -0
  829. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/int_sizes.hpp +25 -1
  830. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/{integral_extend.hpp → integral_conversions.hpp} +8 -5
  831. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/interlocked.hpp +35 -11
  832. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/intptr.hpp +46 -0
  833. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/lock_pool.hpp +151 -0
  834. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/memory_order_utils.hpp +47 -0
  835. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/once_flag.hpp +43 -0
  836. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_aarch32_common.hpp +53 -0
  837. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_aarch64_common.hpp +53 -0
  838. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_arm_common.hpp +8 -79
  839. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_ppc_common.hpp +4 -1
  840. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_msvc_common.hpp +7 -2
  841. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/pause.hpp +23 -5
  842. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/platform.hpp +80 -34
  843. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/storage_traits.hpp +187 -0
  844. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/alignment_of.hpp +51 -0
  845. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/has_unique_object_representations.hpp +143 -0
  846. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_enum.hpp +42 -0
  847. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_floating_point.hpp +3 -2
  848. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_nothrow_default_constructible.hpp +46 -0
  849. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_trivially_copyable.hpp +45 -0
  850. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_capabilities.hpp +363 -0
  851. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_caps_darwin_ulock.hpp +58 -0
  852. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_caps_dragonfly_umtx.hpp +30 -0
  853. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_caps_freebsd_umtx.hpp +40 -0
  854. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_caps_futex.hpp +31 -0
  855. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_caps_windows.hpp +57 -0
  856. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_on_address.hpp +65 -0
  857. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_operations.hpp +28 -0
  858. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_operations_fwd.hpp +43 -0
  859. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_darwin_ulock.hpp +158 -0
  860. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_dragonfly_umtx.hpp +75 -0
  861. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_emulated.hpp +97 -0
  862. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_freebsd_umtx.hpp +119 -0
  863. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_futex.hpp +111 -0
  864. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_generic.hpp +143 -0
  865. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_windows.hpp +179 -0
  866. data/src/cxx_supportlib/vendor-modified/boost/atomic/fences.hpp +7 -18
  867. data/src/cxx_supportlib/vendor-modified/boost/atomic/ipc_atomic.hpp +91 -0
  868. data/src/cxx_supportlib/vendor-modified/boost/atomic/ipc_atomic_flag.hpp +40 -0
  869. data/src/cxx_supportlib/vendor-modified/boost/atomic/ipc_atomic_ref.hpp +98 -0
  870. data/src/cxx_supportlib/vendor-modified/boost/atomic.hpp +9 -0
  871. data/src/cxx_supportlib/vendor-modified/boost/bind/apply.hpp +13 -0
  872. data/src/cxx_supportlib/vendor-modified/boost/bind/bind.hpp +15 -35
  873. data/src/cxx_supportlib/vendor-modified/boost/bind/bind_mf2_cc.hpp +18 -18
  874. data/src/cxx_supportlib/vendor-modified/boost/bind/bind_template.hpp +1 -1
  875. data/src/cxx_supportlib/vendor-modified/boost/bind/detail/result_traits.hpp +164 -0
  876. data/src/cxx_supportlib/vendor-modified/boost/bind/mem_fn.hpp +25 -11
  877. data/src/cxx_supportlib/vendor-modified/boost/bind/mem_fn_cc.hpp +18 -18
  878. data/src/cxx_supportlib/vendor-modified/boost/bind/placeholders.hpp +13 -1
  879. data/src/cxx_supportlib/vendor-modified/boost/bind/protect.hpp +52 -8
  880. data/src/cxx_supportlib/vendor-modified/boost/bind/std_placeholders.hpp +39 -0
  881. data/src/cxx_supportlib/vendor-modified/boost/bind/storage.hpp +1 -1
  882. data/src/cxx_supportlib/vendor-modified/boost/cerrno.hpp +4 -320
  883. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/mac/chrono.hpp +10 -10
  884. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/mac/process_cpu_clocks.hpp +34 -34
  885. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/mac/thread_clock.hpp +4 -4
  886. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/posix/chrono.hpp +34 -14
  887. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/posix/process_cpu_clocks.hpp +27 -27
  888. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/posix/thread_clock.hpp +4 -4
  889. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/system.hpp +5 -4
  890. data/src/cxx_supportlib/vendor-modified/boost/chrono/duration.hpp +6 -3
  891. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_io.hpp +1 -1
  892. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_style.hpp +1 -1
  893. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/time_point_io.hpp +2 -2
  894. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/timezone.hpp +2 -1
  895. data/src/cxx_supportlib/vendor-modified/boost/chrono/system_clocks.hpp +2 -2
  896. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/base.hpp +178 -167
  897. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/details.hpp +34 -46
  898. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/space_optimized.hpp +32 -38
  899. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp +12 -9
  900. data/src/cxx_supportlib/vendor-modified/boost/concept/assert.hpp +2 -2
  901. data/src/cxx_supportlib/vendor-modified/boost/concept/detail/general.hpp +24 -3
  902. data/src/cxx_supportlib/vendor-modified/boost/concept/detail/has_constraints.hpp +3 -3
  903. data/src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp +8 -1
  904. data/src/cxx_supportlib/vendor-modified/boost/concept_check.hpp +20 -20
  905. data/src/cxx_supportlib/vendor-modified/boost/config/abi_prefix.hpp +1 -1
  906. data/src/cxx_supportlib/vendor-modified/boost/config/abi_suffix.hpp +1 -3
  907. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx03.hpp +211 -0
  908. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx11.hpp +209 -0
  909. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx14.hpp +47 -0
  910. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx17.hpp +62 -0
  911. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx20.hpp +59 -0
  912. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx98.hpp +23 -0
  913. data/src/cxx_supportlib/vendor-modified/boost/config/auto_link.hpp +78 -19
  914. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/borland.hpp +9 -3
  915. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang.hpp +20 -1
  916. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang_version.hpp +77 -0
  917. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/codegear.hpp +159 -10
  918. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/comeau.hpp +1 -1
  919. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/common_edg.hpp +37 -11
  920. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/cray.hpp +373 -52
  921. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/digitalmars.hpp +6 -1
  922. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc.hpp +28 -8
  923. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc_xml.hpp +5 -0
  924. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/greenhills.hpp +1 -1
  925. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/hp_acc.hpp +2 -1
  926. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/intel.hpp +13 -1
  927. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/kai.hpp +1 -1
  928. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/metrowerks.hpp +6 -1
  929. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/mpw.hpp +6 -1
  930. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/nvcc.hpp +6 -3
  931. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/pathscale.hpp +5 -0
  932. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/sunpro_cc.hpp +5 -0
  933. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/vacpp.hpp +6 -1
  934. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/visualc.hpp +35 -9
  935. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/xlcpp.hpp +10 -0
  936. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/xlcpp_zos.hpp +3 -0
  937. data/src/cxx_supportlib/vendor-modified/boost/config/detail/cxx_composite.hpp +203 -0
  938. data/src/cxx_supportlib/vendor-modified/boost/config/detail/select_compiler_config.hpp +1 -2
  939. data/src/cxx_supportlib/vendor-modified/boost/config/detail/select_platform_config.hpp +5 -0
  940. data/src/cxx_supportlib/vendor-modified/boost/config/detail/select_stdlib_config.hpp +13 -2
  941. data/src/cxx_supportlib/vendor-modified/boost/config/detail/suffix.hpp +214 -5
  942. data/src/cxx_supportlib/vendor-modified/boost/config/platform/bsd.hpp +5 -8
  943. data/src/cxx_supportlib/vendor-modified/boost/config/platform/cygwin.hpp +3 -0
  944. data/src/cxx_supportlib/vendor-modified/boost/config/platform/vxworks.hpp +63 -74
  945. data/src/cxx_supportlib/vendor-modified/boost/config/platform/wasm.hpp +23 -0
  946. data/src/cxx_supportlib/vendor-modified/boost/config/requires_threads.hpp +1 -1
  947. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/dinkumware.hpp +44 -10
  948. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libcomo.hpp +1 -0
  949. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libcpp.hpp +42 -4
  950. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libstdcpp3.hpp +125 -9
  951. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/modena.hpp +1 -0
  952. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/msl.hpp +1 -0
  953. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/roguewave.hpp +2 -1
  954. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/sgi.hpp +1 -0
  955. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/stlport.hpp +6 -5
  956. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/vacpp.hpp +1 -0
  957. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/xlcpp_zos.hpp +1 -0
  958. data/src/cxx_supportlib/vendor-modified/boost/config/user.hpp +2 -2
  959. data/src/cxx_supportlib/vendor-modified/boost/config/workaround.hpp +26 -0
  960. data/src/cxx_supportlib/vendor-modified/boost/container/adaptive_pool.hpp +284 -10
  961. data/src/cxx_supportlib/vendor-modified/boost/container/allocator.hpp +31 -22
  962. data/src/cxx_supportlib/vendor-modified/boost/container/allocator_traits.hpp +29 -4
  963. data/src/cxx_supportlib/vendor-modified/boost/container/container_fwd.hpp +121 -29
  964. data/src/cxx_supportlib/vendor-modified/boost/container/deque.hpp +384 -272
  965. data/src/cxx_supportlib/vendor-modified/boost/container/detail/adaptive_node_pool.hpp +24 -21
  966. data/src/cxx_supportlib/vendor-modified/boost/container/detail/adaptive_node_pool_impl.hpp +836 -460
  967. data/src/cxx_supportlib/vendor-modified/boost/container/detail/addressof.hpp +2 -10
  968. data/src/cxx_supportlib/vendor-modified/boost/container/detail/advanced_insert_int.hpp +146 -65
  969. data/src/cxx_supportlib/vendor-modified/boost/container/detail/algorithm.hpp +28 -0
  970. data/src/cxx_supportlib/vendor-modified/boost/container/detail/alloc_helpers.hpp +6 -6
  971. data/src/cxx_supportlib/vendor-modified/boost/container/detail/alloc_lib.h +4 -4
  972. data/src/cxx_supportlib/vendor-modified/boost/container/detail/allocator_version_traits.hpp +2 -1
  973. data/src/cxx_supportlib/vendor-modified/boost/container/detail/block_list.hpp +2 -1
  974. data/src/cxx_supportlib/vendor-modified/boost/container/detail/block_slist.hpp +2 -1
  975. data/src/cxx_supportlib/vendor-modified/boost/container/detail/compare_functors.hpp +73 -13
  976. data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_begin.hpp +0 -3
  977. data/src/cxx_supportlib/vendor-modified/boost/container/detail/construct_in_place.hpp +17 -15
  978. data/src/cxx_supportlib/vendor-modified/boost/container/detail/container_or_allocator_rebind.hpp +4 -0
  979. data/src/cxx_supportlib/vendor-modified/boost/container/detail/container_rebind.hpp +21 -116
  980. data/src/cxx_supportlib/vendor-modified/boost/container/detail/copy_move_algo.hpp +250 -113
  981. data/src/cxx_supportlib/vendor-modified/boost/container/detail/destroyers.hpp +149 -53
  982. data/src/cxx_supportlib/vendor-modified/boost/container/detail/dispatch_uses_allocator.hpp +41 -39
  983. data/src/cxx_supportlib/vendor-modified/boost/container/detail/flat_tree.hpp +318 -159
  984. data/src/cxx_supportlib/vendor-modified/boost/container/detail/guards_dended.hpp +198 -0
  985. data/src/cxx_supportlib/vendor-modified/boost/container/detail/hash_table.hpp +1278 -0
  986. data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_container.hpp +17 -0
  987. data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_contiguous_container.hpp +35 -0
  988. data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_pair.hpp +91 -0
  989. data/src/cxx_supportlib/vendor-modified/boost/container/detail/iterator.hpp +22 -0
  990. data/src/cxx_supportlib/vendor-modified/boost/container/detail/iterators.hpp +182 -147
  991. data/src/cxx_supportlib/vendor-modified/boost/container/detail/math_functions.hpp +54 -0
  992. data/src/cxx_supportlib/vendor-modified/boost/container/detail/mpl.hpp +60 -2
  993. data/src/cxx_supportlib/vendor-modified/boost/container/detail/multiallocation_chain.hpp +40 -31
  994. data/src/cxx_supportlib/vendor-modified/boost/container/detail/mutex.hpp +4 -15
  995. data/src/cxx_supportlib/vendor-modified/boost/container/detail/next_capacity.hpp +24 -3
  996. data/src/cxx_supportlib/vendor-modified/boost/container/detail/node_alloc_holder.hpp +331 -144
  997. data/src/cxx_supportlib/vendor-modified/boost/container/detail/node_pool.hpp +2 -2
  998. data/src/cxx_supportlib/vendor-modified/boost/container/detail/node_pool_impl.hpp +2 -1
  999. data/src/cxx_supportlib/vendor-modified/boost/container/detail/pair.hpp +142 -94
  1000. data/src/cxx_supportlib/vendor-modified/boost/container/detail/placement_new.hpp +2 -0
  1001. data/src/cxx_supportlib/vendor-modified/boost/container/detail/pool_common_alloc.hpp +1 -1
  1002. data/src/cxx_supportlib/vendor-modified/boost/container/detail/pool_resource.hpp +3 -7
  1003. data/src/cxx_supportlib/vendor-modified/boost/container/detail/std_fwd.hpp +6 -0
  1004. data/src/cxx_supportlib/vendor-modified/boost/container/detail/thread_mutex.hpp +181 -0
  1005. data/src/cxx_supportlib/vendor-modified/boost/container/detail/transform_iterator.hpp +28 -28
  1006. data/src/cxx_supportlib/vendor-modified/boost/container/detail/tree.hpp +409 -329
  1007. data/src/cxx_supportlib/vendor-modified/boost/container/detail/type_traits.hpp +5 -0
  1008. data/src/cxx_supportlib/vendor-modified/boost/container/detail/value_functors.hpp +9 -13
  1009. data/src/cxx_supportlib/vendor-modified/boost/container/detail/variadic_templates_tools.hpp +1 -1
  1010. data/src/cxx_supportlib/vendor-modified/boost/container/detail/version_type.hpp +3 -12
  1011. data/src/cxx_supportlib/vendor-modified/boost/container/detail/workaround.hpp +50 -3
  1012. data/src/cxx_supportlib/vendor-modified/boost/container/devector.hpp +3028 -0
  1013. data/src/cxx_supportlib/vendor-modified/boost/container/flat_map.hpp +665 -186
  1014. data/src/cxx_supportlib/vendor-modified/boost/container/flat_set.hpp +311 -46
  1015. data/src/cxx_supportlib/vendor-modified/boost/container/list.hpp +142 -120
  1016. data/src/cxx_supportlib/vendor-modified/boost/container/map.hpp +524 -158
  1017. data/src/cxx_supportlib/vendor-modified/boost/container/new_allocator.hpp +27 -5
  1018. data/src/cxx_supportlib/vendor-modified/boost/container/node_allocator.hpp +4 -4
  1019. data/src/cxx_supportlib/vendor-modified/boost/container/node_handle.hpp +3 -3
  1020. data/src/cxx_supportlib/vendor-modified/boost/container/options.hpp +336 -2
  1021. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/devector.hpp +51 -0
  1022. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/flat_set.hpp +3 -3
  1023. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/global_resource.hpp +1 -4
  1024. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/memory_resource.hpp +35 -1
  1025. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/monotonic_buffer_resource.hpp +9 -6
  1026. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/polymorphic_allocator.hpp +8 -9
  1027. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/resource_adaptor.hpp +92 -8
  1028. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/synchronized_pool_resource.hpp +7 -6
  1029. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/unsynchronized_pool_resource.hpp +4 -4
  1030. data/src/cxx_supportlib/vendor-modified/boost/container/scoped_allocator.hpp +80 -80
  1031. data/src/cxx_supportlib/vendor-modified/boost/container/set.hpp +371 -106
  1032. data/src/cxx_supportlib/vendor-modified/boost/container/slist.hpp +136 -112
  1033. data/src/cxx_supportlib/vendor-modified/boost/container/small_vector.hpp +220 -185
  1034. data/src/cxx_supportlib/vendor-modified/boost/container/stable_vector.hpp +371 -225
  1035. data/src/cxx_supportlib/vendor-modified/boost/container/static_vector.hpp +218 -134
  1036. data/src/cxx_supportlib/vendor-modified/boost/container/string.hpp +535 -378
  1037. data/src/cxx_supportlib/vendor-modified/boost/container/throw_exception.hpp +156 -41
  1038. data/src/cxx_supportlib/vendor-modified/boost/container/vector.hpp +706 -659
  1039. data/src/cxx_supportlib/vendor-modified/boost/container_hash/extensions.hpp +1 -54
  1040. data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash.hpp +45 -39
  1041. data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash_fwd.hpp +1 -1
  1042. data/src/cxx_supportlib/vendor-modified/boost/core/addressof.hpp +2 -2
  1043. data/src/cxx_supportlib/vendor-modified/boost/core/alloc_construct.hpp +95 -0
  1044. data/src/cxx_supportlib/vendor-modified/boost/core/allocator_access.hpp +820 -0
  1045. data/src/cxx_supportlib/vendor-modified/boost/core/allocator_traits.hpp +112 -0
  1046. data/src/cxx_supportlib/vendor-modified/boost/core/bit.hpp +595 -0
  1047. data/src/cxx_supportlib/vendor-modified/boost/core/checked_delete.hpp +6 -4
  1048. data/src/cxx_supportlib/vendor-modified/boost/core/cmath.hpp +298 -0
  1049. data/src/cxx_supportlib/vendor-modified/boost/core/default_allocator.hpp +158 -0
  1050. data/src/cxx_supportlib/vendor-modified/boost/core/detail/splitmix64.hpp +54 -0
  1051. data/src/cxx_supportlib/vendor-modified/boost/core/detail/string_view.hpp +1256 -0
  1052. data/src/cxx_supportlib/vendor-modified/boost/core/empty_value.hpp +155 -0
  1053. data/src/cxx_supportlib/vendor-modified/boost/core/exchange.hpp +49 -0
  1054. data/src/cxx_supportlib/vendor-modified/boost/core/explicit_operator_bool.hpp +9 -0
  1055. data/src/cxx_supportlib/vendor-modified/boost/core/first_scalar.hpp +45 -0
  1056. data/src/cxx_supportlib/vendor-modified/boost/core/ignore_unused.hpp +32 -2
  1057. data/src/cxx_supportlib/vendor-modified/boost/core/lightweight_test.hpp +272 -146
  1058. data/src/cxx_supportlib/vendor-modified/boost/core/lightweight_test_trait.hpp +43 -8
  1059. data/src/cxx_supportlib/vendor-modified/boost/core/no_exceptions_support.hpp +14 -2
  1060. data/src/cxx_supportlib/vendor-modified/boost/core/noinit_adaptor.hpp +90 -0
  1061. data/src/cxx_supportlib/vendor-modified/boost/core/noncopyable.hpp +16 -1
  1062. data/src/cxx_supportlib/vendor-modified/boost/core/nvp.hpp +57 -0
  1063. data/src/cxx_supportlib/vendor-modified/boost/core/pointer_traits.hpp +112 -60
  1064. data/src/cxx_supportlib/vendor-modified/boost/core/quick_exit.hpp +59 -0
  1065. data/src/cxx_supportlib/vendor-modified/boost/core/ref.hpp +39 -2
  1066. data/src/cxx_supportlib/vendor-modified/boost/core/span.hpp +399 -0
  1067. data/src/cxx_supportlib/vendor-modified/boost/core/swap.hpp +14 -4
  1068. data/src/cxx_supportlib/vendor-modified/boost/core/type_name.hpp +1157 -0
  1069. data/src/cxx_supportlib/vendor-modified/boost/core/typeinfo.hpp +26 -10
  1070. data/src/cxx_supportlib/vendor-modified/boost/core/uncaught_exceptions.hpp +155 -0
  1071. data/src/cxx_supportlib/vendor-modified/boost/core/use_default.hpp +17 -0
  1072. data/src/cxx_supportlib/vendor-modified/boost/core/verbose_terminate_handler.hpp +88 -0
  1073. data/src/cxx_supportlib/vendor-modified/boost/cregex.hpp +4 -0
  1074. data/src/cxx_supportlib/vendor-modified/boost/cstdint.hpp +5 -5
  1075. data/src/cxx_supportlib/vendor-modified/boost/current_function.hpp +3 -3
  1076. data/src/cxx_supportlib/vendor-modified/boost/date_time/c_time.hpp +9 -4
  1077. data/src/cxx_supportlib/vendor-modified/boost/date_time/compiler_config.hpp +9 -41
  1078. data/src/cxx_supportlib/vendor-modified/boost/date_time/constrained_value.hpp +19 -11
  1079. data/src/cxx_supportlib/vendor-modified/boost/date_time/date.hpp +23 -23
  1080. data/src/cxx_supportlib/vendor-modified/boost/date_time/date_duration.hpp +17 -22
  1081. data/src/cxx_supportlib/vendor-modified/boost/date_time/date_duration_types.hpp +44 -49
  1082. data/src/cxx_supportlib/vendor-modified/boost/date_time/date_facet.hpp +5 -6
  1083. data/src/cxx_supportlib/vendor-modified/boost/date_time/date_generators.hpp +24 -19
  1084. data/src/cxx_supportlib/vendor-modified/boost/date_time/date_iterator.hpp +8 -8
  1085. data/src/cxx_supportlib/vendor-modified/boost/date_time/date_parsing.hpp +51 -25
  1086. data/src/cxx_supportlib/vendor-modified/boost/date_time/dst_rules.hpp +56 -56
  1087. data/src/cxx_supportlib/vendor-modified/boost/date_time/dst_transition_generators.hpp +2 -2
  1088. data/src/cxx_supportlib/vendor-modified/boost/date_time/find_match.hpp +42 -0
  1089. data/src/cxx_supportlib/vendor-modified/boost/date_time/format_date_parser.hpp +98 -98
  1090. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_date.hpp +22 -14
  1091. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_day.hpp +4 -4
  1092. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration.hpp +44 -32
  1093. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp +2 -2
  1094. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_month.hpp +51 -23
  1095. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_serialize.hpp +29 -27
  1096. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_weekday.hpp +43 -9
  1097. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_year.hpp +3 -3
  1098. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/parsers.hpp +32 -13
  1099. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian_calendar.hpp +15 -17
  1100. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian_calendar.ipp +28 -23
  1101. data/src/cxx_supportlib/vendor-modified/boost/date_time/int_adapter.hpp +57 -37
  1102. data/src/cxx_supportlib/vendor-modified/boost/date_time/local_time/local_time_io.hpp +3 -0
  1103. data/src/cxx_supportlib/vendor-modified/boost/date_time/locale_config.hpp +3 -3
  1104. data/src/cxx_supportlib/vendor-modified/boost/date_time/period.hpp +44 -47
  1105. data/src/cxx_supportlib/vendor-modified/boost/date_time/period_formatter.hpp +34 -31
  1106. data/src/cxx_supportlib/vendor-modified/boost/date_time/period_parser.hpp +27 -28
  1107. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/conversion.hpp +1 -1
  1108. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/date_duration_operators.hpp +8 -8
  1109. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/posix_time_config.hpp +13 -26
  1110. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/posix_time_duration.hpp +7 -7
  1111. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/posix_time_io.hpp +1 -1
  1112. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/ptime.hpp +22 -4
  1113. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_parsers.hpp +4 -0
  1114. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_serialize.hpp +28 -12
  1115. data/src/cxx_supportlib/vendor-modified/boost/date_time/special_values_formatter.hpp +1 -0
  1116. data/src/cxx_supportlib/vendor-modified/boost/date_time/special_values_parser.hpp +0 -5
  1117. data/src/cxx_supportlib/vendor-modified/boost/date_time/string_parse_tree.hpp +5 -3
  1118. data/src/cxx_supportlib/vendor-modified/boost/date_time/strings_from_facet.hpp +4 -2
  1119. data/src/cxx_supportlib/vendor-modified/boost/date_time/time.hpp +24 -3
  1120. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_duration.hpp +56 -44
  1121. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_facet.hpp +8 -11
  1122. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_iterator.hpp +8 -8
  1123. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_parsing.hpp +3 -8
  1124. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_resolution_traits.hpp +18 -18
  1125. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_system_counted.hpp +65 -50
  1126. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_system_split.hpp +43 -30
  1127. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_zone_base.hpp +1 -1
  1128. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_zone_names.hpp +1 -1
  1129. data/src/cxx_supportlib/vendor-modified/boost/date_time/tz_db_base.hpp +0 -1
  1130. data/src/cxx_supportlib/vendor-modified/boost/date_time/wrapping_int.hpp +16 -15
  1131. data/src/cxx_supportlib/vendor-modified/boost/date_time/year_month_day.hpp +7 -5
  1132. data/src/cxx_supportlib/vendor-modified/boost/detail/basic_pointerbuf.hpp +4 -5
  1133. data/src/cxx_supportlib/vendor-modified/boost/detail/indirect_traits.hpp +38 -47
  1134. data/src/cxx_supportlib/vendor-modified/boost/detail/lcast_precision.hpp +5 -5
  1135. data/src/cxx_supportlib/vendor-modified/boost/detail/reference_content.hpp +7 -7
  1136. data/src/cxx_supportlib/vendor-modified/boost/detail/workaround.hpp +3 -3
  1137. data/src/cxx_supportlib/vendor-modified/boost/exception/current_exception_cast.hpp +10 -4
  1138. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/clone_current_exception.hpp +10 -4
  1139. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/error_info_impl.hpp +12 -7
  1140. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/exception_ptr.hpp +122 -33
  1141. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/is_output_streamable.hpp +9 -4
  1142. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/object_hex_dump.hpp +9 -4
  1143. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/shared_ptr.hpp +2 -2
  1144. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/type_info.hpp +11 -5
  1145. data/src/cxx_supportlib/vendor-modified/boost/exception/diagnostic_information.hpp +15 -6
  1146. data/src/cxx_supportlib/vendor-modified/boost/exception/exception.hpp +118 -70
  1147. data/src/cxx_supportlib/vendor-modified/boost/exception/get_error_info.hpp +9 -4
  1148. data/src/cxx_supportlib/vendor-modified/boost/exception/info.hpp +12 -10
  1149. data/src/cxx_supportlib/vendor-modified/boost/exception/to_string.hpp +9 -4
  1150. data/src/cxx_supportlib/vendor-modified/boost/exception/to_string_stub.hpp +9 -4
  1151. data/src/cxx_supportlib/vendor-modified/boost/exception_ptr.hpp +2 -2
  1152. data/src/cxx_supportlib/vendor-modified/boost/foreach.hpp +16 -9
  1153. data/src/cxx_supportlib/vendor-modified/boost/function/function_base.hpp +42 -41
  1154. data/src/cxx_supportlib/vendor-modified/boost/function/function_template.hpp +76 -44
  1155. data/src/cxx_supportlib/vendor-modified/boost/function.hpp +1 -1
  1156. data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor.hpp +2 -2
  1157. data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_ct.hpp +3 -3
  1158. data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_rt.hpp +35 -33
  1159. data/src/cxx_supportlib/vendor-modified/boost/integer/extended_euclidean.hpp +83 -0
  1160. data/src/cxx_supportlib/vendor-modified/boost/integer/integer_log2.hpp +86 -81
  1161. data/src/cxx_supportlib/vendor-modified/boost/integer/integer_mask.hpp +2 -2
  1162. data/src/cxx_supportlib/vendor-modified/boost/integer/mod_inverse.hpp +53 -0
  1163. data/src/cxx_supportlib/vendor-modified/boost/integer/static_log2.hpp +4 -5
  1164. data/src/cxx_supportlib/vendor-modified/boost/integer/static_min_max.hpp +3 -2
  1165. data/src/cxx_supportlib/vendor-modified/boost/integer.hpp +4 -4
  1166. data/src/cxx_supportlib/vendor-modified/boost/integer_fwd.hpp +2 -2
  1167. data/src/cxx_supportlib/vendor-modified/boost/integer_traits.hpp +3 -3
  1168. data/src/cxx_supportlib/vendor-modified/boost/intrusive/any_hook.hpp +4 -4
  1169. data/src/cxx_supportlib/vendor-modified/boost/intrusive/avl_set.hpp +97 -97
  1170. data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree.hpp +50 -50
  1171. data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree_algorithms.hpp +79 -79
  1172. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bs_set.hpp +99 -99
  1173. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree.hpp +108 -116
  1174. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree_algorithms.hpp +118 -112
  1175. data/src/cxx_supportlib/vendor-modified/boost/intrusive/circular_list_algorithms.hpp +31 -23
  1176. data/src/cxx_supportlib/vendor-modified/boost/intrusive/circular_slist_algorithms.hpp +88 -19
  1177. data/src/cxx_supportlib/vendor-modified/boost/intrusive/derivation_value_traits.hpp +5 -5
  1178. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/any_node_and_algorithms.hpp +39 -39
  1179. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/array_initializer.hpp +5 -3
  1180. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/avltree_node.hpp +23 -23
  1181. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/bstree_algorithms_base.hpp +5 -6
  1182. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/common_slist_algorithms.hpp +80 -11
  1183. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/config_begin.hpp +1 -0
  1184. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/default_header_holder.hpp +1 -1
  1185. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/ebo_functor_holder.hpp +3 -3
  1186. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/empty_node_checker.hpp +1 -1
  1187. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/exception_disposer.hpp +0 -31
  1188. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/generic_hook.hpp +12 -12
  1189. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hash_combine.hpp +92 -0
  1190. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hashtable_node.hpp +196 -107
  1191. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hook_traits.hpp +20 -12
  1192. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/iterator.hpp +111 -81
  1193. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/key_nodeptr_comp.hpp +1 -1
  1194. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/list_iterator.hpp +18 -6
  1195. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/list_node.hpp +6 -6
  1196. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/math.hpp +11 -64
  1197. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/mpl.hpp +2 -1
  1198. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/node_cloner_disposer.hpp +4 -4
  1199. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/node_to_value.hpp +1 -1
  1200. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/rbtree_node.hpp +24 -24
  1201. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/reverse_iterator.hpp +3 -140
  1202. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/simple_disposers.hpp +3 -1
  1203. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/slist_iterator.hpp +25 -6
  1204. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/slist_node.hpp +3 -3
  1205. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/tree_iterator.hpp +25 -13
  1206. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/tree_node.hpp +9 -9
  1207. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/tree_value_compare.hpp +33 -14
  1208. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/twin.hpp +49 -0
  1209. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/value_functors.hpp +52 -0
  1210. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/workaround.hpp +9 -4
  1211. data/src/cxx_supportlib/vendor-modified/boost/intrusive/hashtable.hpp +1588 -948
  1212. data/src/cxx_supportlib/vendor-modified/boost/intrusive/intrusive_fwd.hpp +5 -0
  1213. data/src/cxx_supportlib/vendor-modified/boost/intrusive/linear_slist_algorithms.hpp +97 -17
  1214. data/src/cxx_supportlib/vendor-modified/boost/intrusive/list.hpp +103 -100
  1215. data/src/cxx_supportlib/vendor-modified/boost/intrusive/list_hook.hpp +10 -10
  1216. data/src/cxx_supportlib/vendor-modified/boost/intrusive/member_value_traits.hpp +4 -4
  1217. data/src/cxx_supportlib/vendor-modified/boost/intrusive/options.hpp +26 -4
  1218. data/src/cxx_supportlib/vendor-modified/boost/intrusive/pack_options.hpp +16 -8
  1219. data/src/cxx_supportlib/vendor-modified/boost/intrusive/parent_from_member.hpp +2 -2
  1220. data/src/cxx_supportlib/vendor-modified/boost/intrusive/pointer_plus_bits.hpp +7 -4
  1221. data/src/cxx_supportlib/vendor-modified/boost/intrusive/pointer_traits.hpp +31 -23
  1222. data/src/cxx_supportlib/vendor-modified/boost/intrusive/priority_compare.hpp +11 -4
  1223. data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree.hpp +50 -50
  1224. data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree_algorithms.hpp +72 -72
  1225. data/src/cxx_supportlib/vendor-modified/boost/intrusive/set.hpp +99 -99
  1226. data/src/cxx_supportlib/vendor-modified/boost/intrusive/set_hook.hpp +12 -12
  1227. data/src/cxx_supportlib/vendor-modified/boost/intrusive/sg_set.hpp +107 -107
  1228. data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree.hpp +65 -73
  1229. data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree_algorithms.hpp +80 -80
  1230. data/src/cxx_supportlib/vendor-modified/boost/intrusive/slist.hpp +163 -170
  1231. data/src/cxx_supportlib/vendor-modified/boost/intrusive/slist_hook.hpp +8 -6
  1232. data/src/cxx_supportlib/vendor-modified/boost/intrusive/splay_set.hpp +105 -105
  1233. data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree.hpp +53 -53
  1234. data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree_algorithms.hpp +95 -95
  1235. data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap.hpp +140 -113
  1236. data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_algorithms.hpp +82 -81
  1237. data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_set.hpp +156 -149
  1238. data/src/cxx_supportlib/vendor-modified/boost/intrusive/trivial_value_traits.hpp +6 -4
  1239. data/src/cxx_supportlib/vendor-modified/boost/intrusive/unordered_set.hpp +96 -85
  1240. data/src/cxx_supportlib/vendor-modified/boost/intrusive/unordered_set_hook.hpp +17 -17
  1241. data/src/cxx_supportlib/vendor-modified/boost/io/ios_state.hpp +361 -315
  1242. data/src/cxx_supportlib/vendor-modified/boost/io_fwd.hpp +45 -49
  1243. data/src/cxx_supportlib/vendor-modified/boost/iterator/advance.hpp +12 -1
  1244. data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/config_def.hpp +10 -10
  1245. data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/config_undef.hpp +1 -1
  1246. data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/enable_if.hpp +5 -5
  1247. data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/facade_iterator_category.hpp +3 -2
  1248. data/src/cxx_supportlib/vendor-modified/boost/iterator/distance.hpp +65 -0
  1249. data/src/cxx_supportlib/vendor-modified/boost/iterator/iterator_adaptor.hpp +3 -3
  1250. data/src/cxx_supportlib/vendor-modified/boost/iterator/iterator_facade.hpp +1 -1
  1251. data/src/cxx_supportlib/vendor-modified/boost/iterator/transform_iterator.hpp +8 -4
  1252. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/bad_lexical_cast.hpp +24 -19
  1253. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical.hpp +65 -65
  1254. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical_streams.hpp +42 -42
  1255. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_numeric.hpp +17 -14
  1256. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/inf_nan.hpp +13 -16
  1257. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/is_character.hpp +7 -6
  1258. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_char_constants.hpp +2 -2
  1259. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_unsigned_converters.hpp +14 -14
  1260. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/widest_char.hpp +5 -2
  1261. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/try_lexical_convert.hpp +22 -17
  1262. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast.hpp +2 -2
  1263. data/src/cxx_supportlib/vendor-modified/boost/libs/random/src/random_device.cpp +1 -1
  1264. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/posix_api.cpp +10 -7
  1265. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/regex.cpp +13 -122
  1266. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/static_mutex.cpp +8 -2
  1267. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/wide_posix_api.cpp +11 -8
  1268. data/src/cxx_supportlib/vendor-modified/boost/libs/system/src/error_code.cpp +16 -5
  1269. data/src/cxx_supportlib/vendor-modified/boost/libs/thread/src/future.cpp +1 -1
  1270. data/src/cxx_supportlib/vendor-modified/boost/libs/thread/src/pthread/once.cpp +0 -1
  1271. data/src/cxx_supportlib/vendor-modified/boost/libs/thread/src/pthread/once_atomic.cpp +4 -3
  1272. data/src/cxx_supportlib/vendor-modified/boost/libs/thread/src/pthread/thread.cpp +26 -15
  1273. data/src/cxx_supportlib/vendor-modified/boost/libs/thread/src/tss_null.cpp +2 -2
  1274. data/src/cxx_supportlib/vendor-modified/boost/memory_order.hpp +6 -12
  1275. data/src/cxx_supportlib/vendor-modified/boost/move/algo/adaptive_merge.hpp +102 -59
  1276. data/src/cxx_supportlib/vendor-modified/boost/move/algo/adaptive_sort.hpp +102 -70
  1277. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/adaptive_sort_merge.hpp +296 -450
  1278. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/heap_sort.hpp +19 -9
  1279. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/insertion_sort.hpp +9 -0
  1280. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/merge.hpp +457 -112
  1281. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/merge_sort.hpp +87 -10
  1282. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/pdqsort.hpp +14 -4
  1283. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/search.hpp +79 -0
  1284. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/set_difference.hpp +9 -3
  1285. data/src/cxx_supportlib/vendor-modified/boost/move/algo/move.hpp +5 -1
  1286. data/src/cxx_supportlib/vendor-modified/boost/move/algo/predicate.hpp +23 -8
  1287. data/src/cxx_supportlib/vendor-modified/boost/move/algorithm.hpp +1 -1
  1288. data/src/cxx_supportlib/vendor-modified/boost/move/core.hpp +29 -8
  1289. data/src/cxx_supportlib/vendor-modified/boost/move/default_delete.hpp +30 -3
  1290. data/src/cxx_supportlib/vendor-modified/boost/move/detail/addressof.hpp +61 -0
  1291. data/src/cxx_supportlib/vendor-modified/boost/move/detail/config_begin.hpp +1 -0
  1292. data/src/cxx_supportlib/vendor-modified/boost/move/detail/force_ptr.hpp +36 -0
  1293. data/src/cxx_supportlib/vendor-modified/boost/move/detail/fwd_macros.hpp +12 -0
  1294. data/src/cxx_supportlib/vendor-modified/boost/move/detail/iterator_to_raw_pointer.hpp +3 -3
  1295. data/src/cxx_supportlib/vendor-modified/boost/move/detail/iterator_traits.hpp +109 -9
  1296. data/src/cxx_supportlib/vendor-modified/boost/move/detail/meta_utils.hpp +10 -32
  1297. data/src/cxx_supportlib/vendor-modified/boost/move/detail/meta_utils_core.hpp +11 -6
  1298. data/src/cxx_supportlib/vendor-modified/boost/move/detail/nsec_clock.hpp +227 -0
  1299. data/src/cxx_supportlib/vendor-modified/boost/move/detail/reverse_iterator.hpp +40 -33
  1300. data/src/cxx_supportlib/vendor-modified/boost/move/detail/std_ns_begin.hpp +5 -1
  1301. data/src/cxx_supportlib/vendor-modified/boost/move/detail/std_ns_end.hpp +2 -0
  1302. data/src/cxx_supportlib/vendor-modified/boost/move/detail/type_traits.hpp +257 -47
  1303. data/src/cxx_supportlib/vendor-modified/boost/move/detail/unique_ptr_meta_utils.hpp +1 -27
  1304. data/src/cxx_supportlib/vendor-modified/boost/move/detail/workaround.hpp +5 -3
  1305. data/src/cxx_supportlib/vendor-modified/boost/move/iterator.hpp +1 -1
  1306. data/src/cxx_supportlib/vendor-modified/boost/move/make_unique.hpp +10 -0
  1307. data/src/cxx_supportlib/vendor-modified/boost/move/unique_ptr.hpp +5 -5
  1308. data/src/cxx_supportlib/vendor-modified/boost/move/utility_core.hpp +31 -28
  1309. data/src/cxx_supportlib/vendor-modified/boost/mp11/algorithm.hpp +1306 -0
  1310. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/config.hpp +138 -0
  1311. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_append.hpp +185 -0
  1312. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_copy_if.hpp +48 -0
  1313. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_count.hpp +147 -0
  1314. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_fold.hpp +62 -0
  1315. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_front.hpp +38 -0
  1316. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_is_list.hpp +39 -0
  1317. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_list.hpp +24 -0
  1318. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_map_find.hpp +87 -0
  1319. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_min_element.hpp +51 -0
  1320. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_plus.hpp +81 -0
  1321. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_remove_if.hpp +48 -0
  1322. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_rename.hpp +41 -0
  1323. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_void.hpp +32 -0
  1324. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_with_index.hpp +385 -0
  1325. data/src/cxx_supportlib/vendor-modified/boost/mp11/function.hpp +222 -0
  1326. data/src/cxx_supportlib/vendor-modified/boost/mp11/integer_sequence.hpp +112 -0
  1327. data/src/cxx_supportlib/vendor-modified/boost/mp11/integral.hpp +41 -0
  1328. data/src/cxx_supportlib/vendor-modified/boost/mp11/list.hpp +304 -0
  1329. data/src/cxx_supportlib/vendor-modified/boost/mp11/set.hpp +188 -0
  1330. data/src/cxx_supportlib/vendor-modified/boost/mp11/utility.hpp +263 -0
  1331. data/src/cxx_supportlib/vendor-modified/boost/mp11/version.hpp +16 -0
  1332. data/src/cxx_supportlib/vendor-modified/boost/mpl/and.hpp +1 -1
  1333. data/src/cxx_supportlib/vendor-modified/boost/mpl/assert.hpp +28 -8
  1334. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/common_name_wknd.hpp +2 -2
  1335. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/adl.hpp +1 -1
  1336. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/arrays.hpp +1 -1
  1337. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/bcc.hpp +2 -2
  1338. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/bind.hpp +1 -1
  1339. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/compiler.hpp +2 -2
  1340. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/ctps.hpp +1 -1
  1341. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/dtp.hpp +3 -3
  1342. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/forwarding.hpp +1 -1
  1343. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/integral.hpp +1 -1
  1344. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/operators.hpp +1 -1
  1345. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/overload_resolution.hpp +1 -1
  1346. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/preprocessor.hpp +1 -1
  1347. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/ttp.hpp +2 -2
  1348. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/count_impl.hpp +1 -1
  1349. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/fold_impl_body.hpp +3 -3
  1350. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/has_rebind.hpp +4 -4
  1351. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/integral_wrapper.hpp +1 -1
  1352. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/lambda_support.hpp +3 -3
  1353. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/nested_type_wknd.hpp +1 -1
  1354. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp +1 -1
  1355. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessor/enum.hpp +12 -0
  1356. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessor/params.hpp +12 -0
  1357. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/size_impl.hpp +1 -1
  1358. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/static_cast.hpp +1 -1
  1359. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/template_arity.hpp +1 -1
  1360. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/yes_no.hpp +2 -1
  1361. data/src/cxx_supportlib/vendor-modified/boost/mpl/bitand.hpp +1 -1
  1362. data/src/cxx_supportlib/vendor-modified/boost/mpl/bitor.hpp +1 -1
  1363. data/src/cxx_supportlib/vendor-modified/boost/mpl/has_xxx.hpp +4 -4
  1364. data/src/cxx_supportlib/vendor-modified/boost/mpl/if.hpp +1 -1
  1365. data/src/cxx_supportlib/vendor-modified/boost/mpl/integral_c.hpp +1 -1
  1366. data/src/cxx_supportlib/vendor-modified/boost/mpl/lower_bound.hpp +1 -1
  1367. data/src/cxx_supportlib/vendor-modified/boost/mpl/numeric_cast.hpp +1 -1
  1368. data/src/cxx_supportlib/vendor-modified/boost/mpl/or.hpp +1 -1
  1369. data/src/cxx_supportlib/vendor-modified/boost/mpl/string.hpp +6 -6
  1370. data/src/cxx_supportlib/vendor-modified/boost/mpl/upper_bound.hpp +1 -1
  1371. data/src/cxx_supportlib/vendor-modified/boost/mpl/vector/aux_/at.hpp +1 -1
  1372. data/src/cxx_supportlib/vendor-modified/boost/none.hpp +5 -5
  1373. data/src/cxx_supportlib/vendor-modified/boost/none_t.hpp +3 -1
  1374. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/cast.hpp +1 -1
  1375. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/converter_policies.hpp +5 -5
  1376. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/converter.hpp +1 -1
  1377. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/meta.hpp +1 -1
  1378. data/src/cxx_supportlib/vendor-modified/boost/operators.hpp +33 -24
  1379. data/src/cxx_supportlib/vendor-modified/boost/optional/bad_optional_access.hpp +9 -0
  1380. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/experimental_traits.hpp +9 -3
  1381. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/old_optional_implementation.hpp +12 -13
  1382. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_aligned_storage.hpp +1 -1
  1383. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_config.hpp +1 -1
  1384. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_hash.hpp +49 -0
  1385. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_reference_spec.hpp +28 -2
  1386. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_trivially_copyable_base.hpp +38 -27
  1387. data/src/cxx_supportlib/vendor-modified/boost/optional/optional.hpp +300 -124
  1388. data/src/cxx_supportlib/vendor-modified/boost/optional/optional_io.hpp +3 -2
  1389. data/src/cxx_supportlib/vendor-modified/boost/parameter/are_tagged_arguments.hpp +125 -0
  1390. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/always_true_predicate.hpp +42 -0
  1391. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/arg_list.hpp +1253 -359
  1392. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/as_lvalue.hpp +25 -0
  1393. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/augment_predicate.hpp +198 -0
  1394. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/cast.hpp +7 -136
  1395. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/default.hpp +101 -59
  1396. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/has_nested_template_fn.hpp +111 -0
  1397. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/is_maybe.hpp +42 -16
  1398. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/is_placeholder.hpp +64 -0
  1399. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/is_tagged_argument.hpp +95 -0
  1400. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/lambda_tag.hpp +16 -0
  1401. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/maybe.hpp +128 -97
  1402. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/name.hpp +93 -0
  1403. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/as_parameter_requirements.hpp +32 -0
  1404. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/deduce_tag.hpp +217 -0
  1405. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/deduced_item.hpp +34 -0
  1406. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/insert_tagged.hpp +23 -0
  1407. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/is_named_argument.hpp +43 -0
  1408. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/item.hpp +47 -0
  1409. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/make_arg_list.hpp +438 -0
  1410. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/make_deduced_items.hpp +53 -0
  1411. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/make_items.hpp +45 -0
  1412. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/make_parameter_spec_items.hpp +244 -0
  1413. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/parameter_requirements.hpp +25 -0
  1414. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/predicate.hpp +87 -0
  1415. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/satisfies.hpp +142 -0
  1416. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp +59 -0
  1417. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_keyword_arg.hpp +30 -0
  1418. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_keyword_arg_ref.hpp +67 -0
  1419. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_template_keyword_arg.hpp +30 -0
  1420. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_type.hpp +89 -0
  1421. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/unmatched_argument.hpp +41 -0
  1422. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/parameter_requirements.hpp +7 -20
  1423. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/parenthesized_type.hpp +8 -31
  1424. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pp_impl/argument_pack.hpp +91 -0
  1425. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pp_impl/match.hpp +55 -0
  1426. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pp_impl/unwrap_predicate.hpp +97 -0
  1427. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/binary_seq_for_each.hpp +1638 -0
  1428. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/binary_seq_for_each_inc.hpp +1796 -0
  1429. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/binary_seq_to_args.hpp +65 -0
  1430. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/convert_binary_seq.hpp +57 -0
  1431. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/flatten.hpp +7 -110
  1432. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/for_each.hpp +7 -98
  1433. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/for_each_pred.hpp +1029 -0
  1434. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/argument_specs.hpp +24 -0
  1435. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/arity_range.hpp +42 -0
  1436. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/flatten.hpp +143 -0
  1437. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/for_each.hpp +152 -0
  1438. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/forwarding_overloads.hpp +509 -0
  1439. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_cast.hpp +730 -0
  1440. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_dispatch_layer.hpp +474 -0
  1441. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_dispatch_tuple.hpp +33 -0
  1442. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_forward_match.hpp +43 -0
  1443. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_name.hpp +152 -0
  1444. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/no_spec_overloads.hpp +331 -0
  1445. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/parenthesized_return_type.hpp +122 -0
  1446. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/parenthesized_type.hpp +34 -0
  1447. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/specification.hpp +109 -0
  1448. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/split_args.hpp +71 -0
  1449. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/inc_binary_seq.hpp +78 -0
  1450. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/is_binary.hpp +31 -0
  1451. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/is_nullary.hpp +32 -0
  1452. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/no_perfect_forwarding_begin.hpp +165 -0
  1453. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/no_perfect_forwarding_end.hpp +24 -0
  1454. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/nullptr.hpp +18 -0
  1455. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/overloads.hpp +92 -0
  1456. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/qualifier.hpp +88 -0
  1457. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/seq_enum.hpp +26 -0
  1458. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/seq_merge.hpp +1807 -0
  1459. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/result_of0.hpp +46 -29
  1460. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/set.hpp +94 -42
  1461. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/tag.hpp +152 -30
  1462. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/tagged_argument.hpp +874 -159
  1463. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/tagged_argument_fwd.hpp +38 -0
  1464. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/template_keyword.hpp +76 -34
  1465. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/unwrap_cv_reference.hpp +161 -78
  1466. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/use_default.hpp +17 -0
  1467. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/use_default_tag.hpp +29 -0
  1468. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/void.hpp +25 -16
  1469. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp +30 -14
  1470. data/src/cxx_supportlib/vendor-modified/boost/parameter/binding.hpp +154 -70
  1471. data/src/cxx_supportlib/vendor-modified/boost/parameter/compose.hpp +210 -0
  1472. data/src/cxx_supportlib/vendor-modified/boost/parameter/config.hpp +75 -6
  1473. data/src/cxx_supportlib/vendor-modified/boost/parameter/deduced.hpp +132 -0
  1474. data/src/cxx_supportlib/vendor-modified/boost/parameter/is_argument_pack.hpp +29 -0
  1475. data/src/cxx_supportlib/vendor-modified/boost/parameter/keyword.hpp +724 -102
  1476. data/src/cxx_supportlib/vendor-modified/boost/parameter/keyword_fwd.hpp +23 -0
  1477. data/src/cxx_supportlib/vendor-modified/boost/parameter/macros.hpp +205 -72
  1478. data/src/cxx_supportlib/vendor-modified/boost/parameter/match.hpp +37 -44
  1479. data/src/cxx_supportlib/vendor-modified/boost/parameter/name.hpp +100 -126
  1480. data/src/cxx_supportlib/vendor-modified/boost/parameter/nested_keyword.hpp +111 -0
  1481. data/src/cxx_supportlib/vendor-modified/boost/parameter/optional.hpp +67 -0
  1482. data/src/cxx_supportlib/vendor-modified/boost/parameter/parameters.hpp +556 -887
  1483. data/src/cxx_supportlib/vendor-modified/boost/parameter/preprocessor.hpp +156 -1016
  1484. data/src/cxx_supportlib/vendor-modified/boost/parameter/preprocessor_no_spec.hpp +74 -0
  1485. data/src/cxx_supportlib/vendor-modified/boost/parameter/python.hpp +5 -6
  1486. data/src/cxx_supportlib/vendor-modified/boost/parameter/required.hpp +66 -0
  1487. data/src/cxx_supportlib/vendor-modified/boost/parameter/template_keyword.hpp +87 -0
  1488. data/src/cxx_supportlib/vendor-modified/boost/parameter/value_type.hpp +152 -70
  1489. data/src/cxx_supportlib/vendor-modified/boost/pool/detail/mutex.hpp +119 -25
  1490. data/src/cxx_supportlib/vendor-modified/boost/pool/object_pool.hpp +2 -2
  1491. data/src/cxx_supportlib/vendor-modified/boost/pool/pool.hpp +22 -9
  1492. data/src/cxx_supportlib/vendor-modified/boost/pool/pool_alloc.hpp +1 -1
  1493. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/alpha.h +19 -13
  1494. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/arm.h +97 -28
  1495. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/blackfin.h +16 -10
  1496. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/convex.h +19 -13
  1497. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/e2k.h +54 -0
  1498. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ia64.h +19 -13
  1499. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/loongarch.h +41 -0
  1500. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/m68k.h +33 -27
  1501. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/mips.h +31 -20
  1502. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/parisc.h +24 -18
  1503. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ppc.h +82 -30
  1504. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ptx.h +50 -0
  1505. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/pyramid.h +13 -7
  1506. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/riscv.h +48 -0
  1507. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/rs6k.h +23 -12
  1508. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sparc.h +26 -13
  1509. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/superh.h +29 -15
  1510. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sys370.h +15 -9
  1511. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sys390.h +15 -9
  1512. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/x86/32.h +31 -25
  1513. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/x86/64.h +19 -13
  1514. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/x86.h +4 -4
  1515. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/z.h +14 -8
  1516. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture.h +4 -1
  1517. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/borland.h +12 -11
  1518. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/clang.h +10 -9
  1519. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/comeau.h +10 -9
  1520. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/compaq.h +13 -12
  1521. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/diab.h +10 -9
  1522. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/digitalmars.h +10 -9
  1523. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/dignus.h +10 -9
  1524. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/edg.h +10 -9
  1525. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/ekopath.h +10 -9
  1526. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/gcc.h +11 -10
  1527. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/gcc_xml.h +9 -8
  1528. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/greenhills.h +12 -11
  1529. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/hp_acc.h +10 -9
  1530. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/iar.h +10 -9
  1531. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/ibm.h +15 -14
  1532. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/intel.h +18 -17
  1533. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/kai.h +10 -9
  1534. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/llvm.h +9 -8
  1535. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/metaware.h +9 -8
  1536. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/metrowerks.h +14 -13
  1537. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/microtec.h +9 -8
  1538. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/mpw.h +12 -11
  1539. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/nvcc.h +74 -0
  1540. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/palm.h +10 -9
  1541. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/pgi.h +10 -9
  1542. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/sgi_mipspro.h +12 -11
  1543. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/sunpro.h +14 -13
  1544. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/tendra.h +9 -8
  1545. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/visualc.h +13 -12
  1546. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/watcom.h +10 -9
  1547. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler.h +1 -0
  1548. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/arm/versions.h +16 -10
  1549. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/arm.h +21 -19
  1550. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/ppc/versions.h +27 -21
  1551. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/ppc.h +21 -19
  1552. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/x86/versions.h +73 -67
  1553. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/x86.h +39 -37
  1554. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/x86_amd/versions.h +24 -19
  1555. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/x86_amd.h +25 -23
  1556. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd.h +95 -46
  1557. data/src/cxx_supportlib/vendor-modified/boost/predef/language/cuda.h +53 -0
  1558. data/src/cxx_supportlib/vendor-modified/boost/predef/language/objc.h +9 -8
  1559. data/src/cxx_supportlib/vendor-modified/boost/predef/language/stdc.h +11 -10
  1560. data/src/cxx_supportlib/vendor-modified/boost/predef/language/stdcpp.h +41 -34
  1561. data/src/cxx_supportlib/vendor-modified/boost/predef/language.h +1 -0
  1562. data/src/cxx_supportlib/vendor-modified/boost/predef/library/c/cloudabi.h +10 -9
  1563. data/src/cxx_supportlib/vendor-modified/boost/predef/library/c/gnu.h +12 -11
  1564. data/src/cxx_supportlib/vendor-modified/boost/predef/library/c/uc.h +10 -9
  1565. data/src/cxx_supportlib/vendor-modified/boost/predef/library/c/vms.h +9 -8
  1566. data/src/cxx_supportlib/vendor-modified/boost/predef/library/c/zos.h +10 -9
  1567. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/cxx.h +11 -10
  1568. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/dinkumware.h +11 -10
  1569. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/libcomo.h +10 -9
  1570. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/modena.h +10 -9
  1571. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/msl.h +12 -11
  1572. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/roguewave.h +11 -10
  1573. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/sgi.h +10 -9
  1574. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/stdcpp3.h +12 -11
  1575. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/stlport.h +13 -12
  1576. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/vacpp.h +9 -8
  1577. data/src/cxx_supportlib/vendor-modified/boost/predef/make.h +103 -33
  1578. data/src/cxx_supportlib/vendor-modified/boost/predef/os/aix.h +14 -13
  1579. data/src/cxx_supportlib/vendor-modified/boost/predef/os/amigaos.h +10 -9
  1580. data/src/cxx_supportlib/vendor-modified/boost/predef/os/beos.h +9 -8
  1581. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/bsdi.h +10 -8
  1582. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/dragonfly.h +10 -8
  1583. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/free.h +11 -9
  1584. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/net.h +17 -15
  1585. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/open.h +60 -58
  1586. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd.h +22 -23
  1587. data/src/cxx_supportlib/vendor-modified/boost/predef/os/cygwin.h +15 -9
  1588. data/src/cxx_supportlib/vendor-modified/boost/predef/os/haiku.h +9 -8
  1589. data/src/cxx_supportlib/vendor-modified/boost/predef/os/hpux.h +11 -10
  1590. data/src/cxx_supportlib/vendor-modified/boost/predef/os/ios.h +12 -11
  1591. data/src/cxx_supportlib/vendor-modified/boost/predef/os/irix.h +10 -9
  1592. data/src/cxx_supportlib/vendor-modified/boost/predef/os/linux.h +14 -10
  1593. data/src/cxx_supportlib/vendor-modified/boost/predef/os/macos.h +14 -13
  1594. data/src/cxx_supportlib/vendor-modified/boost/predef/os/os400.h +9 -8
  1595. data/src/cxx_supportlib/vendor-modified/boost/predef/os/qnxnto.h +12 -11
  1596. data/src/cxx_supportlib/vendor-modified/boost/predef/os/solaris.h +10 -9
  1597. data/src/cxx_supportlib/vendor-modified/boost/predef/os/unix.h +24 -22
  1598. data/src/cxx_supportlib/vendor-modified/boost/predef/os/vms.h +11 -10
  1599. data/src/cxx_supportlib/vendor-modified/boost/predef/os/windows.h +16 -15
  1600. data/src/cxx_supportlib/vendor-modified/boost/predef/os.h +0 -1
  1601. data/src/cxx_supportlib/vendor-modified/boost/predef/other/endian.h +19 -21
  1602. data/src/cxx_supportlib/vendor-modified/boost/predef/other/wordsize.h +73 -0
  1603. data/src/cxx_supportlib/vendor-modified/boost/predef/other/workaround.h +22 -14
  1604. data/src/cxx_supportlib/vendor-modified/boost/predef/other.h +3 -2
  1605. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/android.h +44 -0
  1606. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/cloudabi.h +9 -8
  1607. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/ios.h +14 -9
  1608. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/mingw.h +12 -11
  1609. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/mingw32.h +10 -9
  1610. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/mingw64.h +10 -9
  1611. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/windows_desktop.h +10 -9
  1612. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/windows_phone.h +9 -8
  1613. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/windows_runtime.h +10 -9
  1614. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/windows_server.h +9 -8
  1615. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/windows_store.h +10 -9
  1616. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/windows_system.h +9 -8
  1617. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/windows_uwp.h +12 -11
  1618. data/src/cxx_supportlib/vendor-modified/boost/predef/platform.h +1 -1
  1619. data/src/cxx_supportlib/vendor-modified/boost/predef/version.h +1 -1
  1620. data/src/cxx_supportlib/vendor-modified/boost/predef/version_number.h +16 -14
  1621. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/add.hpp +54 -1
  1622. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/dec.hpp +33 -0
  1623. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_1_number.hpp +21 -0
  1624. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_maximum_number.hpp +22 -0
  1625. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_minimum_number.hpp +21 -0
  1626. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/maximum_number.hpp +19 -0
  1627. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/div.hpp +37 -1
  1628. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/inc.hpp +33 -0
  1629. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_1024.hpp +531 -0
  1630. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_256.hpp +276 -0
  1631. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_512.hpp +275 -0
  1632. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_1024.hpp +536 -0
  1633. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_256.hpp +275 -0
  1634. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_512.hpp +280 -0
  1635. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/mod.hpp +37 -1
  1636. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/mul.hpp +60 -1
  1637. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/sub.hpp +51 -1
  1638. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/detail/get_data.hpp +21 -21
  1639. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/enum.hpp +17 -1
  1640. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/insert.hpp +71 -0
  1641. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/remove.hpp +66 -0
  1642. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/replace.hpp +58 -0
  1643. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/to_list.hpp +7 -7
  1644. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/to_seq.hpp +7 -7
  1645. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/to_tuple.hpp +7 -7
  1646. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_1024.hpp +1044 -0
  1647. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_256.hpp +793 -0
  1648. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_512.hpp +532 -0
  1649. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/not_equal.hpp +44 -1
  1650. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/config/config.hpp +26 -34
  1651. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/config/limits.hpp +136 -3
  1652. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/deduce_d.hpp +27 -0
  1653. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/dmc/while.hpp +2 -3
  1654. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_1024.hpp +1044 -0
  1655. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_256.hpp +533 -0
  1656. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_512.hpp +532 -0
  1657. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/while.hpp +27 -0
  1658. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_1024.hpp +1044 -0
  1659. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_256.hpp +533 -0
  1660. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_512.hpp +532 -0
  1661. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/while.hpp +27 -0
  1662. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_1024.hpp +531 -0
  1663. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_256.hpp +275 -0
  1664. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_512.hpp +275 -0
  1665. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/while.hpp +75 -0
  1666. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/auto_rec.hpp +41 -0
  1667. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/dmc/auto_rec.hpp +2 -2
  1668. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_1024.hpp +532 -0
  1669. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_256.hpp +280 -0
  1670. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_512.hpp +276 -0
  1671. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/check_empty.hpp +19 -0
  1672. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/detail/is_empty.hpp +3 -3
  1673. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/intercept.hpp +29 -0
  1674. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/is_empty.hpp +0 -37
  1675. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/is_empty_variadic.hpp +28 -5
  1676. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_1024.hpp +530 -0
  1677. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_256.hpp +273 -0
  1678. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_512.hpp +274 -0
  1679. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/overload.hpp +1 -3
  1680. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/va_opt.hpp +34 -0
  1681. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities.hpp +2 -0
  1682. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward1.hpp +27 -0
  1683. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward2.hpp +27 -0
  1684. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward3.hpp +27 -0
  1685. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward4.hpp +27 -0
  1686. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward5.hpp +27 -0
  1687. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_1024.hpp +2573 -0
  1688. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_256.hpp +1296 -0
  1689. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_512.hpp +1293 -0
  1690. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_1024.hpp +2573 -0
  1691. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_256.hpp +1296 -0
  1692. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_512.hpp +1293 -0
  1693. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_1024.hpp +2573 -0
  1694. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_256.hpp +1296 -0
  1695. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_512.hpp +1293 -0
  1696. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_1024.hpp +2573 -0
  1697. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_256.hpp +1296 -0
  1698. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_512.hpp +1293 -0
  1699. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_1024.hpp +2573 -0
  1700. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_256.hpp +1296 -0
  1701. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_512.hpp +1293 -0
  1702. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_1024.hpp +2571 -0
  1703. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_256.hpp +1296 -0
  1704. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_512.hpp +1291 -0
  1705. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_1024.hpp +2571 -0
  1706. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_256.hpp +1296 -0
  1707. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_512.hpp +1293 -0
  1708. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_1024.hpp +2571 -0
  1709. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_256.hpp +1296 -0
  1710. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_512.hpp +1293 -0
  1711. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_1024.hpp +2571 -0
  1712. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_256.hpp +1296 -0
  1713. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_512.hpp +1293 -0
  1714. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_1024.hpp +2571 -0
  1715. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_256.hpp +1296 -0
  1716. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_512.hpp +1293 -0
  1717. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse1.hpp +25 -0
  1718. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse2.hpp +25 -0
  1719. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse3.hpp +25 -0
  1720. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse4.hpp +25 -0
  1721. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse5.hpp +25 -0
  1722. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_1024.hpp +1549 -0
  1723. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_256.hpp +782 -0
  1724. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_512.hpp +781 -0
  1725. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_1024.hpp +1549 -0
  1726. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_256.hpp +782 -0
  1727. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_512.hpp +781 -0
  1728. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/local.hpp +27 -0
  1729. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/rlocal.hpp +25 -0
  1730. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/dmc/fold_left.hpp +3 -2
  1731. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/fold_left.hpp +28 -0
  1732. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/fold_right.hpp +29 -0
  1733. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_1024.hpp +1044 -0
  1734. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_256.hpp +533 -0
  1735. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_512.hpp +532 -0
  1736. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_1024.hpp +1557 -0
  1737. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_256.hpp +791 -0
  1738. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_512.hpp +789 -0
  1739. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/fold_left.hpp +28 -0
  1740. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/fold_right.hpp +26 -0
  1741. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_1024.hpp +532 -0
  1742. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_256.hpp +275 -0
  1743. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_512.hpp +276 -0
  1744. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_1024.hpp +532 -0
  1745. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_256.hpp +275 -0
  1746. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_512.hpp +276 -0
  1747. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/enum.hpp +13 -1
  1748. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/fold_left.hpp +60 -0
  1749. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/fold_right.hpp +44 -0
  1750. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/for_each_product.hpp +25 -6
  1751. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_1024.hpp +531 -0
  1752. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_256.hpp +275 -0
  1753. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_512.hpp +275 -0
  1754. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/reverse.hpp +35 -0
  1755. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/size.hpp +56 -1
  1756. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/to_array.hpp +21 -88
  1757. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/to_tuple.hpp +14 -14
  1758. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/bool.hpp +22 -0
  1759. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_1024.hpp +531 -0
  1760. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_256.hpp +275 -0
  1761. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_512.hpp +275 -0
  1762. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/punctuation/is_begin_parens.hpp +1 -5
  1763. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/punctuation/remove_parens.hpp +0 -4
  1764. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/deduce_r.hpp +27 -0
  1765. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/dmc/for.hpp +3 -2
  1766. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/for.hpp +26 -0
  1767. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_1024.hpp +1044 -0
  1768. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_256.hpp +533 -0
  1769. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_512.hpp +532 -0
  1770. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/for.hpp +28 -0
  1771. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_1024.hpp +1044 -0
  1772. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_256.hpp +533 -0
  1773. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_512.hpp +532 -0
  1774. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/msvc/for.hpp +1 -0
  1775. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/for.hpp +121 -7
  1776. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_1024.hpp +531 -0
  1777. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_256.hpp +275 -0
  1778. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_512.hpp +275 -0
  1779. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_1024.hpp +1557 -0
  1780. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_256.hpp +791 -0
  1781. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_512.hpp +789 -0
  1782. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/repeat.hpp +22 -0
  1783. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/repeat_from_to.hpp +27 -0
  1784. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/binary_transform.hpp +6 -11
  1785. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/is_empty.hpp +11 -11
  1786. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_1024.hpp +530 -0
  1787. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_256.hpp +272 -0
  1788. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_512.hpp +274 -0
  1789. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/split.hpp +23 -0
  1790. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/elem.hpp +23 -0
  1791. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/enum.hpp +23 -0
  1792. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/fold_left.hpp +52 -0
  1793. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/fold_right.hpp +37 -0
  1794. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/for_each.hpp +27 -27
  1795. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/for_each_i.hpp +28 -28
  1796. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_1024.hpp +530 -0
  1797. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_256.hpp +272 -0
  1798. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_512.hpp +274 -0
  1799. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_1024.hpp +530 -0
  1800. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_256.hpp +272 -0
  1801. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_512.hpp +274 -0
  1802. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_1024.hpp +1556 -0
  1803. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_256.hpp +1053 -0
  1804. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_512.hpp +788 -0
  1805. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_1024.hpp +530 -0
  1806. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_256.hpp +273 -0
  1807. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_512.hpp +274 -0
  1808. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_1024.hpp +1043 -0
  1809. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_256.hpp +532 -0
  1810. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_512.hpp +531 -0
  1811. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/replace.hpp +7 -7
  1812. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/rest_n.hpp +16 -10
  1813. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/size.hpp +23 -0
  1814. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/variadic_seq_to_seq.hpp +0 -2
  1815. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/stringize.hpp +1 -1
  1816. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/detail/is_single_return.hpp +5 -5
  1817. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/eat.hpp +4 -18
  1818. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/elem.hpp +11 -157
  1819. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/insert.hpp +2 -7
  1820. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_128.hpp +403 -0
  1821. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_256.hpp +1171 -0
  1822. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_64.hpp +83 -0
  1823. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_128.hpp +595 -0
  1824. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_256.hpp +1747 -0
  1825. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_64.hpp +83 -0
  1826. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_128.hpp +403 -0
  1827. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_256.hpp +1171 -0
  1828. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_64.hpp +84 -0
  1829. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/pop_back.hpp +16 -21
  1830. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/pop_front.hpp +16 -21
  1831. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/push_back.hpp +1 -6
  1832. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/push_front.hpp +1 -7
  1833. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/rem.hpp +21 -43
  1834. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/remove.hpp +16 -21
  1835. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/replace.hpp +2 -7
  1836. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/reverse.hpp +38 -25
  1837. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/size.hpp +13 -6
  1838. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_array.hpp +15 -12
  1839. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_list.hpp +37 -25
  1840. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_seq.hpp +38 -24
  1841. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/detail/has_opt.hpp +39 -0
  1842. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/detail/is_single_return.hpp +5 -5
  1843. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/elem.hpp +93 -71
  1844. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/has_opt.hpp +28 -0
  1845. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_128.hpp +275 -0
  1846. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_256.hpp +723 -0
  1847. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_64.hpp +81 -0
  1848. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_128.hpp +47 -0
  1849. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_256.hpp +53 -0
  1850. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_64.hpp +23 -0
  1851. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/size.hpp +39 -4
  1852. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_array.hpp +15 -9
  1853. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_list.hpp +9 -2
  1854. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_seq.hpp +1 -3
  1855. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_tuple.hpp +1 -3
  1856. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic.hpp +1 -0
  1857. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/wstringize.hpp +1 -1
  1858. data/src/cxx_supportlib/vendor-modified/boost/random/additive_combine.hpp +2 -2
  1859. data/src/cxx_supportlib/vendor-modified/boost/random/detail/gray_coded_qrng.hpp +190 -0
  1860. data/src/cxx_supportlib/vendor-modified/boost/random/detail/int_float_pair.hpp +3 -4
  1861. data/src/cxx_supportlib/vendor-modified/boost/random/detail/integer_log2.hpp +1 -1
  1862. data/src/cxx_supportlib/vendor-modified/boost/random/detail/mixmax_skip_N17.ipp +287 -0
  1863. data/src/cxx_supportlib/vendor-modified/boost/random/detail/niederreiter_base2_table.hpp +514 -0
  1864. data/src/cxx_supportlib/vendor-modified/boost/random/detail/operators.hpp +1 -1
  1865. data/src/cxx_supportlib/vendor-modified/boost/random/detail/qrng_base.hpp +291 -0
  1866. data/src/cxx_supportlib/vendor-modified/boost/random/detail/seed.hpp +9 -11
  1867. data/src/cxx_supportlib/vendor-modified/boost/random/detail/seed_impl.hpp +13 -14
  1868. data/src/cxx_supportlib/vendor-modified/boost/random/detail/sobol_table.hpp +4107 -0
  1869. data/src/cxx_supportlib/vendor-modified/boost/random/discard_block.hpp +2 -2
  1870. data/src/cxx_supportlib/vendor-modified/boost/random/discrete_distribution.hpp +4 -0
  1871. data/src/cxx_supportlib/vendor-modified/boost/random/faure.hpp +367 -0
  1872. data/src/cxx_supportlib/vendor-modified/boost/random/generate_canonical.hpp +2 -3
  1873. data/src/cxx_supportlib/vendor-modified/boost/random/hyperexponential_distribution.hpp +3 -3
  1874. data/src/cxx_supportlib/vendor-modified/boost/random/independent_bits.hpp +3 -3
  1875. data/src/cxx_supportlib/vendor-modified/boost/random/inversive_congruential.hpp +2 -3
  1876. data/src/cxx_supportlib/vendor-modified/boost/random/lagged_fibonacci.hpp +4 -4
  1877. data/src/cxx_supportlib/vendor-modified/boost/random/linear_congruential.hpp +5 -7
  1878. data/src/cxx_supportlib/vendor-modified/boost/random/linear_feedback_shift.hpp +3 -3
  1879. data/src/cxx_supportlib/vendor-modified/boost/random/mersenne_twister.hpp +2 -2
  1880. data/src/cxx_supportlib/vendor-modified/boost/random/mixmax.hpp +313 -0
  1881. data/src/cxx_supportlib/vendor-modified/boost/random/niederreiter_base2.hpp +360 -0
  1882. data/src/cxx_supportlib/vendor-modified/boost/random/random_device.hpp +2 -2
  1883. data/src/cxx_supportlib/vendor-modified/boost/random/shuffle_order.hpp +2 -2
  1884. data/src/cxx_supportlib/vendor-modified/boost/random/sobol.hpp +238 -0
  1885. data/src/cxx_supportlib/vendor-modified/boost/random/subtract_with_carry.hpp +4 -4
  1886. data/src/cxx_supportlib/vendor-modified/boost/random/traits.hpp +3 -3
  1887. data/src/cxx_supportlib/vendor-modified/boost/random/uniform_int_distribution.hpp +7 -7
  1888. data/src/cxx_supportlib/vendor-modified/boost/random/uniform_real_distribution.hpp +2 -3
  1889. data/src/cxx_supportlib/vendor-modified/boost/random/uniform_smallint.hpp +4 -5
  1890. data/src/cxx_supportlib/vendor-modified/boost/random/xor_combine.hpp +4 -2
  1891. data/src/cxx_supportlib/vendor-modified/boost/random.hpp +1 -0
  1892. data/src/cxx_supportlib/vendor-modified/boost/range/as_literal.hpp +43 -6
  1893. data/src/cxx_supportlib/vendor-modified/boost/range/begin.hpp +17 -15
  1894. data/src/cxx_supportlib/vendor-modified/boost/range/concepts.hpp +2 -2
  1895. data/src/cxx_supportlib/vendor-modified/boost/range/config.hpp +1 -1
  1896. data/src/cxx_supportlib/vendor-modified/boost/range/detail/common.hpp +1 -3
  1897. data/src/cxx_supportlib/vendor-modified/boost/range/detail/implementation_help.hpp +2 -2
  1898. data/src/cxx_supportlib/vendor-modified/boost/range/distance.hpp +11 -5
  1899. data/src/cxx_supportlib/vendor-modified/boost/range/end.hpp +18 -16
  1900. data/src/cxx_supportlib/vendor-modified/boost/range/has_range_iterator.hpp +3 -3
  1901. data/src/cxx_supportlib/vendor-modified/boost/range/iterator_range_core.hpp +0 -32
  1902. data/src/cxx_supportlib/vendor-modified/boost/range/rbegin.hpp +0 -13
  1903. data/src/cxx_supportlib/vendor-modified/boost/range/rend.hpp +0 -13
  1904. data/src/cxx_supportlib/vendor-modified/boost/range/size.hpp +1 -1
  1905. data/src/cxx_supportlib/vendor-modified/boost/ratio/config.hpp +6 -2
  1906. data/src/cxx_supportlib/vendor-modified/boost/rational.hpp +95 -51
  1907. data/src/cxx_supportlib/vendor-modified/boost/regex/concepts.hpp +82 -76
  1908. data/src/cxx_supportlib/vendor-modified/boost/regex/config/borland.hpp +1 -1
  1909. data/src/cxx_supportlib/vendor-modified/boost/regex/config.hpp +104 -101
  1910. data/src/cxx_supportlib/vendor-modified/boost/regex/pattern_except.hpp +4 -72
  1911. data/src/cxx_supportlib/vendor-modified/boost/regex/pending/object_cache.hpp +4 -140
  1912. data/src/cxx_supportlib/vendor-modified/boost/regex/pending/unicode_iterator.hpp +8 -761
  1913. data/src/cxx_supportlib/vendor-modified/boost/regex/regex_traits.hpp +4 -0
  1914. data/src/cxx_supportlib/vendor-modified/boost/regex/user.hpp +2 -0
  1915. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex.hpp +32 -16
  1916. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex_creator.hpp +50 -25
  1917. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex_parser.hpp +64 -30
  1918. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/c_regex_traits.hpp +342 -42
  1919. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/cpp_regex_traits.hpp +111 -28
  1920. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/cregex.hpp +0 -117
  1921. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/icu.hpp +1516 -0
  1922. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/indexed_bit_flag.hpp +54 -0
  1923. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/match_flags.hpp +18 -7
  1924. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/match_results.hpp +21 -12
  1925. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/mem_block_cache.hpp +39 -1
  1926. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/object_cache.hpp +171 -0
  1927. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/pattern_except.hpp +128 -0
  1928. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher.hpp +42 -18
  1929. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_common.hpp +24 -10
  1930. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_non_recursive.hpp +57 -54
  1931. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_recursive.hpp +12 -12
  1932. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/primary_transform.hpp +1 -1
  1933. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/protected_call.hpp +3 -1
  1934. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex.hpp +0 -36
  1935. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_format.hpp +10 -8
  1936. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_iterator.hpp +2 -8
  1937. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_raw_buffer.hpp +38 -7
  1938. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_split.hpp +3 -1
  1939. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_token_iterator.hpp +9 -15
  1940. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_traits.hpp +1 -1
  1941. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_traits_defaults.hpp +653 -36
  1942. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_workaround.hpp +7 -4
  1943. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/states.hpp +1 -1
  1944. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/sub_match.hpp +1 -1
  1945. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/u32regex_iterator.hpp +1 -9
  1946. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/u32regex_token_iterator.hpp +3 -11
  1947. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/unicode_iterator.hpp +871 -0
  1948. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/w32_regex_traits.hpp +526 -40
  1949. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex.hpp +734 -0
  1950. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex_creator.hpp +1576 -0
  1951. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex_parser.hpp +3130 -0
  1952. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/c_regex_traits.hpp +474 -0
  1953. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/char_regex_traits.hpp +59 -0
  1954. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/cpp_regex_traits.hpp +1040 -0
  1955. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/cregex.hpp +195 -0
  1956. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/error_type.hpp +59 -0
  1957. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/icu.hpp +1402 -0
  1958. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/iterator_category.hpp +84 -0
  1959. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/iterator_traits.hpp +32 -0
  1960. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/match_flags.hpp +156 -0
  1961. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/match_results.hpp +667 -0
  1962. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/mem_block_cache.hpp +173 -0
  1963. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/object_cache.hpp +160 -0
  1964. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/pattern_except.hpp +106 -0
  1965. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher.hpp +576 -0
  1966. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher_common.hpp +921 -0
  1967. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher_non_recursive.hpp +1874 -0
  1968. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/primary_transform.hpp +120 -0
  1969. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regbase.hpp +158 -0
  1970. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex.hpp +106 -0
  1971. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_format.hpp +1124 -0
  1972. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_fwd.hpp +73 -0
  1973. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_grep.hpp +98 -0
  1974. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_iterator.hpp +173 -0
  1975. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_match.hpp +92 -0
  1976. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_merge.hpp +71 -0
  1977. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_raw_buffer.hpp +213 -0
  1978. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_replace.hpp +77 -0
  1979. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_search.hpp +103 -0
  1980. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_split.hpp +152 -0
  1981. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_token_iterator.hpp +255 -0
  1982. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_traits.hpp +130 -0
  1983. data/src/cxx_supportlib/vendor-modified/boost/{libs/regex/src/regex_traits_defaults.cpp → regex/v5/regex_traits_defaults.hpp} +719 -415
  1984. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_workaround.hpp +159 -0
  1985. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/states.hpp +299 -0
  1986. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/sub_match.hpp +382 -0
  1987. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/syntax_type.hpp +105 -0
  1988. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/u32regex_iterator.hpp +177 -0
  1989. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/u32regex_token_iterator.hpp +312 -0
  1990. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/unicode_iterator.hpp +862 -0
  1991. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/w32_regex_traits.hpp +1311 -0
  1992. data/src/cxx_supportlib/vendor-modified/boost/regex.hpp +4 -0
  1993. data/src/cxx_supportlib/vendor-modified/boost/regex_fwd.hpp +4 -0
  1994. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/allocate_shared_array.hpp +93 -444
  1995. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/bad_weak_ptr.hpp +5 -5
  1996. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count.hpp +8 -4
  1997. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_gcc.hpp +7 -0
  1998. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_gcc_atomic.hpp +63 -0
  1999. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_gcc_x86.hpp +11 -0
  2000. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_nt.hpp +7 -0
  2001. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_pt.hpp +7 -0
  2002. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_spin.hpp +7 -0
  2003. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_std_atomic.hpp +8 -1
  2004. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_sync.hpp +13 -2
  2005. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/local_counted_base.hpp +9 -9
  2006. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/local_sp_deleter.hpp +3 -3
  2007. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/shared_count.hpp +88 -48
  2008. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_convertible.hpp +1 -1
  2009. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base.hpp +12 -16
  2010. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_acc_ia64.hpp +15 -4
  2011. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_aix.hpp +12 -4
  2012. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp +17 -4
  2013. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_gcc_atomic.hpp +148 -0
  2014. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_gcc_ia64.hpp +15 -4
  2015. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp +15 -4
  2016. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_gcc_ppc.hpp +15 -4
  2017. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp +15 -4
  2018. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp +15 -4
  2019. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_nt.hpp +27 -17
  2020. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_pt.hpp +18 -9
  2021. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_snc_ps3.hpp +16 -5
  2022. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_spin.hpp +12 -4
  2023. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp +27 -18
  2024. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_sync.hpp +12 -4
  2025. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_vacpp_ppc.hpp +15 -4
  2026. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_impl.hpp +48 -31
  2027. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_has_gcc_intrinsics.hpp +27 -0
  2028. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_has_sync_intrinsics.hpp +69 -0
  2029. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_thread_pause.hpp +51 -0
  2030. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_thread_sleep.hpp +104 -0
  2031. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_typeinfo_.hpp +58 -0
  2032. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock.hpp +7 -9
  2033. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_gcc_arm.hpp +7 -0
  2034. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp +85 -0
  2035. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_nt.hpp +7 -0
  2036. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_pt.hpp +7 -0
  2037. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_std_atomic.hpp +13 -5
  2038. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_sync.hpp +8 -1
  2039. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/yield_k.hpp +14 -140
  2040. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ptr.hpp +47 -1
  2041. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp +22 -22
  2042. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_object.hpp +1 -1
  2043. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/scoped_array.hpp +2 -2
  2044. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/scoped_ptr.hpp +2 -2
  2045. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_array.hpp +4 -4
  2046. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_ptr.hpp +119 -29
  2047. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/weak_ptr.hpp +79 -8
  2048. data/src/cxx_supportlib/vendor-modified/boost/static_assert.hpp +5 -4
  2049. data/src/cxx_supportlib/vendor-modified/boost/system/config.hpp +4 -24
  2050. data/src/cxx_supportlib/vendor-modified/boost/system/detail/append_int.hpp +32 -0
  2051. data/src/cxx_supportlib/vendor-modified/boost/system/detail/cerrno.hpp +329 -0
  2052. data/src/cxx_supportlib/vendor-modified/boost/system/detail/config.hpp +81 -0
  2053. data/src/cxx_supportlib/vendor-modified/boost/system/detail/enable_if.hpp +32 -0
  2054. data/src/cxx_supportlib/vendor-modified/boost/system/detail/errc.hpp +126 -0
  2055. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category.hpp +219 -0
  2056. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category_impl.hpp +196 -0
  2057. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_code.hpp +726 -0
  2058. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_condition.hpp +297 -0
  2059. data/src/cxx_supportlib/vendor-modified/boost/system/detail/generic_category.hpp +123 -0
  2060. data/src/cxx_supportlib/vendor-modified/boost/system/detail/generic_category_message.hpp +108 -0
  2061. data/src/cxx_supportlib/vendor-modified/boost/system/detail/interop_category.hpp +107 -0
  2062. data/src/cxx_supportlib/vendor-modified/boost/system/detail/is_same.hpp +33 -0
  2063. data/src/cxx_supportlib/vendor-modified/boost/system/detail/snprintf.hpp +73 -0
  2064. data/src/cxx_supportlib/vendor-modified/boost/system/detail/std_category.hpp +83 -0
  2065. data/src/cxx_supportlib/vendor-modified/boost/system/detail/std_category_impl.hpp +97 -0
  2066. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category.hpp +110 -0
  2067. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_impl.hpp +61 -0
  2068. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_message.hpp +71 -0
  2069. data/src/cxx_supportlib/vendor-modified/boost/system/detail/throws.hpp +59 -0
  2070. data/src/cxx_supportlib/vendor-modified/boost/system/errc.hpp +57 -0
  2071. data/src/cxx_supportlib/vendor-modified/boost/system/error_category.hpp +13 -0
  2072. data/src/cxx_supportlib/vendor-modified/boost/system/error_code.hpp +12 -760
  2073. data/src/cxx_supportlib/vendor-modified/boost/system/error_condition.hpp +13 -0
  2074. data/src/cxx_supportlib/vendor-modified/boost/system/generic_category.hpp +13 -0
  2075. data/src/cxx_supportlib/vendor-modified/boost/system/is_error_code_enum.hpp +30 -0
  2076. data/src/cxx_supportlib/vendor-modified/boost/system/is_error_condition_enum.hpp +30 -0
  2077. data/src/cxx_supportlib/vendor-modified/boost/system/system_category.hpp +14 -0
  2078. data/src/cxx_supportlib/vendor-modified/boost/system/system_error.hpp +30 -59
  2079. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/deque_adaptor.hpp +1 -1
  2080. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/deque_base.hpp +1 -1
  2081. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/detail/sync_deque_base.hpp +9 -21
  2082. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/detail/sync_queue_base.hpp +9 -21
  2083. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/queue_adaptor.hpp +1 -1
  2084. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/queue_base.hpp +1 -1
  2085. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/queue_op_status.hpp +3 -1
  2086. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/sync_bounded_queue.hpp +1 -1
  2087. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/sync_deque.hpp +3 -3
  2088. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/sync_priority_queue.hpp +4 -4
  2089. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/sync_queue.hpp +3 -3
  2090. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/sync_timed_queue.hpp +80 -14
  2091. data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/queue.hpp +2 -1
  2092. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/config.hpp +18 -3
  2093. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/invoke.hpp +16 -17
  2094. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/move.hpp +13 -6
  2095. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/nullary_function.hpp +8 -3
  2096. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/platform_time.hpp +8 -8
  2097. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/thread.hpp +33 -12
  2098. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/thread_safety.hpp +160 -0
  2099. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/tss_hooks.hpp +2 -2
  2100. data/src/cxx_supportlib/vendor-modified/boost/thread/exceptions.hpp +3 -3
  2101. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/basic_thread_pool.hpp +27 -1
  2102. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/executor.hpp +2 -0
  2103. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/executor_adaptor.hpp +2 -0
  2104. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/generic_executor_ref.hpp +2 -0
  2105. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/inline_executor.hpp +8 -0
  2106. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/loop_executor.hpp +4 -0
  2107. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/scheduled_thread_pool.hpp +4 -0
  2108. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/scheduler.hpp +2 -0
  2109. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/scheduling_adaptor.hpp +3 -0
  2110. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/serial_executor.hpp +4 -0
  2111. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/serial_executor_cont.hpp +9 -2
  2112. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/thread_executor.hpp +6 -0
  2113. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/work.hpp +3 -1
  2114. data/src/cxx_supportlib/vendor-modified/boost/thread/experimental/parallel/v2/task_region.hpp +6 -2
  2115. data/src/cxx_supportlib/vendor-modified/boost/thread/externally_locked.hpp +1 -0
  2116. data/src/cxx_supportlib/vendor-modified/boost/thread/future.hpp +12 -2
  2117. data/src/cxx_supportlib/vendor-modified/boost/thread/futures/wait_for_any.hpp +1 -0
  2118. data/src/cxx_supportlib/vendor-modified/boost/thread/interruption.hpp +22 -0
  2119. data/src/cxx_supportlib/vendor-modified/boost/thread/lock_guard.hpp +4 -4
  2120. data/src/cxx_supportlib/vendor-modified/boost/thread/lockable_traits.hpp +31 -0
  2121. data/src/cxx_supportlib/vendor-modified/boost/thread/poly_lockable.hpp +7 -2
  2122. data/src/cxx_supportlib/vendor-modified/boost/thread/poly_shared_lockable.hpp +16 -12
  2123. data/src/cxx_supportlib/vendor-modified/boost/thread/poly_shared_lockable_adapter.hpp +3 -4
  2124. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/condition_variable.hpp +20 -26
  2125. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/condition_variable_fwd.hpp +8 -15
  2126. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/mutex.hpp +17 -88
  2127. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/once.hpp +29 -28
  2128. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/once_atomic.hpp +1 -1
  2129. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_helpers.hpp +163 -18
  2130. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_mutex_scoped_lock.hpp +5 -4
  2131. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/recursive_mutex.hpp +25 -25
  2132. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/shared_mutex.hpp +1 -1
  2133. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/thread_data.hpp +21 -13
  2134. data/src/cxx_supportlib/vendor-modified/boost/thread/scoped_thread.hpp +9 -0
  2135. data/src/cxx_supportlib/vendor-modified/boost/thread/thread_guard.hpp +5 -0
  2136. data/src/cxx_supportlib/vendor-modified/boost/thread/tss.hpp +23 -41
  2137. data/src/cxx_supportlib/vendor-modified/boost/thread/user_scheduler.hpp +3 -0
  2138. data/src/cxx_supportlib/vendor-modified/boost/thread/v2/shared_mutex.hpp +1 -1
  2139. data/src/cxx_supportlib/vendor-modified/boost/thread/xtime.hpp +6 -6
  2140. data/src/cxx_supportlib/vendor-modified/boost/throw_exception.hpp +232 -56
  2141. data/src/cxx_supportlib/vendor-modified/boost/token_functions.hpp +3 -2
  2142. data/src/cxx_supportlib/vendor-modified/boost/tuple/detail/tuple_basic.hpp +32 -27
  2143. data/src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp +51 -0
  2144. data/src/cxx_supportlib/vendor-modified/boost/type_index/stl_type_index.hpp +22 -20
  2145. data/src/cxx_supportlib/vendor-modified/boost/type_index/type_index_facade.hpp +1 -1
  2146. data/src/cxx_supportlib/vendor-modified/boost/type_index.hpp +1 -1
  2147. data/src/cxx_supportlib/vendor-modified/boost/type_traits/add_pointer.hpp +1 -1
  2148. data/src/cxx_supportlib/vendor-modified/boost/type_traits/aligned_storage.hpp +1 -1
  2149. data/src/cxx_supportlib/vendor-modified/boost/type_traits/alignment_of.hpp +3 -3
  2150. data/src/cxx_supportlib/vendor-modified/boost/type_traits/conjunction.hpp +40 -0
  2151. data/src/cxx_supportlib/vendor-modified/boost/type_traits/copy_cv_ref.hpp +31 -0
  2152. data/src/cxx_supportlib/vendor-modified/boost/type_traits/copy_reference.hpp +35 -0
  2153. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/common_arithmetic_type.hpp +3 -1
  2154. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/config.hpp +36 -3
  2155. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/detector.hpp +1 -1
  2156. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/has_binary_operator.hpp +6 -6
  2157. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/has_postfix_operator.hpp +55 -0
  2158. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/has_prefix_operator.hpp +72 -0
  2159. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_cxx_03.hpp +108 -0
  2160. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_cxx_11.hpp +676 -0
  2161. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_msvc10_fix.hpp +30 -0
  2162. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_ptr_tester.hpp +415 -255
  2163. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_likely_lambda.hpp +4 -3
  2164. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp +1345 -1542
  2165. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_member_function_pointer_cxx_03.hpp +117 -0
  2166. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp +697 -0
  2167. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_rvalue_reference_msvc10_fix.hpp +43 -0
  2168. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detected.hpp +1 -1
  2169. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detected_or.hpp +1 -1
  2170. data/src/cxx_supportlib/vendor-modified/boost/type_traits/disjunction.hpp +40 -0
  2171. data/src/cxx_supportlib/vendor-modified/boost/type_traits/enable_if.hpp +37 -0
  2172. data/src/cxx_supportlib/vendor-modified/boost/type_traits/extent.hpp +2 -2
  2173. data/src/cxx_supportlib/vendor-modified/boost/type_traits/has_dereference.hpp +344 -0
  2174. data/src/cxx_supportlib/vendor-modified/boost/type_traits/has_minus.hpp +11 -6
  2175. data/src/cxx_supportlib/vendor-modified/boost/type_traits/has_minus_assign.hpp +11 -6
  2176. data/src/cxx_supportlib/vendor-modified/boost/type_traits/has_nothrow_copy.hpp +1 -1
  2177. data/src/cxx_supportlib/vendor-modified/boost/type_traits/has_plus_assign.hpp +11 -6
  2178. data/src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_decrement.hpp +21 -0
  2179. data/src/cxx_supportlib/vendor-modified/boost/type_traits/has_post_increment.hpp +21 -0
  2180. data/src/cxx_supportlib/vendor-modified/boost/type_traits/has_pre_decrement.hpp +21 -0
  2181. data/src/cxx_supportlib/vendor-modified/boost/type_traits/has_pre_increment.hpp +22 -0
  2182. data/src/cxx_supportlib/vendor-modified/boost/type_traits/has_trivial_move_assign.hpp +1 -1
  2183. data/src/cxx_supportlib/vendor-modified/boost/type_traits/has_trivial_move_constructor.hpp +2 -1
  2184. data/src/cxx_supportlib/vendor-modified/boost/type_traits/integral_constant.hpp +6 -16
  2185. data/src/cxx_supportlib/vendor-modified/boost/type_traits/integral_promotion.hpp +2 -2
  2186. data/src/cxx_supportlib/vendor-modified/boost/type_traits/intrinsics.hpp +18 -8
  2187. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_array.hpp +2 -2
  2188. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_base_and_derived.hpp +2 -2
  2189. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_bounded_array.hpp +42 -0
  2190. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_complete.hpp +6 -3
  2191. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_compound.hpp +1 -1
  2192. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_const.hpp +1 -1
  2193. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_constructible.hpp +1 -1
  2194. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_convertible.hpp +4 -4
  2195. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_copy_assignable.hpp +3 -4
  2196. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_copy_constructible.hpp +4 -6
  2197. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_default_constructible.hpp +1 -1
  2198. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_destructible.hpp +1 -1
  2199. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_detected.hpp +1 -1
  2200. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_detected_convertible.hpp +1 -1
  2201. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_detected_exact.hpp +1 -1
  2202. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_empty.hpp +4 -4
  2203. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_enum.hpp +4 -4
  2204. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_final.hpp +1 -1
  2205. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_function.hpp +4 -79
  2206. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_fundamental.hpp +1 -1
  2207. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_integral.hpp +3 -3
  2208. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_lvalue_reference.hpp +1 -1
  2209. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_member_function_pointer.hpp +3 -97
  2210. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_member_pointer.hpp +1 -1
  2211. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_noncopyable.hpp +39 -0
  2212. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_nothrow_move_assignable.hpp +2 -2
  2213. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_nothrow_move_constructible.hpp +2 -2
  2214. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_pointer.hpp +1 -1
  2215. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_rvalue_reference.hpp +4 -0
  2216. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_same.hpp +1 -1
  2217. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_scoped_enum.hpp +26 -0
  2218. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_signed.hpp +2 -2
  2219. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_trivially_copyable.hpp +31 -0
  2220. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_unbounded_array.hpp +41 -0
  2221. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_unscoped_enum.hpp +25 -0
  2222. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_unsigned.hpp +2 -2
  2223. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_virtual_base_of.hpp +105 -64
  2224. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_volatile.hpp +1 -1
  2225. data/src/cxx_supportlib/vendor-modified/boost/type_traits/make_void.hpp +1 -1
  2226. data/src/cxx_supportlib/vendor-modified/boost/type_traits/negation.hpp +23 -0
  2227. data/src/cxx_supportlib/vendor-modified/boost/type_traits/nonesuch.hpp +1 -1
  2228. data/src/cxx_supportlib/vendor-modified/boost/type_traits/rank.hpp +4 -4
  2229. data/src/cxx_supportlib/vendor-modified/boost/type_traits/remove_all_extents.hpp +1 -1
  2230. data/src/cxx_supportlib/vendor-modified/boost/type_traits/remove_const.hpp +1 -1
  2231. data/src/cxx_supportlib/vendor-modified/boost/type_traits/remove_cv.hpp +1 -1
  2232. data/src/cxx_supportlib/vendor-modified/boost/type_traits/remove_extent.hpp +1 -1
  2233. data/src/cxx_supportlib/vendor-modified/boost/type_traits/remove_volatile.hpp +1 -1
  2234. data/src/cxx_supportlib/vendor-modified/boost/type_traits/type_with_alignment.hpp +3 -3
  2235. data/src/cxx_supportlib/vendor-modified/boost/typeof/constant.hpp +26 -0
  2236. data/src/cxx_supportlib/vendor-modified/boost/typeof/dmc/typeof_impl.hpp +4 -4
  2237. data/src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode.hpp +0 -3
  2238. data/src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp +1 -1
  2239. data/src/cxx_supportlib/vendor-modified/boost/typeof/int_encoding.hpp +5 -5
  2240. data/src/cxx_supportlib/vendor-modified/boost/typeof/modifiers.hpp +8 -8
  2241. data/src/cxx_supportlib/vendor-modified/boost/typeof/msvc/typeof_impl.hpp +9 -9
  2242. data/src/cxx_supportlib/vendor-modified/boost/typeof/native.hpp +3 -3
  2243. data/src/cxx_supportlib/vendor-modified/boost/typeof/pointers_data_members.hpp +2 -2
  2244. data/src/cxx_supportlib/vendor-modified/boost/typeof/register_functions_iterate.hpp +6 -6
  2245. data/src/cxx_supportlib/vendor-modified/boost/typeof/register_fundamental.hpp +2 -2
  2246. data/src/cxx_supportlib/vendor-modified/boost/typeof/register_mem_functions.hpp +1 -1
  2247. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/string.hpp +1 -1
  2248. data/src/cxx_supportlib/vendor-modified/boost/typeof/template_encoding.hpp +5 -5
  2249. data/src/cxx_supportlib/vendor-modified/boost/typeof/template_template_param.hpp +3 -3
  2250. data/src/cxx_supportlib/vendor-modified/boost/typeof/type_encoding.hpp +2 -2
  2251. data/src/cxx_supportlib/vendor-modified/boost/typeof/typeof.hpp +4 -4
  2252. data/src/cxx_supportlib/vendor-modified/boost/typeof/typeof_impl.hpp +18 -17
  2253. data/src/cxx_supportlib/vendor-modified/boost/typeof/vector.hpp +5 -5
  2254. data/src/cxx_supportlib/vendor-modified/boost/typeof/vector100.hpp +201 -201
  2255. data/src/cxx_supportlib/vendor-modified/boost/typeof/vector150.hpp +301 -301
  2256. data/src/cxx_supportlib/vendor-modified/boost/typeof/vector200.hpp +401 -401
  2257. data/src/cxx_supportlib/vendor-modified/boost/typeof/vector50.hpp +101 -101
  2258. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/fca.hpp +819 -0
  2259. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/fwd.hpp +2 -1
  2260. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/implementation.hpp +1647 -2909
  2261. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/map.hpp +8 -14
  2262. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/prime_fmod.hpp +262 -0
  2263. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/set.hpp +8 -13
  2264. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map.hpp +309 -150
  2265. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map_fwd.hpp +10 -1
  2266. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set.hpp +207 -84
  2267. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set_fwd.hpp +10 -1
  2268. data/src/cxx_supportlib/vendor-modified/boost/utility/base_from_member.hpp +2 -1
  2269. data/src/cxx_supportlib/vendor-modified/boost/utility/binary.hpp +3 -2
  2270. data/src/cxx_supportlib/vendor-modified/boost/utility/detail/minstd_rand.hpp +3 -0
  2271. data/src/cxx_supportlib/vendor-modified/boost/utility/detail/result_of_iterate.hpp +3 -3
  2272. data/src/cxx_supportlib/vendor-modified/boost/utility/detail/result_of_variadic.hpp +190 -0
  2273. data/src/cxx_supportlib/vendor-modified/boost/utility/in_place_factory.hpp +6 -0
  2274. data/src/cxx_supportlib/vendor-modified/boost/utility/result_of.hpp +33 -11
  2275. data/src/cxx_supportlib/vendor-modified/boost/utility/string_ref.hpp +11 -44
  2276. data/src/cxx_supportlib/vendor-modified/boost/utility/string_view.hpp +56 -52
  2277. data/src/cxx_supportlib/vendor-modified/boost/utility/typed_in_place_factory.hpp +6 -1
  2278. data/src/cxx_supportlib/vendor-modified/boost/utility/value_init.hpp +34 -68
  2279. data/src/cxx_supportlib/vendor-modified/boost/version.hpp +2 -2
  2280. data/src/cxx_supportlib/vendor-modified/jsoncpp/json-forwards.h +261 -143
  2281. data/src/cxx_supportlib/vendor-modified/jsoncpp/json.h +947 -763
  2282. data/src/cxx_supportlib/vendor-modified/jsoncpp/jsoncpp.cpp +1487 -1477
  2283. data/src/cxx_supportlib/vendor-modified/modp_b64_data.h +0 -4
  2284. data/src/cxx_supportlib/vendor-modified/modp_b64_strict_aliasing.cpp +5 -1
  2285. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/changelog.md +107 -5
  2286. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/readme.md +2 -2
  2287. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/close.hpp +12 -1
  2288. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/asio.hpp +13 -3
  2289. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/functional.hpp +2 -7
  2290. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/memory.hpp +0 -1
  2291. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/thread.hpp +6 -2
  2292. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/core.hpp +13 -1
  2293. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/connection.hpp +6 -15
  2294. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/endpoint.hpp +24 -24
  2295. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/extensions/permessage_deflate/disabled.hpp +1 -0
  2296. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/extensions/permessage_deflate/enabled.hpp +84 -19
  2297. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/frame.hpp +3 -0
  2298. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/impl/parser.hpp +4 -0
  2299. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/parser.hpp +10 -0
  2300. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/impl/connection_impl.hpp +150 -147
  2301. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/impl/endpoint_impl.hpp +4 -4
  2302. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/base.hpp +1 -1
  2303. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi13.hpp +47 -25
  2304. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/roles/client_endpoint.hpp +3 -3
  2305. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/roles/server_endpoint.hpp +14 -9
  2306. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/sha1/sha1.hpp +189 -189
  2307. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/connection.hpp +59 -66
  2308. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/endpoint.hpp +73 -38
  2309. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/security/none.hpp +9 -7
  2310. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/security/tls.hpp +12 -22
  2311. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/base/endpoint.hpp +1 -1
  2312. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/debug/connection.hpp +11 -11
  2313. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/debug/endpoint.hpp +1 -1
  2314. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/iostream/connection.hpp +13 -13
  2315. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/iostream/endpoint.hpp +3 -3
  2316. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/stub/connection.hpp +8 -8
  2317. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/uri.hpp +1 -0
  2318. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/utilities.hpp +2 -4
  2319. data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/version.hpp +3 -3
  2320. data/src/helper-scripts/node-loader.js +1 -1
  2321. data/src/helper-scripts/prespawn +1 -0
  2322. data/src/nginx_module/ConfigGeneral/AutoGeneratedDefinitions.c +56 -0
  2323. data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c +39 -0
  2324. data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c +72 -0
  2325. data/src/nginx_module/Configuration.c +14 -1
  2326. data/src/nginx_module/ContentHandler.c +5 -1
  2327. data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c +31 -0
  2328. data/src/nginx_module/LocationConfig/AutoGeneratedHeaderSerialization.c +69 -0
  2329. data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c +68 -0
  2330. data/src/nginx_module/LocationConfig/AutoGeneratedMergeFunction.c +15 -0
  2331. data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h +23 -0
  2332. data/src/nginx_module/MainConfig/AutoGeneratedCreateFunction.c +6 -0
  2333. data/src/nginx_module/MainConfig/AutoGeneratedManifestGeneration.c +12 -0
  2334. data/src/nginx_module/MainConfig/AutoGeneratedStruct.h +4 -0
  2335. data/src/nginx_module/config +2 -0
  2336. data/src/nginx_module/ngx_http_passenger_module.c +4 -2
  2337. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/common.js +50 -29
  2338. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config/cli-config.js +20 -20
  2339. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config/npm-config.js +11 -11
  2340. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config/syslog-config.js +3 -3
  2341. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config.js +8 -2
  2342. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/container.js +2 -1
  2343. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/logger.js +174 -146
  2344. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/console.js +4 -2
  2345. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/file.js +15 -5
  2346. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/http.js +14 -4
  2347. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports.js +26 -24
  2348. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston.js +5 -5
  2349. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/async/package.json +4 -13
  2350. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/package.json +19 -33
  2351. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/cycle/package.json +11 -29
  2352. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/eyes/package.json +12 -40
  2353. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/isstream/package.json +3 -12
  2354. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/stack-trace/lib/stack-trace.js +49 -24
  2355. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/stack-trace/package.json +4 -16
  2356. data/src/nodejs_supportlib/vendor-copy/winston/package.json +11 -55
  2357. data/src/ruby_supportlib/phusion_passenger/admin_tools/instance_registry.rb +5 -1
  2358. data/src/ruby_supportlib/phusion_passenger/admin_tools/memory_stats.rb +1 -1
  2359. data/src/ruby_supportlib/phusion_passenger/admin_tools.rb +1 -1
  2360. data/src/ruby_supportlib/phusion_passenger/apache2/config_options.rb +28 -0
  2361. data/src/ruby_supportlib/phusion_passenger/common_library.rb +2 -0
  2362. data/src/ruby_supportlib/phusion_passenger/config/download_agent_command.rb +1 -1
  2363. data/src/ruby_supportlib/phusion_passenger/config/download_nginx_engine_command.rb +1 -1
  2364. data/src/ruby_supportlib/phusion_passenger/config/nginx_engine_compiler.rb +3 -2
  2365. data/src/ruby_supportlib/phusion_passenger/config/restart_app_command.rb +16 -12
  2366. data/src/ruby_supportlib/phusion_passenger/console_text_template.rb +7 -2
  2367. data/src/ruby_supportlib/phusion_passenger/constants.rb +4 -2
  2368. data/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb +26 -9
  2369. data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +47 -0
  2370. data/src/ruby_supportlib/phusion_passenger/packaging.rb +2 -1
  2371. data/src/ruby_supportlib/phusion_passenger/platform_info/apache.rb +2 -4
  2372. data/src/ruby_supportlib/phusion_passenger/platform_info/binary_compatibility.rb +23 -19
  2373. data/src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb +1 -1
  2374. data/src/ruby_supportlib/phusion_passenger/platform_info/curl.rb +3 -0
  2375. data/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb +4 -1
  2376. data/src/ruby_supportlib/phusion_passenger/platform_info/depcheck_specs/libs.rb +6 -2
  2377. data/src/ruby_supportlib/phusion_passenger/platform_info/linux.rb +2 -1
  2378. data/src/ruby_supportlib/phusion_passenger/platform_info/openssl.rb +5 -0
  2379. data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +46 -27
  2380. data/src/ruby_supportlib/phusion_passenger/platform_info/pcre.rb +65 -0
  2381. data/src/ruby_supportlib/phusion_passenger/platform_info/ruby.rb +2 -2
  2382. data/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb +19 -0
  2383. data/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb +23 -18
  2384. data/src/ruby_supportlib/phusion_passenger/request_handler.rb +11 -7
  2385. data/src/ruby_supportlib/phusion_passenger/standalone/config_options_list.rb +20 -1
  2386. data/src/ruby_supportlib/phusion_passenger/standalone/start_command/builtin_engine.rb +5 -2
  2387. data/src/ruby_supportlib/phusion_passenger/standalone/start_command/nginx_engine.rb +29 -18
  2388. data/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb +1 -1
  2389. data/src/ruby_supportlib/phusion_passenger/utils/unseekable_socket.rb +15 -11
  2390. data/src/ruby_supportlib/phusion_passenger.rb +8 -8
  2391. metadata +820 -201
  2392. data/src/cxx_supportlib/vendor-modified/boost/asio/datagram_socket_service.hpp +0 -468
  2393. data/src/cxx_supportlib/vendor-modified/boost/asio/deadline_timer_service.hpp +0 -175
  2394. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_fwd.hpp +0 -42
  2395. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detached.hpp +0 -67
  2396. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/co_spawn.hpp +0 -878
  2397. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/detached.hpp +0 -93
  2398. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/redirect_error.hpp +0 -296
  2399. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental.hpp +0 -22
  2400. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_type.hpp +0 -52
  2401. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.cpp +0 -25
  2402. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_service.hpp +0 -202
  2403. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/stream_descriptor_service.hpp +0 -281
  2404. data/src/cxx_supportlib/vendor-modified/boost/asio/raw_socket_service.hpp +0 -468
  2405. data/src/cxx_supportlib/vendor-modified/boost/asio/seq_packet_socket_service.hpp +0 -418
  2406. data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port_service.hpp +0 -251
  2407. data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set_service.hpp +0 -144
  2408. data/src/cxx_supportlib/vendor-modified/boost/asio/socket_acceptor_service.hpp +0 -374
  2409. data/src/cxx_supportlib/vendor-modified/boost/asio/stream_socket_service.hpp +0 -414
  2410. data/src/cxx_supportlib/vendor-modified/boost/asio/waitable_timer_service.hpp +0 -212
  2411. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_handle.hpp +0 -275
  2412. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/object_handle_service.hpp +0 -185
  2413. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/random_access_handle_service.hpp +0 -216
  2414. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/stream_handle_service.hpp +0 -212
  2415. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/atomic_flag.hpp +0 -71
  2416. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_arm.hpp +0 -39
  2417. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_ppc.hpp +0 -37
  2418. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_x86.hpp +0 -40
  2419. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/lockpool.hpp +0 -51
  2420. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/operations.hpp +0 -24
  2421. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/operations_fwd.hpp +0 -35
  2422. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/operations_lockfree.hpp +0 -30
  2423. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_emulated.hpp +0 -162
  2424. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_atomic.hpp +0 -392
  2425. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_x86.hpp +0 -563
  2426. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/storage_type.hpp +0 -207
  2427. data/src/cxx_supportlib/vendor-modified/boost/bind.hpp +0 -41
  2428. data/src/cxx_supportlib/vendor-modified/boost/call_traits.hpp +0 -20
  2429. data/src/cxx_supportlib/vendor-modified/boost/checked_delete.hpp +0 -17
  2430. data/src/cxx_supportlib/vendor-modified/boost/detail/call_traits.hpp +0 -172
  2431. data/src/cxx_supportlib/vendor-modified/boost/detail/endian.hpp +0 -11
  2432. data/src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp +0 -39
  2433. data/src/cxx_supportlib/vendor-modified/boost/detail/no_exceptions_support.hpp +0 -17
  2434. data/src/cxx_supportlib/vendor-modified/boost/detail/sp_typeinfo.hpp +0 -36
  2435. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/c_regex_traits.cpp +0 -206
  2436. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/cpp_regex_traits.cpp +0 -117
  2437. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/cregex.cpp +0 -660
  2438. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/instances.cpp +0 -32
  2439. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/regex_raw_buffer.cpp +0 -72
  2440. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/wc_regex_traits.cpp +0 -314
  2441. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/winstances.cpp +0 -35
  2442. data/src/cxx_supportlib/vendor-modified/boost/math/policies/policy.hpp +0 -1040
  2443. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/detail/fp_traits.hpp +0 -581
  2444. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/detail/round_fwd.hpp +0 -93
  2445. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/fpclassify.hpp +0 -640
  2446. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/math_fwd.hpp +0 -1651
  2447. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/sign.hpp +0 -194
  2448. data/src/cxx_supportlib/vendor-modified/boost/math/tools/config.hpp +0 -469
  2449. data/src/cxx_supportlib/vendor-modified/boost/math/tools/promotion.hpp +0 -182
  2450. data/src/cxx_supportlib/vendor-modified/boost/math/tools/real_cast.hpp +0 -31
  2451. data/src/cxx_supportlib/vendor-modified/boost/math/tools/user.hpp +0 -105
  2452. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/overloads.hpp +0 -88
  2453. data/src/cxx_supportlib/vendor-modified/boost/pointer_to_other.hpp +0 -55
  2454. data/src/cxx_supportlib/vendor-modified/boost/predef/detail/endian_compat.h +0 -26
  2455. data/src/cxx_supportlib/vendor-modified/boost/predef/os/android.h +0 -45
  2456. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/fileiter.hpp +0 -455
  2457. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/instances.hpp +0 -225
  2458. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_solaris.hpp +0 -59
  2459. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_clang.hpp +0 -150
  2460. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_cw_x86.hpp +0 -160
  2461. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_solaris.hpp +0 -115
  2462. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_has_sync.hpp +0 -69
  2463. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_code.ipp +0 -496
  2464. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/daily-rotate-file.js +0 -601
  2465. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/webhook.js +0 -146
  2466. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/pkginfo/LICENSE +0 -19
  2467. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/pkginfo/lib/pkginfo.js +0 -136
  2468. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/pkginfo/package.json +0 -56
  2469. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/COPYING +0 -0
  2470. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/base64/base64.hpp +0 -0
  2471. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/client.hpp +0 -0
  2472. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/asio_ssl.hpp +0 -0
  2473. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/chrono.hpp +0 -0
  2474. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/connection_hdl.hpp +0 -0
  2475. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/cpp11.hpp +0 -0
  2476. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/md5.hpp +0 -0
  2477. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/network.hpp +0 -0
  2478. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/platforms.hpp +0 -0
  2479. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/random.hpp +0 -0
  2480. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/regex.hpp +0 -0
  2481. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/stdint.hpp +0 -0
  2482. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/system_error.hpp +0 -0
  2483. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/time.hpp +0 -0
  2484. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/type_traits.hpp +0 -0
  2485. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/concurrency/basic.hpp +0 -0
  2486. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/concurrency/none.hpp +0 -0
  2487. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio.hpp +0 -0
  2488. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio_client.hpp +0 -0
  2489. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio_no_tls.hpp +0 -0
  2490. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio_no_tls_client.hpp +0 -0
  2491. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/boost_config.hpp +0 -0
  2492. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/core_client.hpp +0 -0
  2493. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/debug.hpp +0 -0
  2494. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/debug_asio.hpp +0 -0
  2495. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/debug_asio_no_tls.hpp +0 -0
  2496. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/minimal_client.hpp +0 -0
  2497. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/minimal_server.hpp +0 -0
  2498. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/connection_base.hpp +0 -0
  2499. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/endpoint_base.hpp +0 -0
  2500. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/error.hpp +0 -0
  2501. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/extensions/extension.hpp +0 -0
  2502. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/constants.hpp +0 -0
  2503. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/impl/request.hpp +0 -0
  2504. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/impl/response.hpp +0 -0
  2505. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/request.hpp +0 -0
  2506. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/response.hpp +0 -0
  2507. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/impl/utilities_impl.hpp +0 -0
  2508. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/basic.hpp +0 -0
  2509. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/levels.hpp +0 -0
  2510. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/stub.hpp +0 -0
  2511. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/syslog.hpp +0 -0
  2512. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/message_buffer/alloc.hpp +0 -0
  2513. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/message_buffer/message.hpp +0 -0
  2514. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/message_buffer/pool.hpp +0 -0
  2515. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi00.hpp +0 -0
  2516. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi07.hpp +0 -0
  2517. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi08.hpp +0 -0
  2518. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/processor.hpp +0 -0
  2519. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/random/none.hpp +0 -0
  2520. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/random/random_device.hpp +0 -0
  2521. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/server.hpp +0 -0
  2522. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/base.hpp +0 -0
  2523. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/security/base.hpp +0 -0
  2524. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/base/connection.hpp +0 -0
  2525. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/debug/base.hpp +0 -0
  2526. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/iostream/base.hpp +0 -0
  2527. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/stub/base.hpp +0 -0
  2528. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/stub/endpoint.hpp +0 -0
  2529. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/utf8_validator.hpp +0 -0
@@ -2,7 +2,7 @@
2
2
  // impl/read_until.hpp
3
3
  // ~~~~~~~~~~~~~~~~~~~
4
4
  //
5
- // Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com)
5
+ // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6
6
  //
7
7
  // Distributed under the Boost Software License, Version 1.0. (See accompanying
8
8
  // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -19,16 +19,18 @@
19
19
  #include <string>
20
20
  #include <vector>
21
21
  #include <utility>
22
- #include <boost/asio/associated_allocator.hpp>
23
- #include <boost/asio/associated_executor.hpp>
22
+ #include <boost/asio/associator.hpp>
24
23
  #include <boost/asio/buffer.hpp>
25
24
  #include <boost/asio/buffers_iterator.hpp>
25
+ #include <boost/asio/detail/base_from_cancellation_state.hpp>
26
26
  #include <boost/asio/detail/bind_handler.hpp>
27
27
  #include <boost/asio/detail/handler_alloc_helpers.hpp>
28
28
  #include <boost/asio/detail/handler_cont_helpers.hpp>
29
29
  #include <boost/asio/detail/handler_invoke_helpers.hpp>
30
+ #include <boost/asio/detail/handler_tracking.hpp>
30
31
  #include <boost/asio/detail/handler_type_requirements.hpp>
31
32
  #include <boost/asio/detail/limits.hpp>
33
+ #include <boost/asio/detail/non_const_lvalue.hpp>
32
34
  #include <boost/asio/detail/throw_error.hpp>
33
35
 
34
36
  #include <boost/asio/detail/push_options.hpp>
@@ -36,30 +38,79 @@
36
38
  namespace boost {
37
39
  namespace asio {
38
40
 
39
- template <typename SyncReadStream, typename DynamicBuffer>
41
+ namespace detail
42
+ {
43
+ // Algorithm that finds a subsequence of equal values in a sequence. Returns
44
+ // (iterator,true) if a full match was found, in which case the iterator
45
+ // points to the beginning of the match. Returns (iterator,false) if a
46
+ // partial match was found at the end of the first sequence, in which case
47
+ // the iterator points to the beginning of the partial match. Returns
48
+ // (last1,false) if no full or partial match was found.
49
+ template <typename Iterator1, typename Iterator2>
50
+ std::pair<Iterator1, bool> partial_search(
51
+ Iterator1 first1, Iterator1 last1, Iterator2 first2, Iterator2 last2)
52
+ {
53
+ for (Iterator1 iter1 = first1; iter1 != last1; ++iter1)
54
+ {
55
+ Iterator1 test_iter1 = iter1;
56
+ Iterator2 test_iter2 = first2;
57
+ for (;; ++test_iter1, ++test_iter2)
58
+ {
59
+ if (test_iter2 == last2)
60
+ return std::make_pair(iter1, true);
61
+ if (test_iter1 == last1)
62
+ {
63
+ if (test_iter2 != first2)
64
+ return std::make_pair(iter1, false);
65
+ else
66
+ break;
67
+ }
68
+ if (*test_iter1 != *test_iter2)
69
+ break;
70
+ }
71
+ }
72
+ return std::make_pair(last1, false);
73
+ }
74
+ } // namespace detail
75
+
76
+ #if !defined(BOOST_ASIO_NO_DYNAMIC_BUFFER_V1)
77
+
78
+ template <typename SyncReadStream, typename DynamicBuffer_v1>
40
79
  inline std::size_t read_until(SyncReadStream& s,
41
- BOOST_ASIO_MOVE_ARG(DynamicBuffer) buffers, char delim)
80
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers, char delim,
81
+ typename constraint<
82
+ is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value
83
+ >::type,
84
+ typename constraint<
85
+ !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
86
+ >::type)
42
87
  {
43
88
  boost::system::error_code ec;
44
89
  std::size_t bytes_transferred = read_until(s,
45
- BOOST_ASIO_MOVE_CAST(DynamicBuffer)(buffers), delim, ec);
90
+ BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers), delim, ec);
46
91
  boost::asio::detail::throw_error(ec, "read_until");
47
92
  return bytes_transferred;
48
93
  }
49
94
 
50
- template <typename SyncReadStream, typename DynamicBuffer>
95
+ template <typename SyncReadStream, typename DynamicBuffer_v1>
51
96
  std::size_t read_until(SyncReadStream& s,
52
- BOOST_ASIO_MOVE_ARG(DynamicBuffer) buffers,
53
- char delim, boost::system::error_code& ec)
97
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers,
98
+ char delim, boost::system::error_code& ec,
99
+ typename constraint<
100
+ is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value
101
+ >::type,
102
+ typename constraint<
103
+ !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
104
+ >::type)
54
105
  {
55
- typename decay<DynamicBuffer>::type b(
56
- BOOST_ASIO_MOVE_CAST(DynamicBuffer)(buffers));
106
+ typename decay<DynamicBuffer_v1>::type b(
107
+ BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers));
57
108
 
58
109
  std::size_t search_position = 0;
59
110
  for (;;)
60
111
  {
61
112
  // Determine the range of the data to be searched.
62
- typedef typename DynamicBuffer::const_buffers_type buffers_type;
113
+ typedef typename DynamicBuffer_v1::const_buffers_type buffers_type;
63
114
  typedef buffers_iterator<buffers_type> iterator;
64
115
  buffers_type data_buffers = b.data();
65
116
  iterator begin = iterator::begin(data_buffers);
@@ -97,66 +148,43 @@ std::size_t read_until(SyncReadStream& s,
97
148
  }
98
149
  }
99
150
 
100
- template <typename SyncReadStream, typename DynamicBuffer>
151
+ template <typename SyncReadStream, typename DynamicBuffer_v1>
101
152
  inline std::size_t read_until(SyncReadStream& s,
102
- BOOST_ASIO_MOVE_ARG(DynamicBuffer) buffers,
103
- BOOST_ASIO_STRING_VIEW_PARAM delim)
153
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers,
154
+ BOOST_ASIO_STRING_VIEW_PARAM delim,
155
+ typename constraint<
156
+ is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value
157
+ >::type,
158
+ typename constraint<
159
+ !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
160
+ >::type)
104
161
  {
105
162
  boost::system::error_code ec;
106
163
  std::size_t bytes_transferred = read_until(s,
107
- BOOST_ASIO_MOVE_CAST(DynamicBuffer)(buffers), delim, ec);
164
+ BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers), delim, ec);
108
165
  boost::asio::detail::throw_error(ec, "read_until");
109
166
  return bytes_transferred;
110
167
  }
111
168
 
112
- namespace detail
113
- {
114
- // Algorithm that finds a subsequence of equal values in a sequence. Returns
115
- // (iterator,true) if a full match was found, in which case the iterator
116
- // points to the beginning of the match. Returns (iterator,false) if a
117
- // partial match was found at the end of the first sequence, in which case
118
- // the iterator points to the beginning of the partial match. Returns
119
- // (last1,false) if no full or partial match was found.
120
- template <typename Iterator1, typename Iterator2>
121
- std::pair<Iterator1, bool> partial_search(
122
- Iterator1 first1, Iterator1 last1, Iterator2 first2, Iterator2 last2)
123
- {
124
- for (Iterator1 iter1 = first1; iter1 != last1; ++iter1)
125
- {
126
- Iterator1 test_iter1 = iter1;
127
- Iterator2 test_iter2 = first2;
128
- for (;; ++test_iter1, ++test_iter2)
129
- {
130
- if (test_iter2 == last2)
131
- return std::make_pair(iter1, true);
132
- if (test_iter1 == last1)
133
- {
134
- if (test_iter2 != first2)
135
- return std::make_pair(iter1, false);
136
- else
137
- break;
138
- }
139
- if (*test_iter1 != *test_iter2)
140
- break;
141
- }
142
- }
143
- return std::make_pair(last1, false);
144
- }
145
- } // namespace detail
146
-
147
- template <typename SyncReadStream, typename DynamicBuffer>
169
+ template <typename SyncReadStream, typename DynamicBuffer_v1>
148
170
  std::size_t read_until(SyncReadStream& s,
149
- BOOST_ASIO_MOVE_ARG(DynamicBuffer) buffers,
150
- BOOST_ASIO_STRING_VIEW_PARAM delim, boost::system::error_code& ec)
171
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers,
172
+ BOOST_ASIO_STRING_VIEW_PARAM delim, boost::system::error_code& ec,
173
+ typename constraint<
174
+ is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value
175
+ >::type,
176
+ typename constraint<
177
+ !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
178
+ >::type)
151
179
  {
152
- typename decay<DynamicBuffer>::type b(
153
- BOOST_ASIO_MOVE_CAST(DynamicBuffer)(buffers));
180
+ typename decay<DynamicBuffer_v1>::type b(
181
+ BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers));
154
182
 
155
183
  std::size_t search_position = 0;
156
184
  for (;;)
157
185
  {
158
186
  // Determine the range of the data to be searched.
159
- typedef typename DynamicBuffer::const_buffers_type buffers_type;
187
+ typedef typename DynamicBuffer_v1::const_buffers_type buffers_type;
160
188
  typedef buffers_iterator<buffers_type> iterator;
161
189
  buffers_type data_buffers = b.data();
162
190
  iterator begin = iterator::begin(data_buffers);
@@ -206,31 +234,43 @@ std::size_t read_until(SyncReadStream& s,
206
234
  #if !defined(BOOST_ASIO_NO_EXTENSIONS)
207
235
  #if defined(BOOST_ASIO_HAS_BOOST_REGEX)
208
236
 
209
- template <typename SyncReadStream, typename DynamicBuffer>
237
+ template <typename SyncReadStream, typename DynamicBuffer_v1>
210
238
  inline std::size_t read_until(SyncReadStream& s,
211
- BOOST_ASIO_MOVE_ARG(DynamicBuffer) buffers,
212
- const boost::regex& expr)
239
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers,
240
+ const boost::regex& expr,
241
+ typename constraint<
242
+ is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value
243
+ >::type,
244
+ typename constraint<
245
+ !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
246
+ >::type)
213
247
  {
214
248
  boost::system::error_code ec;
215
249
  std::size_t bytes_transferred = read_until(s,
216
- BOOST_ASIO_MOVE_CAST(DynamicBuffer)(buffers), expr, ec);
250
+ BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers), expr, ec);
217
251
  boost::asio::detail::throw_error(ec, "read_until");
218
252
  return bytes_transferred;
219
253
  }
220
254
 
221
- template <typename SyncReadStream, typename DynamicBuffer>
255
+ template <typename SyncReadStream, typename DynamicBuffer_v1>
222
256
  std::size_t read_until(SyncReadStream& s,
223
- BOOST_ASIO_MOVE_ARG(DynamicBuffer) buffers,
224
- const boost::regex& expr, boost::system::error_code& ec)
257
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers,
258
+ const boost::regex& expr, boost::system::error_code& ec,
259
+ typename constraint<
260
+ is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value
261
+ >::type,
262
+ typename constraint<
263
+ !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
264
+ >::type)
225
265
  {
226
- typename decay<DynamicBuffer>::type b(
227
- BOOST_ASIO_MOVE_CAST(DynamicBuffer)(buffers));
266
+ typename decay<DynamicBuffer_v1>::type b(
267
+ BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers));
228
268
 
229
269
  std::size_t search_position = 0;
230
270
  for (;;)
231
271
  {
232
272
  // Determine the range of the data to be searched.
233
- typedef typename DynamicBuffer::const_buffers_type buffers_type;
273
+ typedef typename DynamicBuffer_v1::const_buffers_type buffers_type;
234
274
  typedef buffers_iterator<buffers_type> iterator;
235
275
  buffers_type data_buffers = b.data();
236
276
  iterator begin = iterator::begin(data_buffers);
@@ -270,7 +310,9 @@ std::size_t read_until(SyncReadStream& s,
270
310
  }
271
311
 
272
312
  // Need more data.
273
- std::size_t bytes_to_read = read_size_helper(b, 65536);
313
+ std::size_t bytes_to_read = std::min<std::size_t>(
314
+ std::max<std::size_t>(512, b.capacity() - b.size()),
315
+ std::min<std::size_t>(65536, b.max_size() - b.size()));
274
316
  b.commit(s.read_some(b.prepare(bytes_to_read), ec));
275
317
  if (ec)
276
318
  return 0;
@@ -280,35 +322,51 @@ std::size_t read_until(SyncReadStream& s,
280
322
  #endif // defined(BOOST_ASIO_HAS_BOOST_REGEX)
281
323
 
282
324
  template <typename SyncReadStream,
283
- typename DynamicBuffer, typename MatchCondition>
325
+ typename DynamicBuffer_v1, typename MatchCondition>
284
326
  inline std::size_t read_until(SyncReadStream& s,
285
- BOOST_ASIO_MOVE_ARG(DynamicBuffer) buffers,
327
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers,
286
328
  MatchCondition match_condition,
287
- typename enable_if<is_match_condition<MatchCondition>::value>::type*)
329
+ typename constraint<
330
+ is_match_condition<MatchCondition>::value
331
+ >::type,
332
+ typename constraint<
333
+ is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value
334
+ >::type,
335
+ typename constraint<
336
+ !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
337
+ >::type)
288
338
  {
289
339
  boost::system::error_code ec;
290
340
  std::size_t bytes_transferred = read_until(s,
291
- BOOST_ASIO_MOVE_CAST(DynamicBuffer)(buffers),
341
+ BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers),
292
342
  match_condition, ec);
293
343
  boost::asio::detail::throw_error(ec, "read_until");
294
344
  return bytes_transferred;
295
345
  }
296
346
 
297
347
  template <typename SyncReadStream,
298
- typename DynamicBuffer, typename MatchCondition>
348
+ typename DynamicBuffer_v1, typename MatchCondition>
299
349
  std::size_t read_until(SyncReadStream& s,
300
- BOOST_ASIO_MOVE_ARG(DynamicBuffer) buffers,
350
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers,
301
351
  MatchCondition match_condition, boost::system::error_code& ec,
302
- typename enable_if<is_match_condition<MatchCondition>::value>::type*)
352
+ typename constraint<
353
+ is_match_condition<MatchCondition>::value
354
+ >::type,
355
+ typename constraint<
356
+ is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value
357
+ >::type,
358
+ typename constraint<
359
+ !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
360
+ >::type)
303
361
  {
304
- typename decay<DynamicBuffer>::type b(
305
- BOOST_ASIO_MOVE_CAST(DynamicBuffer)(buffers));
362
+ typename decay<DynamicBuffer_v1>::type b(
363
+ BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers));
306
364
 
307
365
  std::size_t search_position = 0;
308
366
  for (;;)
309
367
  {
310
368
  // Determine the range of the data to be searched.
311
- typedef typename DynamicBuffer::const_buffers_type buffers_type;
369
+ typedef typename DynamicBuffer_v1::const_buffers_type buffers_type;
312
370
  typedef buffers_iterator<buffers_type> iterator;
313
371
  buffers_type data_buffers = b.data();
314
372
  iterator begin = iterator::begin(data_buffers);
@@ -351,125 +409,1768 @@ std::size_t read_until(SyncReadStream& s,
351
409
  }
352
410
  }
353
411
 
354
- #if !defined(BOOST_ASIO_NO_IOSTREAM)
412
+ #if !defined(BOOST_ASIO_NO_IOSTREAM)
413
+
414
+ template <typename SyncReadStream, typename Allocator>
415
+ inline std::size_t read_until(SyncReadStream& s,
416
+ boost::asio::basic_streambuf<Allocator>& b, char delim)
417
+ {
418
+ return read_until(s, basic_streambuf_ref<Allocator>(b), delim);
419
+ }
420
+
421
+ template <typename SyncReadStream, typename Allocator>
422
+ inline std::size_t read_until(SyncReadStream& s,
423
+ boost::asio::basic_streambuf<Allocator>& b, char delim,
424
+ boost::system::error_code& ec)
425
+ {
426
+ return read_until(s, basic_streambuf_ref<Allocator>(b), delim, ec);
427
+ }
428
+
429
+ template <typename SyncReadStream, typename Allocator>
430
+ inline std::size_t read_until(SyncReadStream& s,
431
+ boost::asio::basic_streambuf<Allocator>& b,
432
+ BOOST_ASIO_STRING_VIEW_PARAM delim)
433
+ {
434
+ return read_until(s, basic_streambuf_ref<Allocator>(b), delim);
435
+ }
436
+
437
+ template <typename SyncReadStream, typename Allocator>
438
+ inline std::size_t read_until(SyncReadStream& s,
439
+ boost::asio::basic_streambuf<Allocator>& b,
440
+ BOOST_ASIO_STRING_VIEW_PARAM delim, boost::system::error_code& ec)
441
+ {
442
+ return read_until(s, basic_streambuf_ref<Allocator>(b), delim, ec);
443
+ }
444
+
445
+ #if defined(BOOST_ASIO_HAS_BOOST_REGEX)
446
+
447
+ template <typename SyncReadStream, typename Allocator>
448
+ inline std::size_t read_until(SyncReadStream& s,
449
+ boost::asio::basic_streambuf<Allocator>& b, const boost::regex& expr)
450
+ {
451
+ return read_until(s, basic_streambuf_ref<Allocator>(b), expr);
452
+ }
453
+
454
+ template <typename SyncReadStream, typename Allocator>
455
+ inline std::size_t read_until(SyncReadStream& s,
456
+ boost::asio::basic_streambuf<Allocator>& b, const boost::regex& expr,
457
+ boost::system::error_code& ec)
458
+ {
459
+ return read_until(s, basic_streambuf_ref<Allocator>(b), expr, ec);
460
+ }
461
+
462
+ #endif // defined(BOOST_ASIO_HAS_BOOST_REGEX)
463
+
464
+ template <typename SyncReadStream, typename Allocator, typename MatchCondition>
465
+ inline std::size_t read_until(SyncReadStream& s,
466
+ boost::asio::basic_streambuf<Allocator>& b, MatchCondition match_condition,
467
+ typename constraint<is_match_condition<MatchCondition>::value>::type)
468
+ {
469
+ return read_until(s, basic_streambuf_ref<Allocator>(b), match_condition);
470
+ }
471
+
472
+ template <typename SyncReadStream, typename Allocator, typename MatchCondition>
473
+ inline std::size_t read_until(SyncReadStream& s,
474
+ boost::asio::basic_streambuf<Allocator>& b,
475
+ MatchCondition match_condition, boost::system::error_code& ec,
476
+ typename constraint<is_match_condition<MatchCondition>::value>::type)
477
+ {
478
+ return read_until(s, basic_streambuf_ref<Allocator>(b), match_condition, ec);
479
+ }
480
+
481
+ #endif // !defined(BOOST_ASIO_NO_IOSTREAM)
482
+ #endif // !defined(BOOST_ASIO_NO_EXTENSIONS)
483
+ #endif // !defined(BOOST_ASIO_NO_DYNAMIC_BUFFER_V1)
484
+
485
+ template <typename SyncReadStream, typename DynamicBuffer_v2>
486
+ inline std::size_t read_until(SyncReadStream& s,
487
+ DynamicBuffer_v2 buffers, char delim,
488
+ typename constraint<
489
+ is_dynamic_buffer_v2<DynamicBuffer_v2>::value
490
+ >::type)
491
+ {
492
+ boost::system::error_code ec;
493
+ std::size_t bytes_transferred = read_until(s,
494
+ BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers), delim, ec);
495
+ boost::asio::detail::throw_error(ec, "read_until");
496
+ return bytes_transferred;
497
+ }
498
+
499
+ template <typename SyncReadStream, typename DynamicBuffer_v2>
500
+ std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers,
501
+ char delim, boost::system::error_code& ec,
502
+ typename constraint<
503
+ is_dynamic_buffer_v2<DynamicBuffer_v2>::value
504
+ >::type)
505
+ {
506
+ DynamicBuffer_v2& b = buffers;
507
+
508
+ std::size_t search_position = 0;
509
+ for (;;)
510
+ {
511
+ // Determine the range of the data to be searched.
512
+ typedef typename DynamicBuffer_v2::const_buffers_type buffers_type;
513
+ typedef buffers_iterator<buffers_type> iterator;
514
+ buffers_type data_buffers =
515
+ const_cast<const DynamicBuffer_v2&>(b).data(0, b.size());
516
+ iterator begin = iterator::begin(data_buffers);
517
+ iterator start_pos = begin + search_position;
518
+ iterator end = iterator::end(data_buffers);
519
+
520
+ // Look for a match.
521
+ iterator iter = std::find(start_pos, end, delim);
522
+ if (iter != end)
523
+ {
524
+ // Found a match. We're done.
525
+ ec = boost::system::error_code();
526
+ return iter - begin + 1;
527
+ }
528
+ else
529
+ {
530
+ // No match. Next search can start with the new data.
531
+ search_position = end - begin;
532
+ }
533
+
534
+ // Check if buffer is full.
535
+ if (b.size() == b.max_size())
536
+ {
537
+ ec = error::not_found;
538
+ return 0;
539
+ }
540
+
541
+ // Need more data.
542
+ std::size_t bytes_to_read = std::min<std::size_t>(
543
+ std::max<std::size_t>(512, b.capacity() - b.size()),
544
+ std::min<std::size_t>(65536, b.max_size() - b.size()));
545
+ std::size_t pos = b.size();
546
+ b.grow(bytes_to_read);
547
+ std::size_t bytes_transferred = s.read_some(b.data(pos, bytes_to_read), ec);
548
+ b.shrink(bytes_to_read - bytes_transferred);
549
+ if (ec)
550
+ return 0;
551
+ }
552
+ }
553
+
554
+ template <typename SyncReadStream, typename DynamicBuffer_v2>
555
+ inline std::size_t read_until(SyncReadStream& s,
556
+ DynamicBuffer_v2 buffers, BOOST_ASIO_STRING_VIEW_PARAM delim,
557
+ typename constraint<
558
+ is_dynamic_buffer_v2<DynamicBuffer_v2>::value
559
+ >::type)
560
+ {
561
+ boost::system::error_code ec;
562
+ std::size_t bytes_transferred = read_until(s,
563
+ BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers), delim, ec);
564
+ boost::asio::detail::throw_error(ec, "read_until");
565
+ return bytes_transferred;
566
+ }
567
+
568
+ template <typename SyncReadStream, typename DynamicBuffer_v2>
569
+ std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers,
570
+ BOOST_ASIO_STRING_VIEW_PARAM delim, boost::system::error_code& ec,
571
+ typename constraint<
572
+ is_dynamic_buffer_v2<DynamicBuffer_v2>::value
573
+ >::type)
574
+ {
575
+ DynamicBuffer_v2& b = buffers;
576
+
577
+ std::size_t search_position = 0;
578
+ for (;;)
579
+ {
580
+ // Determine the range of the data to be searched.
581
+ typedef typename DynamicBuffer_v2::const_buffers_type buffers_type;
582
+ typedef buffers_iterator<buffers_type> iterator;
583
+ buffers_type data_buffers =
584
+ const_cast<const DynamicBuffer_v2&>(b).data(0, b.size());
585
+ iterator begin = iterator::begin(data_buffers);
586
+ iterator start_pos = begin + search_position;
587
+ iterator end = iterator::end(data_buffers);
588
+
589
+ // Look for a match.
590
+ std::pair<iterator, bool> result = detail::partial_search(
591
+ start_pos, end, delim.begin(), delim.end());
592
+ if (result.first != end)
593
+ {
594
+ if (result.second)
595
+ {
596
+ // Full match. We're done.
597
+ ec = boost::system::error_code();
598
+ return result.first - begin + delim.length();
599
+ }
600
+ else
601
+ {
602
+ // Partial match. Next search needs to start from beginning of match.
603
+ search_position = result.first - begin;
604
+ }
605
+ }
606
+ else
607
+ {
608
+ // No match. Next search can start with the new data.
609
+ search_position = end - begin;
610
+ }
611
+
612
+ // Check if buffer is full.
613
+ if (b.size() == b.max_size())
614
+ {
615
+ ec = error::not_found;
616
+ return 0;
617
+ }
618
+
619
+ // Need more data.
620
+ std::size_t bytes_to_read = std::min<std::size_t>(
621
+ std::max<std::size_t>(512, b.capacity() - b.size()),
622
+ std::min<std::size_t>(65536, b.max_size() - b.size()));
623
+ std::size_t pos = b.size();
624
+ b.grow(bytes_to_read);
625
+ std::size_t bytes_transferred = s.read_some(b.data(pos, bytes_to_read), ec);
626
+ b.shrink(bytes_to_read - bytes_transferred);
627
+ if (ec)
628
+ return 0;
629
+ }
630
+ }
631
+
632
+ #if !defined(BOOST_ASIO_NO_EXTENSIONS)
633
+ #if defined(BOOST_ASIO_HAS_BOOST_REGEX)
634
+
635
+ template <typename SyncReadStream, typename DynamicBuffer_v2>
636
+ inline std::size_t read_until(SyncReadStream& s,
637
+ DynamicBuffer_v2 buffers, const boost::regex& expr,
638
+ typename constraint<
639
+ is_dynamic_buffer_v2<DynamicBuffer_v2>::value
640
+ >::type)
641
+ {
642
+ boost::system::error_code ec;
643
+ std::size_t bytes_transferred = read_until(s,
644
+ BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers), expr, ec);
645
+ boost::asio::detail::throw_error(ec, "read_until");
646
+ return bytes_transferred;
647
+ }
648
+
649
+ template <typename SyncReadStream, typename DynamicBuffer_v2>
650
+ std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers,
651
+ const boost::regex& expr, boost::system::error_code& ec,
652
+ typename constraint<
653
+ is_dynamic_buffer_v2<DynamicBuffer_v2>::value
654
+ >::type)
655
+ {
656
+ DynamicBuffer_v2& b = buffers;
657
+
658
+ std::size_t search_position = 0;
659
+ for (;;)
660
+ {
661
+ // Determine the range of the data to be searched.
662
+ typedef typename DynamicBuffer_v2::const_buffers_type buffers_type;
663
+ typedef buffers_iterator<buffers_type> iterator;
664
+ buffers_type data_buffers =
665
+ const_cast<const DynamicBuffer_v2&>(b).data(0, b.size());
666
+ iterator begin = iterator::begin(data_buffers);
667
+ iterator start_pos = begin + search_position;
668
+ iterator end = iterator::end(data_buffers);
669
+
670
+ // Look for a match.
671
+ boost::match_results<iterator,
672
+ typename std::vector<boost::sub_match<iterator> >::allocator_type>
673
+ match_results;
674
+ if (regex_search(start_pos, end, match_results, expr,
675
+ boost::match_default | boost::match_partial))
676
+ {
677
+ if (match_results[0].matched)
678
+ {
679
+ // Full match. We're done.
680
+ ec = boost::system::error_code();
681
+ return match_results[0].second - begin;
682
+ }
683
+ else
684
+ {
685
+ // Partial match. Next search needs to start from beginning of match.
686
+ search_position = match_results[0].first - begin;
687
+ }
688
+ }
689
+ else
690
+ {
691
+ // No match. Next search can start with the new data.
692
+ search_position = end - begin;
693
+ }
694
+
695
+ // Check if buffer is full.
696
+ if (b.size() == b.max_size())
697
+ {
698
+ ec = error::not_found;
699
+ return 0;
700
+ }
701
+
702
+ // Need more data.
703
+ std::size_t bytes_to_read = std::min<std::size_t>(
704
+ std::max<std::size_t>(512, b.capacity() - b.size()),
705
+ std::min<std::size_t>(65536, b.max_size() - b.size()));
706
+ std::size_t pos = b.size();
707
+ b.grow(bytes_to_read);
708
+ std::size_t bytes_transferred = s.read_some(b.data(pos, bytes_to_read), ec);
709
+ b.shrink(bytes_to_read - bytes_transferred);
710
+ if (ec)
711
+ return 0;
712
+ }
713
+ }
714
+
715
+ #endif // defined(BOOST_ASIO_HAS_BOOST_REGEX)
716
+
717
+ template <typename SyncReadStream,
718
+ typename DynamicBuffer_v2, typename MatchCondition>
719
+ inline std::size_t read_until(SyncReadStream& s,
720
+ DynamicBuffer_v2 buffers, MatchCondition match_condition,
721
+ typename constraint<
722
+ is_match_condition<MatchCondition>::value
723
+ >::type,
724
+ typename constraint<
725
+ is_dynamic_buffer_v2<DynamicBuffer_v2>::value
726
+ >::type)
727
+ {
728
+ boost::system::error_code ec;
729
+ std::size_t bytes_transferred = read_until(s,
730
+ BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers),
731
+ match_condition, ec);
732
+ boost::asio::detail::throw_error(ec, "read_until");
733
+ return bytes_transferred;
734
+ }
735
+
736
+ template <typename SyncReadStream,
737
+ typename DynamicBuffer_v2, typename MatchCondition>
738
+ std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers,
739
+ MatchCondition match_condition, boost::system::error_code& ec,
740
+ typename constraint<
741
+ is_match_condition<MatchCondition>::value
742
+ >::type,
743
+ typename constraint<
744
+ is_dynamic_buffer_v2<DynamicBuffer_v2>::value
745
+ >::type)
746
+ {
747
+ DynamicBuffer_v2& b = buffers;
748
+
749
+ std::size_t search_position = 0;
750
+ for (;;)
751
+ {
752
+ // Determine the range of the data to be searched.
753
+ typedef typename DynamicBuffer_v2::const_buffers_type buffers_type;
754
+ typedef buffers_iterator<buffers_type> iterator;
755
+ buffers_type data_buffers =
756
+ const_cast<const DynamicBuffer_v2&>(b).data(0, b.size());
757
+ iterator begin = iterator::begin(data_buffers);
758
+ iterator start_pos = begin + search_position;
759
+ iterator end = iterator::end(data_buffers);
760
+
761
+ // Look for a match.
762
+ std::pair<iterator, bool> result = match_condition(start_pos, end);
763
+ if (result.second)
764
+ {
765
+ // Full match. We're done.
766
+ ec = boost::system::error_code();
767
+ return result.first - begin;
768
+ }
769
+ else if (result.first != end)
770
+ {
771
+ // Partial match. Next search needs to start from beginning of match.
772
+ search_position = result.first - begin;
773
+ }
774
+ else
775
+ {
776
+ // No match. Next search can start with the new data.
777
+ search_position = end - begin;
778
+ }
779
+
780
+ // Check if buffer is full.
781
+ if (b.size() == b.max_size())
782
+ {
783
+ ec = error::not_found;
784
+ return 0;
785
+ }
786
+
787
+ // Need more data.
788
+ std::size_t bytes_to_read = std::min<std::size_t>(
789
+ std::max<std::size_t>(512, b.capacity() - b.size()),
790
+ std::min<std::size_t>(65536, b.max_size() - b.size()));
791
+ std::size_t pos = b.size();
792
+ b.grow(bytes_to_read);
793
+ std::size_t bytes_transferred = s.read_some(b.data(pos, bytes_to_read), ec);
794
+ b.shrink(bytes_to_read - bytes_transferred);
795
+ if (ec)
796
+ return 0;
797
+ }
798
+ }
799
+
800
+ #endif // !defined(BOOST_ASIO_NO_EXTENSIONS)
801
+
802
+ #if !defined(BOOST_ASIO_NO_DYNAMIC_BUFFER_V1)
803
+
804
+ namespace detail
805
+ {
806
+ template <typename AsyncReadStream,
807
+ typename DynamicBuffer_v1, typename ReadHandler>
808
+ class read_until_delim_op_v1
809
+ : public base_from_cancellation_state<ReadHandler>
810
+ {
811
+ public:
812
+ template <typename BufferSequence>
813
+ read_until_delim_op_v1(AsyncReadStream& stream,
814
+ BOOST_ASIO_MOVE_ARG(BufferSequence) buffers,
815
+ char delim, ReadHandler& handler)
816
+ : base_from_cancellation_state<ReadHandler>(
817
+ handler, enable_partial_cancellation()),
818
+ stream_(stream),
819
+ buffers_(BOOST_ASIO_MOVE_CAST(BufferSequence)(buffers)),
820
+ delim_(delim),
821
+ start_(0),
822
+ search_position_(0),
823
+ handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(handler))
824
+ {
825
+ }
826
+
827
+ #if defined(BOOST_ASIO_HAS_MOVE)
828
+ read_until_delim_op_v1(const read_until_delim_op_v1& other)
829
+ : base_from_cancellation_state<ReadHandler>(other),
830
+ stream_(other.stream_),
831
+ buffers_(other.buffers_),
832
+ delim_(other.delim_),
833
+ start_(other.start_),
834
+ search_position_(other.search_position_),
835
+ handler_(other.handler_)
836
+ {
837
+ }
838
+
839
+ read_until_delim_op_v1(read_until_delim_op_v1&& other)
840
+ : base_from_cancellation_state<ReadHandler>(
841
+ BOOST_ASIO_MOVE_CAST(base_from_cancellation_state<
842
+ ReadHandler>)(other)),
843
+ stream_(other.stream_),
844
+ buffers_(BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(other.buffers_)),
845
+ delim_(other.delim_),
846
+ start_(other.start_),
847
+ search_position_(other.search_position_),
848
+ handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(other.handler_))
849
+ {
850
+ }
851
+ #endif // defined(BOOST_ASIO_HAS_MOVE)
852
+
853
+ void operator()(boost::system::error_code ec,
854
+ std::size_t bytes_transferred, int start = 0)
855
+ {
856
+ const std::size_t not_found = (std::numeric_limits<std::size_t>::max)();
857
+ std::size_t bytes_to_read;
858
+ switch (start_ = start)
859
+ {
860
+ case 1:
861
+ for (;;)
862
+ {
863
+ {
864
+ // Determine the range of the data to be searched.
865
+ typedef typename DynamicBuffer_v1::const_buffers_type
866
+ buffers_type;
867
+ typedef buffers_iterator<buffers_type> iterator;
868
+ buffers_type data_buffers = buffers_.data();
869
+ iterator begin = iterator::begin(data_buffers);
870
+ iterator start_pos = begin + search_position_;
871
+ iterator end = iterator::end(data_buffers);
872
+
873
+ // Look for a match.
874
+ iterator iter = std::find(start_pos, end, delim_);
875
+ if (iter != end)
876
+ {
877
+ // Found a match. We're done.
878
+ search_position_ = iter - begin + 1;
879
+ bytes_to_read = 0;
880
+ }
881
+
882
+ // No match yet. Check if buffer is full.
883
+ else if (buffers_.size() == buffers_.max_size())
884
+ {
885
+ search_position_ = not_found;
886
+ bytes_to_read = 0;
887
+ }
888
+
889
+ // Need to read some more data.
890
+ else
891
+ {
892
+ // Next search can start with the new data.
893
+ search_position_ = end - begin;
894
+ bytes_to_read = std::min<std::size_t>(
895
+ std::max<std::size_t>(512,
896
+ buffers_.capacity() - buffers_.size()),
897
+ std::min<std::size_t>(65536,
898
+ buffers_.max_size() - buffers_.size()));
899
+ }
900
+ }
901
+
902
+ // Check if we're done.
903
+ if (!start && bytes_to_read == 0)
904
+ break;
905
+
906
+ // Start a new asynchronous read operation to obtain more data.
907
+ {
908
+ BOOST_ASIO_HANDLER_LOCATION((
909
+ __FILE__, __LINE__, "async_read_until"));
910
+ stream_.async_read_some(buffers_.prepare(bytes_to_read),
911
+ BOOST_ASIO_MOVE_CAST(read_until_delim_op_v1)(*this));
912
+ }
913
+ return; default:
914
+ buffers_.commit(bytes_transferred);
915
+ if (ec || bytes_transferred == 0)
916
+ break;
917
+ if (this->cancelled() != cancellation_type::none)
918
+ {
919
+ ec = error::operation_aborted;
920
+ break;
921
+ }
922
+ }
923
+
924
+ const boost::system::error_code result_ec =
925
+ (search_position_ == not_found)
926
+ ? error::not_found : ec;
927
+
928
+ const std::size_t result_n =
929
+ (ec || search_position_ == not_found)
930
+ ? 0 : search_position_;
931
+
932
+ BOOST_ASIO_MOVE_OR_LVALUE(ReadHandler)(handler_)(result_ec, result_n);
933
+ }
934
+ }
935
+
936
+ //private:
937
+ AsyncReadStream& stream_;
938
+ DynamicBuffer_v1 buffers_;
939
+ char delim_;
940
+ int start_;
941
+ std::size_t search_position_;
942
+ ReadHandler handler_;
943
+ };
944
+
945
+ template <typename AsyncReadStream,
946
+ typename DynamicBuffer_v1, typename ReadHandler>
947
+ inline asio_handler_allocate_is_deprecated
948
+ asio_handler_allocate(std::size_t size,
949
+ read_until_delim_op_v1<AsyncReadStream,
950
+ DynamicBuffer_v1, ReadHandler>* this_handler)
951
+ {
952
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
953
+ boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
954
+ return asio_handler_allocate_is_no_longer_used();
955
+ #else // defined(BOOST_ASIO_NO_DEPRECATED)
956
+ return boost_asio_handler_alloc_helpers::allocate(
957
+ size, this_handler->handler_);
958
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
959
+ }
960
+
961
+ template <typename AsyncReadStream,
962
+ typename DynamicBuffer_v1, typename ReadHandler>
963
+ inline asio_handler_deallocate_is_deprecated
964
+ asio_handler_deallocate(void* pointer, std::size_t size,
965
+ read_until_delim_op_v1<AsyncReadStream,
966
+ DynamicBuffer_v1, ReadHandler>* this_handler)
967
+ {
968
+ boost_asio_handler_alloc_helpers::deallocate(
969
+ pointer, size, this_handler->handler_);
970
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
971
+ return asio_handler_deallocate_is_no_longer_used();
972
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
973
+ }
974
+
975
+ template <typename AsyncReadStream,
976
+ typename DynamicBuffer_v1, typename ReadHandler>
977
+ inline bool asio_handler_is_continuation(
978
+ read_until_delim_op_v1<AsyncReadStream,
979
+ DynamicBuffer_v1, ReadHandler>* this_handler)
980
+ {
981
+ return this_handler->start_ == 0 ? true
982
+ : boost_asio_handler_cont_helpers::is_continuation(
983
+ this_handler->handler_);
984
+ }
985
+
986
+ template <typename Function, typename AsyncReadStream,
987
+ typename DynamicBuffer_v1, typename ReadHandler>
988
+ inline asio_handler_invoke_is_deprecated
989
+ asio_handler_invoke(Function& function,
990
+ read_until_delim_op_v1<AsyncReadStream,
991
+ DynamicBuffer_v1, ReadHandler>* this_handler)
992
+ {
993
+ boost_asio_handler_invoke_helpers::invoke(
994
+ function, this_handler->handler_);
995
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
996
+ return asio_handler_invoke_is_no_longer_used();
997
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
998
+ }
999
+
1000
+ template <typename Function, typename AsyncReadStream,
1001
+ typename DynamicBuffer_v1, typename ReadHandler>
1002
+ inline asio_handler_invoke_is_deprecated
1003
+ asio_handler_invoke(const Function& function,
1004
+ read_until_delim_op_v1<AsyncReadStream,
1005
+ DynamicBuffer_v1, ReadHandler>* this_handler)
1006
+ {
1007
+ boost_asio_handler_invoke_helpers::invoke(
1008
+ function, this_handler->handler_);
1009
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
1010
+ return asio_handler_invoke_is_no_longer_used();
1011
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1012
+ }
1013
+
1014
+ template <typename AsyncReadStream>
1015
+ class initiate_async_read_until_delim_v1
1016
+ {
1017
+ public:
1018
+ typedef typename AsyncReadStream::executor_type executor_type;
1019
+
1020
+ explicit initiate_async_read_until_delim_v1(AsyncReadStream& stream)
1021
+ : stream_(stream)
1022
+ {
1023
+ }
1024
+
1025
+ executor_type get_executor() const BOOST_ASIO_NOEXCEPT
1026
+ {
1027
+ return stream_.get_executor();
1028
+ }
1029
+
1030
+ template <typename ReadHandler, typename DynamicBuffer_v1>
1031
+ void operator()(BOOST_ASIO_MOVE_ARG(ReadHandler) handler,
1032
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers,
1033
+ char delim) const
1034
+ {
1035
+ // If you get an error on the following line it means that your handler
1036
+ // does not meet the documented type requirements for a ReadHandler.
1037
+ BOOST_ASIO_READ_HANDLER_CHECK(ReadHandler, handler) type_check;
1038
+
1039
+ non_const_lvalue<ReadHandler> handler2(handler);
1040
+ read_until_delim_op_v1<AsyncReadStream,
1041
+ typename decay<DynamicBuffer_v1>::type,
1042
+ typename decay<ReadHandler>::type>(
1043
+ stream_, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers),
1044
+ delim, handler2.value)(boost::system::error_code(), 0, 1);
1045
+ }
1046
+
1047
+ private:
1048
+ AsyncReadStream& stream_;
1049
+ };
1050
+ } // namespace detail
1051
+
1052
+ #if !defined(GENERATING_DOCUMENTATION)
1053
+
1054
+ template <template <typename, typename> class Associator,
1055
+ typename AsyncReadStream, typename DynamicBuffer_v1,
1056
+ typename ReadHandler, typename DefaultCandidate>
1057
+ struct associator<Associator,
1058
+ detail::read_until_delim_op_v1<AsyncReadStream,
1059
+ DynamicBuffer_v1, ReadHandler>,
1060
+ DefaultCandidate>
1061
+ : Associator<ReadHandler, DefaultCandidate>
1062
+ {
1063
+ static typename Associator<ReadHandler, DefaultCandidate>::type get(
1064
+ const detail::read_until_delim_op_v1<AsyncReadStream,
1065
+ DynamicBuffer_v1, ReadHandler>& h,
1066
+ const DefaultCandidate& c = DefaultCandidate()) BOOST_ASIO_NOEXCEPT
1067
+ {
1068
+ return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
1069
+ }
1070
+ };
1071
+
1072
+ #endif // !defined(GENERATING_DOCUMENTATION)
1073
+
1074
+ template <typename AsyncReadStream, typename DynamicBuffer_v1,
1075
+ BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
1076
+ std::size_t)) ReadToken>
1077
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(ReadToken,
1078
+ void (boost::system::error_code, std::size_t))
1079
+ async_read_until(AsyncReadStream& s,
1080
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers,
1081
+ char delim, BOOST_ASIO_MOVE_ARG(ReadToken) token,
1082
+ typename constraint<
1083
+ is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value
1084
+ >::type,
1085
+ typename constraint<
1086
+ !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
1087
+ >::type)
1088
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
1089
+ async_initiate<ReadToken,
1090
+ void (boost::system::error_code, std::size_t)>(
1091
+ declval<detail::initiate_async_read_until_delim_v1<AsyncReadStream> >(),
1092
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers), delim)))
1093
+ {
1094
+ return async_initiate<ReadToken,
1095
+ void (boost::system::error_code, std::size_t)>(
1096
+ detail::initiate_async_read_until_delim_v1<AsyncReadStream>(s),
1097
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers), delim);
1098
+ }
1099
+
1100
+ namespace detail
1101
+ {
1102
+ template <typename AsyncReadStream,
1103
+ typename DynamicBuffer_v1, typename ReadHandler>
1104
+ class read_until_delim_string_op_v1
1105
+ : public base_from_cancellation_state<ReadHandler>
1106
+ {
1107
+ public:
1108
+ template <typename BufferSequence>
1109
+ read_until_delim_string_op_v1(AsyncReadStream& stream,
1110
+ BOOST_ASIO_MOVE_ARG(BufferSequence) buffers,
1111
+ const std::string& delim, ReadHandler& handler)
1112
+ : base_from_cancellation_state<ReadHandler>(
1113
+ handler, enable_partial_cancellation()),
1114
+ stream_(stream),
1115
+ buffers_(BOOST_ASIO_MOVE_CAST(BufferSequence)(buffers)),
1116
+ delim_(delim),
1117
+ start_(0),
1118
+ search_position_(0),
1119
+ handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(handler))
1120
+ {
1121
+ }
1122
+
1123
+ #if defined(BOOST_ASIO_HAS_MOVE)
1124
+ read_until_delim_string_op_v1(const read_until_delim_string_op_v1& other)
1125
+ : base_from_cancellation_state<ReadHandler>(other),
1126
+ stream_(other.stream_),
1127
+ buffers_(other.buffers_),
1128
+ delim_(other.delim_),
1129
+ start_(other.start_),
1130
+ search_position_(other.search_position_),
1131
+ handler_(other.handler_)
1132
+ {
1133
+ }
1134
+
1135
+ read_until_delim_string_op_v1(read_until_delim_string_op_v1&& other)
1136
+ : base_from_cancellation_state<ReadHandler>(
1137
+ BOOST_ASIO_MOVE_CAST(base_from_cancellation_state<
1138
+ ReadHandler>)(other)),
1139
+ stream_(other.stream_),
1140
+ buffers_(BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(other.buffers_)),
1141
+ delim_(BOOST_ASIO_MOVE_CAST(std::string)(other.delim_)),
1142
+ start_(other.start_),
1143
+ search_position_(other.search_position_),
1144
+ handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(other.handler_))
1145
+ {
1146
+ }
1147
+ #endif // defined(BOOST_ASIO_HAS_MOVE)
1148
+
1149
+ void operator()(boost::system::error_code ec,
1150
+ std::size_t bytes_transferred, int start = 0)
1151
+ {
1152
+ const std::size_t not_found = (std::numeric_limits<std::size_t>::max)();
1153
+ std::size_t bytes_to_read;
1154
+ switch (start_ = start)
1155
+ {
1156
+ case 1:
1157
+ for (;;)
1158
+ {
1159
+ {
1160
+ // Determine the range of the data to be searched.
1161
+ typedef typename DynamicBuffer_v1::const_buffers_type
1162
+ buffers_type;
1163
+ typedef buffers_iterator<buffers_type> iterator;
1164
+ buffers_type data_buffers = buffers_.data();
1165
+ iterator begin = iterator::begin(data_buffers);
1166
+ iterator start_pos = begin + search_position_;
1167
+ iterator end = iterator::end(data_buffers);
1168
+
1169
+ // Look for a match.
1170
+ std::pair<iterator, bool> result = detail::partial_search(
1171
+ start_pos, end, delim_.begin(), delim_.end());
1172
+ if (result.first != end && result.second)
1173
+ {
1174
+ // Full match. We're done.
1175
+ search_position_ = result.first - begin + delim_.length();
1176
+ bytes_to_read = 0;
1177
+ }
1178
+
1179
+ // No match yet. Check if buffer is full.
1180
+ else if (buffers_.size() == buffers_.max_size())
1181
+ {
1182
+ search_position_ = not_found;
1183
+ bytes_to_read = 0;
1184
+ }
1185
+
1186
+ // Need to read some more data.
1187
+ else
1188
+ {
1189
+ if (result.first != end)
1190
+ {
1191
+ // Partial match. Next search needs to start from beginning of
1192
+ // match.
1193
+ search_position_ = result.first - begin;
1194
+ }
1195
+ else
1196
+ {
1197
+ // Next search can start with the new data.
1198
+ search_position_ = end - begin;
1199
+ }
1200
+
1201
+ bytes_to_read = std::min<std::size_t>(
1202
+ std::max<std::size_t>(512,
1203
+ buffers_.capacity() - buffers_.size()),
1204
+ std::min<std::size_t>(65536,
1205
+ buffers_.max_size() - buffers_.size()));
1206
+ }
1207
+ }
1208
+
1209
+ // Check if we're done.
1210
+ if (!start && bytes_to_read == 0)
1211
+ break;
1212
+
1213
+ // Start a new asynchronous read operation to obtain more data.
1214
+ {
1215
+ BOOST_ASIO_HANDLER_LOCATION((
1216
+ __FILE__, __LINE__, "async_read_until"));
1217
+ stream_.async_read_some(buffers_.prepare(bytes_to_read),
1218
+ BOOST_ASIO_MOVE_CAST(read_until_delim_string_op_v1)(*this));
1219
+ }
1220
+ return; default:
1221
+ buffers_.commit(bytes_transferred);
1222
+ if (ec || bytes_transferred == 0)
1223
+ break;
1224
+ if (this->cancelled() != cancellation_type::none)
1225
+ {
1226
+ ec = error::operation_aborted;
1227
+ break;
1228
+ }
1229
+ }
1230
+
1231
+ const boost::system::error_code result_ec =
1232
+ (search_position_ == not_found)
1233
+ ? error::not_found : ec;
1234
+
1235
+ const std::size_t result_n =
1236
+ (ec || search_position_ == not_found)
1237
+ ? 0 : search_position_;
1238
+
1239
+ BOOST_ASIO_MOVE_OR_LVALUE(ReadHandler)(handler_)(result_ec, result_n);
1240
+ }
1241
+ }
1242
+
1243
+ //private:
1244
+ AsyncReadStream& stream_;
1245
+ DynamicBuffer_v1 buffers_;
1246
+ std::string delim_;
1247
+ int start_;
1248
+ std::size_t search_position_;
1249
+ ReadHandler handler_;
1250
+ };
1251
+
1252
+ template <typename AsyncReadStream,
1253
+ typename DynamicBuffer_v1, typename ReadHandler>
1254
+ inline asio_handler_allocate_is_deprecated
1255
+ asio_handler_allocate(std::size_t size,
1256
+ read_until_delim_string_op_v1<AsyncReadStream,
1257
+ DynamicBuffer_v1, ReadHandler>* this_handler)
1258
+ {
1259
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
1260
+ boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
1261
+ return asio_handler_allocate_is_no_longer_used();
1262
+ #else // defined(BOOST_ASIO_NO_DEPRECATED)
1263
+ return boost_asio_handler_alloc_helpers::allocate(
1264
+ size, this_handler->handler_);
1265
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1266
+ }
1267
+
1268
+ template <typename AsyncReadStream,
1269
+ typename DynamicBuffer_v1, typename ReadHandler>
1270
+ inline asio_handler_deallocate_is_deprecated
1271
+ asio_handler_deallocate(void* pointer, std::size_t size,
1272
+ read_until_delim_string_op_v1<AsyncReadStream,
1273
+ DynamicBuffer_v1, ReadHandler>* this_handler)
1274
+ {
1275
+ boost_asio_handler_alloc_helpers::deallocate(
1276
+ pointer, size, this_handler->handler_);
1277
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
1278
+ return asio_handler_deallocate_is_no_longer_used();
1279
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1280
+ }
1281
+
1282
+ template <typename AsyncReadStream,
1283
+ typename DynamicBuffer_v1, typename ReadHandler>
1284
+ inline bool asio_handler_is_continuation(
1285
+ read_until_delim_string_op_v1<AsyncReadStream,
1286
+ DynamicBuffer_v1, ReadHandler>* this_handler)
1287
+ {
1288
+ return this_handler->start_ == 0 ? true
1289
+ : boost_asio_handler_cont_helpers::is_continuation(
1290
+ this_handler->handler_);
1291
+ }
1292
+
1293
+ template <typename Function, typename AsyncReadStream,
1294
+ typename DynamicBuffer_v1, typename ReadHandler>
1295
+ inline asio_handler_invoke_is_deprecated
1296
+ asio_handler_invoke(Function& function,
1297
+ read_until_delim_string_op_v1<AsyncReadStream,
1298
+ DynamicBuffer_v1, ReadHandler>* this_handler)
1299
+ {
1300
+ boost_asio_handler_invoke_helpers::invoke(
1301
+ function, this_handler->handler_);
1302
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
1303
+ return asio_handler_invoke_is_no_longer_used();
1304
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1305
+ }
1306
+
1307
+ template <typename Function, typename AsyncReadStream,
1308
+ typename DynamicBuffer_v1, typename ReadHandler>
1309
+ inline asio_handler_invoke_is_deprecated
1310
+ asio_handler_invoke(const Function& function,
1311
+ read_until_delim_string_op_v1<AsyncReadStream,
1312
+ DynamicBuffer_v1, ReadHandler>* this_handler)
1313
+ {
1314
+ boost_asio_handler_invoke_helpers::invoke(
1315
+ function, this_handler->handler_);
1316
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
1317
+ return asio_handler_invoke_is_no_longer_used();
1318
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1319
+ }
1320
+
1321
+ template <typename AsyncReadStream>
1322
+ class initiate_async_read_until_delim_string_v1
1323
+ {
1324
+ public:
1325
+ typedef typename AsyncReadStream::executor_type executor_type;
1326
+
1327
+ explicit initiate_async_read_until_delim_string_v1(AsyncReadStream& stream)
1328
+ : stream_(stream)
1329
+ {
1330
+ }
1331
+
1332
+ executor_type get_executor() const BOOST_ASIO_NOEXCEPT
1333
+ {
1334
+ return stream_.get_executor();
1335
+ }
1336
+
1337
+ template <typename ReadHandler, typename DynamicBuffer_v1>
1338
+ void operator()(BOOST_ASIO_MOVE_ARG(ReadHandler) handler,
1339
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers,
1340
+ const std::string& delim) const
1341
+ {
1342
+ // If you get an error on the following line it means that your handler
1343
+ // does not meet the documented type requirements for a ReadHandler.
1344
+ BOOST_ASIO_READ_HANDLER_CHECK(ReadHandler, handler) type_check;
1345
+
1346
+ non_const_lvalue<ReadHandler> handler2(handler);
1347
+ read_until_delim_string_op_v1<AsyncReadStream,
1348
+ typename decay<DynamicBuffer_v1>::type,
1349
+ typename decay<ReadHandler>::type>(
1350
+ stream_, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers),
1351
+ delim, handler2.value)(boost::system::error_code(), 0, 1);
1352
+ }
1353
+
1354
+ private:
1355
+ AsyncReadStream& stream_;
1356
+ };
1357
+ } // namespace detail
1358
+
1359
+ #if !defined(GENERATING_DOCUMENTATION)
1360
+
1361
+ template <template <typename, typename> class Associator,
1362
+ typename AsyncReadStream, typename DynamicBuffer_v1,
1363
+ typename ReadHandler, typename DefaultCandidate>
1364
+ struct associator<Associator,
1365
+ detail::read_until_delim_string_op_v1<AsyncReadStream,
1366
+ DynamicBuffer_v1, ReadHandler>,
1367
+ DefaultCandidate>
1368
+ : Associator<ReadHandler, DefaultCandidate>
1369
+ {
1370
+ static typename Associator<ReadHandler, DefaultCandidate>::type get(
1371
+ const detail::read_until_delim_string_op_v1<AsyncReadStream,
1372
+ DynamicBuffer_v1, ReadHandler>& h,
1373
+ const DefaultCandidate& c = DefaultCandidate()) BOOST_ASIO_NOEXCEPT
1374
+ {
1375
+ return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
1376
+ }
1377
+ };
1378
+
1379
+ #endif // !defined(GENERATING_DOCUMENTATION)
1380
+
1381
+ template <typename AsyncReadStream, typename DynamicBuffer_v1,
1382
+ BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
1383
+ std::size_t)) ReadToken>
1384
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(ReadToken,
1385
+ void (boost::system::error_code, std::size_t))
1386
+ async_read_until(AsyncReadStream& s,
1387
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers,
1388
+ BOOST_ASIO_STRING_VIEW_PARAM delim,
1389
+ BOOST_ASIO_MOVE_ARG(ReadToken) token,
1390
+ typename constraint<
1391
+ is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value
1392
+ >::type,
1393
+ typename constraint<
1394
+ !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
1395
+ >::type)
1396
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
1397
+ async_initiate<ReadToken,
1398
+ void (boost::system::error_code, std::size_t)>(
1399
+ declval<detail::initiate_async_read_until_delim_string_v1<
1400
+ AsyncReadStream> >(),
1401
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers),
1402
+ static_cast<std::string>(delim))))
1403
+ {
1404
+ return async_initiate<ReadToken,
1405
+ void (boost::system::error_code, std::size_t)>(
1406
+ detail::initiate_async_read_until_delim_string_v1<AsyncReadStream>(s),
1407
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers),
1408
+ static_cast<std::string>(delim));
1409
+ }
1410
+
1411
+ #if !defined(BOOST_ASIO_NO_EXTENSIONS)
1412
+ #if defined(BOOST_ASIO_HAS_BOOST_REGEX)
1413
+
1414
+ namespace detail
1415
+ {
1416
+ template <typename AsyncReadStream, typename DynamicBuffer_v1,
1417
+ typename RegEx, typename ReadHandler>
1418
+ class read_until_expr_op_v1
1419
+ : public base_from_cancellation_state<ReadHandler>
1420
+ {
1421
+ public:
1422
+ template <typename BufferSequence>
1423
+ read_until_expr_op_v1(AsyncReadStream& stream,
1424
+ BOOST_ASIO_MOVE_ARG(BufferSequence) buffers,
1425
+ const boost::regex& expr, ReadHandler& handler)
1426
+ : base_from_cancellation_state<ReadHandler>(
1427
+ handler, enable_partial_cancellation()),
1428
+ stream_(stream),
1429
+ buffers_(BOOST_ASIO_MOVE_CAST(BufferSequence)(buffers)),
1430
+ expr_(expr),
1431
+ start_(0),
1432
+ search_position_(0),
1433
+ handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(handler))
1434
+ {
1435
+ }
1436
+
1437
+ #if defined(BOOST_ASIO_HAS_MOVE)
1438
+ read_until_expr_op_v1(const read_until_expr_op_v1& other)
1439
+ : base_from_cancellation_state<ReadHandler>(other),
1440
+ stream_(other.stream_),
1441
+ buffers_(other.buffers_),
1442
+ expr_(other.expr_),
1443
+ start_(other.start_),
1444
+ search_position_(other.search_position_),
1445
+ handler_(other.handler_)
1446
+ {
1447
+ }
1448
+
1449
+ read_until_expr_op_v1(read_until_expr_op_v1&& other)
1450
+ : base_from_cancellation_state<ReadHandler>(
1451
+ BOOST_ASIO_MOVE_CAST(base_from_cancellation_state<
1452
+ ReadHandler>)(other)),
1453
+ stream_(other.stream_),
1454
+ buffers_(BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(other.buffers_)),
1455
+ expr_(other.expr_),
1456
+ start_(other.start_),
1457
+ search_position_(other.search_position_),
1458
+ handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(other.handler_))
1459
+ {
1460
+ }
1461
+ #endif // defined(BOOST_ASIO_HAS_MOVE)
1462
+
1463
+ void operator()(boost::system::error_code ec,
1464
+ std::size_t bytes_transferred, int start = 0)
1465
+ {
1466
+ const std::size_t not_found = (std::numeric_limits<std::size_t>::max)();
1467
+ std::size_t bytes_to_read;
1468
+ switch (start_ = start)
1469
+ {
1470
+ case 1:
1471
+ for (;;)
1472
+ {
1473
+ {
1474
+ // Determine the range of the data to be searched.
1475
+ typedef typename DynamicBuffer_v1::const_buffers_type
1476
+ buffers_type;
1477
+ typedef buffers_iterator<buffers_type> iterator;
1478
+ buffers_type data_buffers = buffers_.data();
1479
+ iterator begin = iterator::begin(data_buffers);
1480
+ iterator start_pos = begin + search_position_;
1481
+ iterator end = iterator::end(data_buffers);
1482
+
1483
+ // Look for a match.
1484
+ boost::match_results<iterator,
1485
+ typename std::vector<boost::sub_match<iterator> >::allocator_type>
1486
+ match_results;
1487
+ bool match = regex_search(start_pos, end, match_results, expr_,
1488
+ boost::match_default | boost::match_partial);
1489
+ if (match && match_results[0].matched)
1490
+ {
1491
+ // Full match. We're done.
1492
+ search_position_ = match_results[0].second - begin;
1493
+ bytes_to_read = 0;
1494
+ }
1495
+
1496
+ // No match yet. Check if buffer is full.
1497
+ else if (buffers_.size() == buffers_.max_size())
1498
+ {
1499
+ search_position_ = not_found;
1500
+ bytes_to_read = 0;
1501
+ }
1502
+
1503
+ // Need to read some more data.
1504
+ else
1505
+ {
1506
+ if (match)
1507
+ {
1508
+ // Partial match. Next search needs to start from beginning of
1509
+ // match.
1510
+ search_position_ = match_results[0].first - begin;
1511
+ }
1512
+ else
1513
+ {
1514
+ // Next search can start with the new data.
1515
+ search_position_ = end - begin;
1516
+ }
1517
+
1518
+ bytes_to_read = std::min<std::size_t>(
1519
+ std::max<std::size_t>(512,
1520
+ buffers_.capacity() - buffers_.size()),
1521
+ std::min<std::size_t>(65536,
1522
+ buffers_.max_size() - buffers_.size()));
1523
+ }
1524
+ }
1525
+
1526
+ // Check if we're done.
1527
+ if (!start && bytes_to_read == 0)
1528
+ break;
1529
+
1530
+ // Start a new asynchronous read operation to obtain more data.
1531
+ {
1532
+ BOOST_ASIO_HANDLER_LOCATION((
1533
+ __FILE__, __LINE__, "async_read_until"));
1534
+ stream_.async_read_some(buffers_.prepare(bytes_to_read),
1535
+ BOOST_ASIO_MOVE_CAST(read_until_expr_op_v1)(*this));
1536
+ }
1537
+ return; default:
1538
+ buffers_.commit(bytes_transferred);
1539
+ if (ec || bytes_transferred == 0)
1540
+ break;
1541
+ if (this->cancelled() != cancellation_type::none)
1542
+ {
1543
+ ec = error::operation_aborted;
1544
+ break;
1545
+ }
1546
+ }
1547
+
1548
+ const boost::system::error_code result_ec =
1549
+ (search_position_ == not_found)
1550
+ ? error::not_found : ec;
1551
+
1552
+ const std::size_t result_n =
1553
+ (ec || search_position_ == not_found)
1554
+ ? 0 : search_position_;
1555
+
1556
+ BOOST_ASIO_MOVE_OR_LVALUE(ReadHandler)(handler_)(result_ec, result_n);
1557
+ }
1558
+ }
1559
+
1560
+ //private:
1561
+ AsyncReadStream& stream_;
1562
+ DynamicBuffer_v1 buffers_;
1563
+ RegEx expr_;
1564
+ int start_;
1565
+ std::size_t search_position_;
1566
+ ReadHandler handler_;
1567
+ };
1568
+
1569
+ template <typename AsyncReadStream, typename DynamicBuffer_v1,
1570
+ typename RegEx, typename ReadHandler>
1571
+ inline asio_handler_allocate_is_deprecated
1572
+ asio_handler_allocate(std::size_t size,
1573
+ read_until_expr_op_v1<AsyncReadStream,
1574
+ DynamicBuffer_v1, RegEx, ReadHandler>* this_handler)
1575
+ {
1576
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
1577
+ boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
1578
+ return asio_handler_allocate_is_no_longer_used();
1579
+ #else // defined(BOOST_ASIO_NO_DEPRECATED)
1580
+ return boost_asio_handler_alloc_helpers::allocate(
1581
+ size, this_handler->handler_);
1582
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1583
+ }
1584
+
1585
+ template <typename AsyncReadStream, typename DynamicBuffer_v1,
1586
+ typename RegEx, typename ReadHandler>
1587
+ inline asio_handler_deallocate_is_deprecated
1588
+ asio_handler_deallocate(void* pointer, std::size_t size,
1589
+ read_until_expr_op_v1<AsyncReadStream,
1590
+ DynamicBuffer_v1, RegEx, ReadHandler>* this_handler)
1591
+ {
1592
+ boost_asio_handler_alloc_helpers::deallocate(
1593
+ pointer, size, this_handler->handler_);
1594
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
1595
+ return asio_handler_deallocate_is_no_longer_used();
1596
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1597
+ }
1598
+
1599
+ template <typename AsyncReadStream, typename DynamicBuffer_v1,
1600
+ typename RegEx, typename ReadHandler>
1601
+ inline bool asio_handler_is_continuation(
1602
+ read_until_expr_op_v1<AsyncReadStream,
1603
+ DynamicBuffer_v1, RegEx, ReadHandler>* this_handler)
1604
+ {
1605
+ return this_handler->start_ == 0 ? true
1606
+ : boost_asio_handler_cont_helpers::is_continuation(
1607
+ this_handler->handler_);
1608
+ }
1609
+
1610
+ template <typename Function, typename AsyncReadStream,
1611
+ typename DynamicBuffer_v1, typename RegEx, typename ReadHandler>
1612
+ inline asio_handler_invoke_is_deprecated
1613
+ asio_handler_invoke(Function& function,
1614
+ read_until_expr_op_v1<AsyncReadStream,
1615
+ DynamicBuffer_v1, RegEx, ReadHandler>* this_handler)
1616
+ {
1617
+ boost_asio_handler_invoke_helpers::invoke(
1618
+ function, this_handler->handler_);
1619
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
1620
+ return asio_handler_invoke_is_no_longer_used();
1621
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1622
+ }
1623
+
1624
+ template <typename Function, typename AsyncReadStream,
1625
+ typename DynamicBuffer_v1, typename RegEx, typename ReadHandler>
1626
+ inline asio_handler_invoke_is_deprecated
1627
+ asio_handler_invoke(const Function& function,
1628
+ read_until_expr_op_v1<AsyncReadStream,
1629
+ DynamicBuffer_v1, RegEx, ReadHandler>* this_handler)
1630
+ {
1631
+ boost_asio_handler_invoke_helpers::invoke(
1632
+ function, this_handler->handler_);
1633
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
1634
+ return asio_handler_invoke_is_no_longer_used();
1635
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1636
+ }
1637
+
1638
+ template <typename AsyncReadStream>
1639
+ class initiate_async_read_until_expr_v1
1640
+ {
1641
+ public:
1642
+ typedef typename AsyncReadStream::executor_type executor_type;
1643
+
1644
+ explicit initiate_async_read_until_expr_v1(AsyncReadStream& stream)
1645
+ : stream_(stream)
1646
+ {
1647
+ }
1648
+
1649
+ executor_type get_executor() const BOOST_ASIO_NOEXCEPT
1650
+ {
1651
+ return stream_.get_executor();
1652
+ }
1653
+
1654
+ template <typename ReadHandler, typename DynamicBuffer_v1, typename RegEx>
1655
+ void operator()(BOOST_ASIO_MOVE_ARG(ReadHandler) handler,
1656
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers, const RegEx& expr) const
1657
+ {
1658
+ // If you get an error on the following line it means that your handler
1659
+ // does not meet the documented type requirements for a ReadHandler.
1660
+ BOOST_ASIO_READ_HANDLER_CHECK(ReadHandler, handler) type_check;
1661
+
1662
+ non_const_lvalue<ReadHandler> handler2(handler);
1663
+ read_until_expr_op_v1<AsyncReadStream,
1664
+ typename decay<DynamicBuffer_v1>::type,
1665
+ RegEx, typename decay<ReadHandler>::type>(
1666
+ stream_, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers),
1667
+ expr, handler2.value)(boost::system::error_code(), 0, 1);
1668
+ }
1669
+
1670
+ private:
1671
+ AsyncReadStream& stream_;
1672
+ };
1673
+ } // namespace detail
1674
+
1675
+ #if !defined(GENERATING_DOCUMENTATION)
1676
+
1677
+ template <template <typename, typename> class Associator,
1678
+ typename AsyncReadStream, typename DynamicBuffer_v1,
1679
+ typename RegEx, typename ReadHandler, typename DefaultCandidate>
1680
+ struct associator<Associator,
1681
+ detail::read_until_expr_op_v1<AsyncReadStream,
1682
+ DynamicBuffer_v1, RegEx, ReadHandler>,
1683
+ DefaultCandidate>
1684
+ : Associator<ReadHandler, DefaultCandidate>
1685
+ {
1686
+ static typename Associator<ReadHandler, DefaultCandidate>::type get(
1687
+ const detail::read_until_expr_op_v1<AsyncReadStream,
1688
+ DynamicBuffer_v1, RegEx, ReadHandler>& h,
1689
+ const DefaultCandidate& c = DefaultCandidate()) BOOST_ASIO_NOEXCEPT
1690
+ {
1691
+ return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
1692
+ }
1693
+ };
1694
+
1695
+ #endif // !defined(GENERATING_DOCUMENTATION)
1696
+
1697
+ template <typename AsyncReadStream, typename DynamicBuffer_v1,
1698
+ BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
1699
+ std::size_t)) ReadToken>
1700
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(ReadToken,
1701
+ void (boost::system::error_code, std::size_t))
1702
+ async_read_until(AsyncReadStream& s,
1703
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers,
1704
+ const boost::regex& expr,
1705
+ BOOST_ASIO_MOVE_ARG(ReadToken) token,
1706
+ typename constraint<
1707
+ is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value
1708
+ >::type,
1709
+ typename constraint<
1710
+ !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
1711
+ >::type)
1712
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
1713
+ async_initiate<ReadToken,
1714
+ void (boost::system::error_code, std::size_t)>(
1715
+ declval<detail::initiate_async_read_until_expr_v1<AsyncReadStream> >(),
1716
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers), expr)))
1717
+ {
1718
+ return async_initiate<ReadToken,
1719
+ void (boost::system::error_code, std::size_t)>(
1720
+ detail::initiate_async_read_until_expr_v1<AsyncReadStream>(s),
1721
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers), expr);
1722
+ }
1723
+
1724
+ #endif // defined(BOOST_ASIO_HAS_BOOST_REGEX)
1725
+
1726
+ namespace detail
1727
+ {
1728
+ template <typename AsyncReadStream, typename DynamicBuffer_v1,
1729
+ typename MatchCondition, typename ReadHandler>
1730
+ class read_until_match_op_v1
1731
+ : public base_from_cancellation_state<ReadHandler>
1732
+ {
1733
+ public:
1734
+ template <typename BufferSequence>
1735
+ read_until_match_op_v1(AsyncReadStream& stream,
1736
+ BOOST_ASIO_MOVE_ARG(BufferSequence) buffers,
1737
+ MatchCondition match_condition, ReadHandler& handler)
1738
+ : base_from_cancellation_state<ReadHandler>(
1739
+ handler, enable_partial_cancellation()),
1740
+ stream_(stream),
1741
+ buffers_(BOOST_ASIO_MOVE_CAST(BufferSequence)(buffers)),
1742
+ match_condition_(match_condition),
1743
+ start_(0),
1744
+ search_position_(0),
1745
+ handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(handler))
1746
+ {
1747
+ }
1748
+
1749
+ #if defined(BOOST_ASIO_HAS_MOVE)
1750
+ read_until_match_op_v1(const read_until_match_op_v1& other)
1751
+ : base_from_cancellation_state<ReadHandler>(other),
1752
+ stream_(other.stream_),
1753
+ buffers_(other.buffers_),
1754
+ match_condition_(other.match_condition_),
1755
+ start_(other.start_),
1756
+ search_position_(other.search_position_),
1757
+ handler_(other.handler_)
1758
+ {
1759
+ }
1760
+
1761
+ read_until_match_op_v1(read_until_match_op_v1&& other)
1762
+ : base_from_cancellation_state<ReadHandler>(
1763
+ BOOST_ASIO_MOVE_CAST(base_from_cancellation_state<
1764
+ ReadHandler>)(other)),
1765
+ stream_(other.stream_),
1766
+ buffers_(BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(other.buffers_)),
1767
+ match_condition_(other.match_condition_),
1768
+ start_(other.start_),
1769
+ search_position_(other.search_position_),
1770
+ handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(other.handler_))
1771
+ {
1772
+ }
1773
+ #endif // defined(BOOST_ASIO_HAS_MOVE)
1774
+
1775
+ void operator()(boost::system::error_code ec,
1776
+ std::size_t bytes_transferred, int start = 0)
1777
+ {
1778
+ const std::size_t not_found = (std::numeric_limits<std::size_t>::max)();
1779
+ std::size_t bytes_to_read;
1780
+ switch (start_ = start)
1781
+ {
1782
+ case 1:
1783
+ for (;;)
1784
+ {
1785
+ {
1786
+ // Determine the range of the data to be searched.
1787
+ typedef typename DynamicBuffer_v1::const_buffers_type
1788
+ buffers_type;
1789
+ typedef buffers_iterator<buffers_type> iterator;
1790
+ buffers_type data_buffers = buffers_.data();
1791
+ iterator begin = iterator::begin(data_buffers);
1792
+ iterator start_pos = begin + search_position_;
1793
+ iterator end = iterator::end(data_buffers);
1794
+
1795
+ // Look for a match.
1796
+ std::pair<iterator, bool> result = match_condition_(start_pos, end);
1797
+ if (result.second)
1798
+ {
1799
+ // Full match. We're done.
1800
+ search_position_ = result.first - begin;
1801
+ bytes_to_read = 0;
1802
+ }
1803
+
1804
+ // No match yet. Check if buffer is full.
1805
+ else if (buffers_.size() == buffers_.max_size())
1806
+ {
1807
+ search_position_ = not_found;
1808
+ bytes_to_read = 0;
1809
+ }
1810
+
1811
+ // Need to read some more data.
1812
+ else
1813
+ {
1814
+ if (result.first != end)
1815
+ {
1816
+ // Partial match. Next search needs to start from beginning of
1817
+ // match.
1818
+ search_position_ = result.first - begin;
1819
+ }
1820
+ else
1821
+ {
1822
+ // Next search can start with the new data.
1823
+ search_position_ = end - begin;
1824
+ }
1825
+
1826
+ bytes_to_read = std::min<std::size_t>(
1827
+ std::max<std::size_t>(512,
1828
+ buffers_.capacity() - buffers_.size()),
1829
+ std::min<std::size_t>(65536,
1830
+ buffers_.max_size() - buffers_.size()));
1831
+ }
1832
+ }
1833
+
1834
+ // Check if we're done.
1835
+ if (!start && bytes_to_read == 0)
1836
+ break;
1837
+
1838
+ // Start a new asynchronous read operation to obtain more data.
1839
+ {
1840
+ BOOST_ASIO_HANDLER_LOCATION((
1841
+ __FILE__, __LINE__, "async_read_until"));
1842
+ stream_.async_read_some(buffers_.prepare(bytes_to_read),
1843
+ BOOST_ASIO_MOVE_CAST(read_until_match_op_v1)(*this));
1844
+ }
1845
+ return; default:
1846
+ buffers_.commit(bytes_transferred);
1847
+ if (ec || bytes_transferred == 0)
1848
+ break;
1849
+ if (this->cancelled() != cancellation_type::none)
1850
+ {
1851
+ ec = error::operation_aborted;
1852
+ break;
1853
+ }
1854
+ }
1855
+
1856
+ const boost::system::error_code result_ec =
1857
+ (search_position_ == not_found)
1858
+ ? error::not_found : ec;
1859
+
1860
+ const std::size_t result_n =
1861
+ (ec || search_position_ == not_found)
1862
+ ? 0 : search_position_;
1863
+
1864
+ BOOST_ASIO_MOVE_OR_LVALUE(ReadHandler)(handler_)(result_ec, result_n);
1865
+ }
1866
+ }
1867
+
1868
+ //private:
1869
+ AsyncReadStream& stream_;
1870
+ DynamicBuffer_v1 buffers_;
1871
+ MatchCondition match_condition_;
1872
+ int start_;
1873
+ std::size_t search_position_;
1874
+ ReadHandler handler_;
1875
+ };
1876
+
1877
+ template <typename AsyncReadStream, typename DynamicBuffer_v1,
1878
+ typename MatchCondition, typename ReadHandler>
1879
+ inline asio_handler_allocate_is_deprecated
1880
+ asio_handler_allocate(std::size_t size,
1881
+ read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1,
1882
+ MatchCondition, ReadHandler>* this_handler)
1883
+ {
1884
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
1885
+ boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
1886
+ return asio_handler_allocate_is_no_longer_used();
1887
+ #else // defined(BOOST_ASIO_NO_DEPRECATED)
1888
+ return boost_asio_handler_alloc_helpers::allocate(
1889
+ size, this_handler->handler_);
1890
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1891
+ }
1892
+
1893
+ template <typename AsyncReadStream, typename DynamicBuffer_v1,
1894
+ typename MatchCondition, typename ReadHandler>
1895
+ inline asio_handler_deallocate_is_deprecated
1896
+ asio_handler_deallocate(void* pointer, std::size_t size,
1897
+ read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1,
1898
+ MatchCondition, ReadHandler>* this_handler)
1899
+ {
1900
+ boost_asio_handler_alloc_helpers::deallocate(
1901
+ pointer, size, this_handler->handler_);
1902
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
1903
+ return asio_handler_deallocate_is_no_longer_used();
1904
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1905
+ }
1906
+
1907
+ template <typename AsyncReadStream, typename DynamicBuffer_v1,
1908
+ typename MatchCondition, typename ReadHandler>
1909
+ inline bool asio_handler_is_continuation(
1910
+ read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1,
1911
+ MatchCondition, ReadHandler>* this_handler)
1912
+ {
1913
+ return this_handler->start_ == 0 ? true
1914
+ : boost_asio_handler_cont_helpers::is_continuation(
1915
+ this_handler->handler_);
1916
+ }
1917
+
1918
+ template <typename Function, typename AsyncReadStream,
1919
+ typename DynamicBuffer_v1, typename MatchCondition,
1920
+ typename ReadHandler>
1921
+ inline asio_handler_invoke_is_deprecated
1922
+ asio_handler_invoke(Function& function,
1923
+ read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1,
1924
+ MatchCondition, ReadHandler>* this_handler)
1925
+ {
1926
+ boost_asio_handler_invoke_helpers::invoke(
1927
+ function, this_handler->handler_);
1928
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
1929
+ return asio_handler_invoke_is_no_longer_used();
1930
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1931
+ }
1932
+
1933
+ template <typename Function, typename AsyncReadStream,
1934
+ typename DynamicBuffer_v1, typename MatchCondition,
1935
+ typename ReadHandler>
1936
+ inline asio_handler_invoke_is_deprecated
1937
+ asio_handler_invoke(const Function& function,
1938
+ read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1,
1939
+ MatchCondition, ReadHandler>* this_handler)
1940
+ {
1941
+ boost_asio_handler_invoke_helpers::invoke(
1942
+ function, this_handler->handler_);
1943
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
1944
+ return asio_handler_invoke_is_no_longer_used();
1945
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1946
+ }
1947
+
1948
+ template <typename AsyncReadStream>
1949
+ class initiate_async_read_until_match_v1
1950
+ {
1951
+ public:
1952
+ typedef typename AsyncReadStream::executor_type executor_type;
1953
+
1954
+ explicit initiate_async_read_until_match_v1(AsyncReadStream& stream)
1955
+ : stream_(stream)
1956
+ {
1957
+ }
1958
+
1959
+ executor_type get_executor() const BOOST_ASIO_NOEXCEPT
1960
+ {
1961
+ return stream_.get_executor();
1962
+ }
1963
+
1964
+ template <typename ReadHandler,
1965
+ typename DynamicBuffer_v1, typename MatchCondition>
1966
+ void operator()(BOOST_ASIO_MOVE_ARG(ReadHandler) handler,
1967
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers,
1968
+ MatchCondition match_condition) const
1969
+ {
1970
+ // If you get an error on the following line it means that your handler
1971
+ // does not meet the documented type requirements for a ReadHandler.
1972
+ BOOST_ASIO_READ_HANDLER_CHECK(ReadHandler, handler) type_check;
1973
+
1974
+ non_const_lvalue<ReadHandler> handler2(handler);
1975
+ read_until_match_op_v1<AsyncReadStream,
1976
+ typename decay<DynamicBuffer_v1>::type,
1977
+ MatchCondition, typename decay<ReadHandler>::type>(
1978
+ stream_, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers),
1979
+ match_condition, handler2.value)(boost::system::error_code(), 0, 1);
1980
+ }
1981
+
1982
+ private:
1983
+ AsyncReadStream& stream_;
1984
+ };
1985
+ } // namespace detail
1986
+
1987
+ #if !defined(GENERATING_DOCUMENTATION)
355
1988
 
356
- template <typename SyncReadStream, typename Allocator>
357
- inline std::size_t read_until(SyncReadStream& s,
358
- boost::asio::basic_streambuf<Allocator>& b, char delim)
1989
+ template <template <typename, typename> class Associator,
1990
+ typename AsyncReadStream, typename DynamicBuffer_v1,
1991
+ typename MatchCondition, typename ReadHandler, typename DefaultCandidate>
1992
+ struct associator<Associator,
1993
+ detail::read_until_match_op_v1<AsyncReadStream,
1994
+ DynamicBuffer_v1, MatchCondition, ReadHandler>,
1995
+ DefaultCandidate>
1996
+ : Associator<ReadHandler, DefaultCandidate>
359
1997
  {
360
- return read_until(s, basic_streambuf_ref<Allocator>(b), delim);
361
- }
1998
+ static typename Associator<ReadHandler, DefaultCandidate>::type get(
1999
+ const detail::read_until_match_op_v1<AsyncReadStream,
2000
+ DynamicBuffer_v1, MatchCondition, ReadHandler>& h,
2001
+ const DefaultCandidate& c = DefaultCandidate()) BOOST_ASIO_NOEXCEPT
2002
+ {
2003
+ return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
2004
+ }
2005
+ };
362
2006
 
363
- template <typename SyncReadStream, typename Allocator>
364
- inline std::size_t read_until(SyncReadStream& s,
365
- boost::asio::basic_streambuf<Allocator>& b, char delim,
366
- boost::system::error_code& ec)
2007
+ #endif // !defined(GENERATING_DOCUMENTATION)
2008
+
2009
+ template <typename AsyncReadStream,
2010
+ typename DynamicBuffer_v1, typename MatchCondition,
2011
+ BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
2012
+ std::size_t)) ReadToken>
2013
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(ReadToken,
2014
+ void (boost::system::error_code, std::size_t))
2015
+ async_read_until(AsyncReadStream& s,
2016
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers,
2017
+ MatchCondition match_condition, BOOST_ASIO_MOVE_ARG(ReadToken) token,
2018
+ typename constraint<
2019
+ is_match_condition<MatchCondition>::value
2020
+ >::type,
2021
+ typename constraint<
2022
+ is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value
2023
+ >::type,
2024
+ typename constraint<
2025
+ !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
2026
+ >::type)
2027
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
2028
+ async_initiate<ReadToken,
2029
+ void (boost::system::error_code, std::size_t)>(
2030
+ declval<detail::initiate_async_read_until_match_v1<AsyncReadStream> >(),
2031
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers),
2032
+ match_condition)))
367
2033
  {
368
- return read_until(s, basic_streambuf_ref<Allocator>(b), delim, ec);
2034
+ return async_initiate<ReadToken,
2035
+ void (boost::system::error_code, std::size_t)>(
2036
+ detail::initiate_async_read_until_match_v1<AsyncReadStream>(s),
2037
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v1)(buffers),
2038
+ match_condition);
369
2039
  }
370
2040
 
371
- template <typename SyncReadStream, typename Allocator>
372
- inline std::size_t read_until(SyncReadStream& s,
2041
+ #if !defined(BOOST_ASIO_NO_IOSTREAM)
2042
+
2043
+ template <typename AsyncReadStream, typename Allocator,
2044
+ BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
2045
+ std::size_t)) ReadToken>
2046
+ inline BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(ReadToken,
2047
+ void (boost::system::error_code, std::size_t))
2048
+ async_read_until(AsyncReadStream& s,
373
2049
  boost::asio::basic_streambuf<Allocator>& b,
374
- BOOST_ASIO_STRING_VIEW_PARAM delim)
2050
+ char delim, BOOST_ASIO_MOVE_ARG(ReadToken) token)
2051
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
2052
+ async_read_until(s, basic_streambuf_ref<Allocator>(b),
2053
+ delim, BOOST_ASIO_MOVE_CAST(ReadToken)(token))))
375
2054
  {
376
- return read_until(s, basic_streambuf_ref<Allocator>(b), delim);
2055
+ return async_read_until(s, basic_streambuf_ref<Allocator>(b),
2056
+ delim, BOOST_ASIO_MOVE_CAST(ReadToken)(token));
377
2057
  }
378
2058
 
379
- template <typename SyncReadStream, typename Allocator>
380
- inline std::size_t read_until(SyncReadStream& s,
2059
+ template <typename AsyncReadStream, typename Allocator,
2060
+ BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
2061
+ std::size_t)) ReadToken>
2062
+ inline BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(ReadToken,
2063
+ void (boost::system::error_code, std::size_t))
2064
+ async_read_until(AsyncReadStream& s,
381
2065
  boost::asio::basic_streambuf<Allocator>& b,
382
- BOOST_ASIO_STRING_VIEW_PARAM delim, boost::system::error_code& ec)
2066
+ BOOST_ASIO_STRING_VIEW_PARAM delim,
2067
+ BOOST_ASIO_MOVE_ARG(ReadToken) token)
2068
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
2069
+ async_read_until(s, basic_streambuf_ref<Allocator>(b),
2070
+ delim, BOOST_ASIO_MOVE_CAST(ReadToken)(token))))
383
2071
  {
384
- return read_until(s, basic_streambuf_ref<Allocator>(b), delim, ec);
2072
+ return async_read_until(s, basic_streambuf_ref<Allocator>(b),
2073
+ delim, BOOST_ASIO_MOVE_CAST(ReadToken)(token));
385
2074
  }
386
2075
 
387
2076
  #if defined(BOOST_ASIO_HAS_BOOST_REGEX)
388
2077
 
389
- template <typename SyncReadStream, typename Allocator>
390
- inline std::size_t read_until(SyncReadStream& s,
391
- boost::asio::basic_streambuf<Allocator>& b, const boost::regex& expr)
392
- {
393
- return read_until(s, basic_streambuf_ref<Allocator>(b), expr);
394
- }
395
-
396
- template <typename SyncReadStream, typename Allocator>
397
- inline std::size_t read_until(SyncReadStream& s,
2078
+ template <typename AsyncReadStream, typename Allocator,
2079
+ BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
2080
+ std::size_t)) ReadToken>
2081
+ inline BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(ReadToken,
2082
+ void (boost::system::error_code, std::size_t))
2083
+ async_read_until(AsyncReadStream& s,
398
2084
  boost::asio::basic_streambuf<Allocator>& b, const boost::regex& expr,
399
- boost::system::error_code& ec)
2085
+ BOOST_ASIO_MOVE_ARG(ReadToken) token)
2086
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
2087
+ async_read_until(s, basic_streambuf_ref<Allocator>(b),
2088
+ expr, BOOST_ASIO_MOVE_CAST(ReadToken)(token))))
400
2089
  {
401
- return read_until(s, basic_streambuf_ref<Allocator>(b), expr, ec);
2090
+ return async_read_until(s, basic_streambuf_ref<Allocator>(b),
2091
+ expr, BOOST_ASIO_MOVE_CAST(ReadToken)(token));
402
2092
  }
403
2093
 
404
2094
  #endif // defined(BOOST_ASIO_HAS_BOOST_REGEX)
405
2095
 
406
- template <typename SyncReadStream, typename Allocator, typename MatchCondition>
407
- inline std::size_t read_until(SyncReadStream& s,
408
- boost::asio::basic_streambuf<Allocator>& b, MatchCondition match_condition,
409
- typename enable_if<is_match_condition<MatchCondition>::value>::type*)
410
- {
411
- return read_until(s, basic_streambuf_ref<Allocator>(b), match_condition);
412
- }
413
-
414
- template <typename SyncReadStream, typename Allocator, typename MatchCondition>
415
- inline std::size_t read_until(SyncReadStream& s,
2096
+ template <typename AsyncReadStream, typename Allocator, typename MatchCondition,
2097
+ BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
2098
+ std::size_t)) ReadToken>
2099
+ inline BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(ReadToken,
2100
+ void (boost::system::error_code, std::size_t))
2101
+ async_read_until(AsyncReadStream& s,
416
2102
  boost::asio::basic_streambuf<Allocator>& b,
417
- MatchCondition match_condition, boost::system::error_code& ec,
418
- typename enable_if<is_match_condition<MatchCondition>::value>::type*)
2103
+ MatchCondition match_condition, BOOST_ASIO_MOVE_ARG(ReadToken) token,
2104
+ typename constraint<is_match_condition<MatchCondition>::value>::type)
2105
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
2106
+ async_read_until(s, basic_streambuf_ref<Allocator>(b),
2107
+ match_condition, BOOST_ASIO_MOVE_CAST(ReadToken)(token))))
419
2108
  {
420
- return read_until(s, basic_streambuf_ref<Allocator>(b), match_condition, ec);
2109
+ return async_read_until(s, basic_streambuf_ref<Allocator>(b),
2110
+ match_condition, BOOST_ASIO_MOVE_CAST(ReadToken)(token));
421
2111
  }
422
2112
 
423
2113
  #endif // !defined(BOOST_ASIO_NO_IOSTREAM)
424
2114
  #endif // !defined(BOOST_ASIO_NO_EXTENSIONS)
2115
+ #endif // !defined(BOOST_ASIO_NO_DYNAMIC_BUFFER_V1)
425
2116
 
426
2117
  namespace detail
427
2118
  {
428
2119
  template <typename AsyncReadStream,
429
- typename DynamicBuffer, typename ReadHandler>
430
- class read_until_delim_op
2120
+ typename DynamicBuffer_v2, typename ReadHandler>
2121
+ class read_until_delim_op_v2
2122
+ : public base_from_cancellation_state<ReadHandler>
431
2123
  {
432
2124
  public:
433
2125
  template <typename BufferSequence>
434
- read_until_delim_op(AsyncReadStream& stream,
2126
+ read_until_delim_op_v2(AsyncReadStream& stream,
435
2127
  BOOST_ASIO_MOVE_ARG(BufferSequence) buffers,
436
2128
  char delim, ReadHandler& handler)
437
- : stream_(stream),
2129
+ : base_from_cancellation_state<ReadHandler>(
2130
+ handler, enable_partial_cancellation()),
2131
+ stream_(stream),
438
2132
  buffers_(BOOST_ASIO_MOVE_CAST(BufferSequence)(buffers)),
439
2133
  delim_(delim),
440
2134
  start_(0),
441
2135
  search_position_(0),
2136
+ bytes_to_read_(0),
442
2137
  handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(handler))
443
2138
  {
444
2139
  }
445
2140
 
446
2141
  #if defined(BOOST_ASIO_HAS_MOVE)
447
- read_until_delim_op(const read_until_delim_op& other)
448
- : stream_(other.stream_),
2142
+ read_until_delim_op_v2(const read_until_delim_op_v2& other)
2143
+ : base_from_cancellation_state<ReadHandler>(other),
2144
+ stream_(other.stream_),
449
2145
  buffers_(other.buffers_),
450
2146
  delim_(other.delim_),
451
2147
  start_(other.start_),
452
2148
  search_position_(other.search_position_),
2149
+ bytes_to_read_(other.bytes_to_read_),
453
2150
  handler_(other.handler_)
454
2151
  {
455
2152
  }
456
2153
 
457
- read_until_delim_op(read_until_delim_op&& other)
458
- : stream_(other.stream_),
459
- buffers_(BOOST_ASIO_MOVE_CAST(DynamicBuffer)(other.buffers_)),
2154
+ read_until_delim_op_v2(read_until_delim_op_v2&& other)
2155
+ : base_from_cancellation_state<ReadHandler>(
2156
+ BOOST_ASIO_MOVE_CAST(base_from_cancellation_state<
2157
+ ReadHandler>)(other)),
2158
+ stream_(other.stream_),
2159
+ buffers_(BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(other.buffers_)),
460
2160
  delim_(other.delim_),
461
2161
  start_(other.start_),
462
2162
  search_position_(other.search_position_),
2163
+ bytes_to_read_(other.bytes_to_read_),
463
2164
  handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(other.handler_))
464
2165
  {
465
2166
  }
466
2167
  #endif // defined(BOOST_ASIO_HAS_MOVE)
467
2168
 
468
- void operator()(const boost::system::error_code& ec,
2169
+ void operator()(boost::system::error_code ec,
469
2170
  std::size_t bytes_transferred, int start = 0)
470
2171
  {
471
2172
  const std::size_t not_found = (std::numeric_limits<std::size_t>::max)();
472
- std::size_t bytes_to_read;
2173
+ std::size_t pos;
473
2174
  switch (start_ = start)
474
2175
  {
475
2176
  case 1:
@@ -477,10 +2178,12 @@ namespace detail
477
2178
  {
478
2179
  {
479
2180
  // Determine the range of the data to be searched.
480
- typedef typename DynamicBuffer::const_buffers_type
2181
+ typedef typename DynamicBuffer_v2::const_buffers_type
481
2182
  buffers_type;
482
2183
  typedef buffers_iterator<buffers_type> iterator;
483
- buffers_type data_buffers = buffers_.data();
2184
+ buffers_type data_buffers =
2185
+ const_cast<const DynamicBuffer_v2&>(buffers_).data(
2186
+ 0, buffers_.size());
484
2187
  iterator begin = iterator::begin(data_buffers);
485
2188
  iterator start_pos = begin + search_position_;
486
2189
  iterator end = iterator::end(data_buffers);
@@ -491,14 +2194,14 @@ namespace detail
491
2194
  {
492
2195
  // Found a match. We're done.
493
2196
  search_position_ = iter - begin + 1;
494
- bytes_to_read = 0;
2197
+ bytes_to_read_ = 0;
495
2198
  }
496
2199
 
497
2200
  // No match yet. Check if buffer is full.
498
2201
  else if (buffers_.size() == buffers_.max_size())
499
2202
  {
500
2203
  search_position_ = not_found;
501
- bytes_to_read = 0;
2204
+ bytes_to_read_ = 0;
502
2205
  }
503
2206
 
504
2207
  // Need to read some more data.
@@ -506,7 +2209,7 @@ namespace detail
506
2209
  {
507
2210
  // Next search can start with the new data.
508
2211
  search_position_ = end - begin;
509
- bytes_to_read = std::min<std::size_t>(
2212
+ bytes_to_read_ = std::min<std::size_t>(
510
2213
  std::max<std::size_t>(512,
511
2214
  buffers_.capacity() - buffers_.size()),
512
2215
  std::min<std::size_t>(65536,
@@ -515,16 +2218,27 @@ namespace detail
515
2218
  }
516
2219
 
517
2220
  // Check if we're done.
518
- if (!start && bytes_to_read == 0)
2221
+ if (!start && bytes_to_read_ == 0)
519
2222
  break;
520
2223
 
521
2224
  // Start a new asynchronous read operation to obtain more data.
522
- stream_.async_read_some(buffers_.prepare(bytes_to_read),
523
- BOOST_ASIO_MOVE_CAST(read_until_delim_op)(*this));
2225
+ pos = buffers_.size();
2226
+ buffers_.grow(bytes_to_read_);
2227
+ {
2228
+ BOOST_ASIO_HANDLER_LOCATION((
2229
+ __FILE__, __LINE__, "async_read_until"));
2230
+ stream_.async_read_some(buffers_.data(pos, bytes_to_read_),
2231
+ BOOST_ASIO_MOVE_CAST(read_until_delim_op_v2)(*this));
2232
+ }
524
2233
  return; default:
525
- buffers_.commit(bytes_transferred);
2234
+ buffers_.shrink(bytes_to_read_ - bytes_transferred);
526
2235
  if (ec || bytes_transferred == 0)
527
2236
  break;
2237
+ if (this->cancelled() != cancellation_type::none)
2238
+ {
2239
+ ec = error::operation_aborted;
2240
+ break;
2241
+ }
528
2242
  }
529
2243
 
530
2244
  const boost::system::error_code result_ec =
@@ -535,44 +2249,55 @@ namespace detail
535
2249
  (ec || search_position_ == not_found)
536
2250
  ? 0 : search_position_;
537
2251
 
538
- handler_(result_ec, result_n);
2252
+ BOOST_ASIO_MOVE_OR_LVALUE(ReadHandler)(handler_)(result_ec, result_n);
539
2253
  }
540
2254
  }
541
2255
 
542
2256
  //private:
543
2257
  AsyncReadStream& stream_;
544
- DynamicBuffer buffers_;
2258
+ DynamicBuffer_v2 buffers_;
545
2259
  char delim_;
546
2260
  int start_;
547
2261
  std::size_t search_position_;
2262
+ std::size_t bytes_to_read_;
548
2263
  ReadHandler handler_;
549
2264
  };
550
2265
 
551
2266
  template <typename AsyncReadStream,
552
- typename DynamicBuffer, typename ReadHandler>
553
- inline void* asio_handler_allocate(std::size_t size,
554
- read_until_delim_op<AsyncReadStream,
555
- DynamicBuffer, ReadHandler>* this_handler)
2267
+ typename DynamicBuffer_v2, typename ReadHandler>
2268
+ inline asio_handler_allocate_is_deprecated
2269
+ asio_handler_allocate(std::size_t size,
2270
+ read_until_delim_op_v2<AsyncReadStream,
2271
+ DynamicBuffer_v2, ReadHandler>* this_handler)
556
2272
  {
2273
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
2274
+ boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
2275
+ return asio_handler_allocate_is_no_longer_used();
2276
+ #else // defined(BOOST_ASIO_NO_DEPRECATED)
557
2277
  return boost_asio_handler_alloc_helpers::allocate(
558
2278
  size, this_handler->handler_);
2279
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
559
2280
  }
560
2281
 
561
2282
  template <typename AsyncReadStream,
562
- typename DynamicBuffer, typename ReadHandler>
563
- inline void asio_handler_deallocate(void* pointer, std::size_t size,
564
- read_until_delim_op<AsyncReadStream,
565
- DynamicBuffer, ReadHandler>* this_handler)
2283
+ typename DynamicBuffer_v2, typename ReadHandler>
2284
+ inline asio_handler_deallocate_is_deprecated
2285
+ asio_handler_deallocate(void* pointer, std::size_t size,
2286
+ read_until_delim_op_v2<AsyncReadStream,
2287
+ DynamicBuffer_v2, ReadHandler>* this_handler)
566
2288
  {
567
2289
  boost_asio_handler_alloc_helpers::deallocate(
568
2290
  pointer, size, this_handler->handler_);
2291
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
2292
+ return asio_handler_deallocate_is_no_longer_used();
2293
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
569
2294
  }
570
2295
 
571
2296
  template <typename AsyncReadStream,
572
- typename DynamicBuffer, typename ReadHandler>
2297
+ typename DynamicBuffer_v2, typename ReadHandler>
573
2298
  inline bool asio_handler_is_continuation(
574
- read_until_delim_op<AsyncReadStream,
575
- DynamicBuffer, ReadHandler>* this_handler)
2299
+ read_until_delim_op_v2<AsyncReadStream,
2300
+ DynamicBuffer_v2, ReadHandler>* this_handler)
576
2301
  {
577
2302
  return this_handler->start_ == 0 ? true
578
2303
  : boost_asio_handler_cont_helpers::is_continuation(
@@ -580,138 +2305,171 @@ namespace detail
580
2305
  }
581
2306
 
582
2307
  template <typename Function, typename AsyncReadStream,
583
- typename DynamicBuffer, typename ReadHandler>
584
- inline void asio_handler_invoke(Function& function,
585
- read_until_delim_op<AsyncReadStream,
586
- DynamicBuffer, ReadHandler>* this_handler)
2308
+ typename DynamicBuffer_v2, typename ReadHandler>
2309
+ inline asio_handler_invoke_is_deprecated
2310
+ asio_handler_invoke(Function& function,
2311
+ read_until_delim_op_v2<AsyncReadStream,
2312
+ DynamicBuffer_v2, ReadHandler>* this_handler)
587
2313
  {
588
2314
  boost_asio_handler_invoke_helpers::invoke(
589
2315
  function, this_handler->handler_);
2316
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
2317
+ return asio_handler_invoke_is_no_longer_used();
2318
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
590
2319
  }
591
2320
 
592
2321
  template <typename Function, typename AsyncReadStream,
593
- typename DynamicBuffer, typename ReadHandler>
594
- inline void asio_handler_invoke(const Function& function,
595
- read_until_delim_op<AsyncReadStream,
596
- DynamicBuffer, ReadHandler>* this_handler)
2322
+ typename DynamicBuffer_v2, typename ReadHandler>
2323
+ inline asio_handler_invoke_is_deprecated
2324
+ asio_handler_invoke(const Function& function,
2325
+ read_until_delim_op_v2<AsyncReadStream,
2326
+ DynamicBuffer_v2, ReadHandler>* this_handler)
597
2327
  {
598
2328
  boost_asio_handler_invoke_helpers::invoke(
599
2329
  function, this_handler->handler_);
2330
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
2331
+ return asio_handler_invoke_is_no_longer_used();
2332
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
600
2333
  }
601
- } // namespace detail
602
2334
 
603
- #if !defined(GENERATING_DOCUMENTATION)
2335
+ template <typename AsyncReadStream>
2336
+ class initiate_async_read_until_delim_v2
2337
+ {
2338
+ public:
2339
+ typedef typename AsyncReadStream::executor_type executor_type;
604
2340
 
605
- template <typename AsyncReadStream, typename DynamicBuffer,
606
- typename ReadHandler, typename Allocator>
607
- struct associated_allocator<
608
- detail::read_until_delim_op<AsyncReadStream,
609
- DynamicBuffer, ReadHandler>,
610
- Allocator>
611
- {
612
- typedef typename associated_allocator<ReadHandler, Allocator>::type type;
2341
+ explicit initiate_async_read_until_delim_v2(AsyncReadStream& stream)
2342
+ : stream_(stream)
2343
+ {
2344
+ }
613
2345
 
614
- static type get(
615
- const detail::read_until_delim_op<AsyncReadStream,
616
- DynamicBuffer, ReadHandler>& h,
617
- const Allocator& a = Allocator()) BOOST_ASIO_NOEXCEPT
618
- {
619
- return associated_allocator<ReadHandler, Allocator>::get(h.handler_, a);
620
- }
621
- };
2346
+ executor_type get_executor() const BOOST_ASIO_NOEXCEPT
2347
+ {
2348
+ return stream_.get_executor();
2349
+ }
622
2350
 
623
- template <typename AsyncReadStream, typename DynamicBuffer,
624
- typename ReadHandler, typename Executor>
625
- struct associated_executor<
626
- detail::read_until_delim_op<AsyncReadStream,
627
- DynamicBuffer, ReadHandler>,
628
- Executor>
629
- {
630
- typedef typename associated_executor<ReadHandler, Executor>::type type;
2351
+ template <typename ReadHandler, typename DynamicBuffer_v2>
2352
+ void operator()(BOOST_ASIO_MOVE_ARG(ReadHandler) handler,
2353
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v2) buffers, char delim) const
2354
+ {
2355
+ // If you get an error on the following line it means that your handler
2356
+ // does not meet the documented type requirements for a ReadHandler.
2357
+ BOOST_ASIO_READ_HANDLER_CHECK(ReadHandler, handler) type_check;
2358
+
2359
+ non_const_lvalue<ReadHandler> handler2(handler);
2360
+ read_until_delim_op_v2<AsyncReadStream,
2361
+ typename decay<DynamicBuffer_v2>::type,
2362
+ typename decay<ReadHandler>::type>(
2363
+ stream_, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers),
2364
+ delim, handler2.value)(boost::system::error_code(), 0, 1);
2365
+ }
631
2366
 
632
- static type get(
633
- const detail::read_until_delim_op<AsyncReadStream,
634
- DynamicBuffer, ReadHandler>& h,
635
- const Executor& ex = Executor()) BOOST_ASIO_NOEXCEPT
2367
+ private:
2368
+ AsyncReadStream& stream_;
2369
+ };
2370
+ } // namespace detail
2371
+
2372
+ #if !defined(GENERATING_DOCUMENTATION)
2373
+
2374
+ template <template <typename, typename> class Associator,
2375
+ typename AsyncReadStream, typename DynamicBuffer_v2,
2376
+ typename ReadHandler, typename DefaultCandidate>
2377
+ struct associator<Associator,
2378
+ detail::read_until_delim_op_v2<AsyncReadStream,
2379
+ DynamicBuffer_v2, ReadHandler>,
2380
+ DefaultCandidate>
2381
+ : Associator<ReadHandler, DefaultCandidate>
2382
+ {
2383
+ static typename Associator<ReadHandler, DefaultCandidate>::type get(
2384
+ const detail::read_until_delim_op_v2<AsyncReadStream,
2385
+ DynamicBuffer_v2, ReadHandler>& h,
2386
+ const DefaultCandidate& c = DefaultCandidate()) BOOST_ASIO_NOEXCEPT
636
2387
  {
637
- return associated_executor<ReadHandler, Executor>::get(h.handler_, ex);
2388
+ return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
638
2389
  }
639
2390
  };
640
2391
 
641
2392
  #endif // !defined(GENERATING_DOCUMENTATION)
642
2393
 
643
- template <typename AsyncReadStream,
644
- typename DynamicBuffer, typename ReadHandler>
645
- BOOST_ASIO_INITFN_RESULT_TYPE(ReadHandler,
2394
+ template <typename AsyncReadStream, typename DynamicBuffer_v2,
2395
+ BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
2396
+ std::size_t)) ReadToken>
2397
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(ReadToken,
646
2398
  void (boost::system::error_code, std::size_t))
647
- async_read_until(AsyncReadStream& s,
648
- BOOST_ASIO_MOVE_ARG(DynamicBuffer) buffers,
649
- char delim, BOOST_ASIO_MOVE_ARG(ReadHandler) handler)
2399
+ async_read_until(AsyncReadStream& s, DynamicBuffer_v2 buffers,
2400
+ char delim, BOOST_ASIO_MOVE_ARG(ReadToken) token,
2401
+ typename constraint<
2402
+ is_dynamic_buffer_v2<DynamicBuffer_v2>::value
2403
+ >::type)
2404
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
2405
+ async_initiate<ReadToken,
2406
+ void (boost::system::error_code, std::size_t)>(
2407
+ declval<detail::initiate_async_read_until_delim_v2<AsyncReadStream> >(),
2408
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers), delim)))
650
2409
  {
651
- // If you get an error on the following line it means that your handler does
652
- // not meet the documented type requirements for a ReadHandler.
653
- BOOST_ASIO_READ_HANDLER_CHECK(ReadHandler, handler) type_check;
654
-
655
- async_completion<ReadHandler,
656
- void (boost::system::error_code, std::size_t)> init(handler);
657
-
658
- detail::read_until_delim_op<AsyncReadStream,
659
- typename decay<DynamicBuffer>::type,
660
- BOOST_ASIO_HANDLER_TYPE(ReadHandler,
661
- void (boost::system::error_code, std::size_t))>(
662
- s, BOOST_ASIO_MOVE_CAST(DynamicBuffer)(buffers),
663
- delim, init.completion_handler)(boost::system::error_code(), 0, 1);
664
-
665
- return init.result.get();
2410
+ return async_initiate<ReadToken,
2411
+ void (boost::system::error_code, std::size_t)>(
2412
+ detail::initiate_async_read_until_delim_v2<AsyncReadStream>(s),
2413
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers), delim);
666
2414
  }
667
2415
 
668
2416
  namespace detail
669
2417
  {
670
2418
  template <typename AsyncReadStream,
671
- typename DynamicBuffer, typename ReadHandler>
672
- class read_until_delim_string_op
2419
+ typename DynamicBuffer_v2, typename ReadHandler>
2420
+ class read_until_delim_string_op_v2
2421
+ : public base_from_cancellation_state<ReadHandler>
673
2422
  {
674
2423
  public:
675
2424
  template <typename BufferSequence>
676
- read_until_delim_string_op(AsyncReadStream& stream,
2425
+ read_until_delim_string_op_v2(AsyncReadStream& stream,
677
2426
  BOOST_ASIO_MOVE_ARG(BufferSequence) buffers,
678
2427
  const std::string& delim, ReadHandler& handler)
679
- : stream_(stream),
2428
+ : base_from_cancellation_state<ReadHandler>(
2429
+ handler, enable_partial_cancellation()),
2430
+ stream_(stream),
680
2431
  buffers_(BOOST_ASIO_MOVE_CAST(BufferSequence)(buffers)),
681
2432
  delim_(delim),
682
2433
  start_(0),
683
2434
  search_position_(0),
2435
+ bytes_to_read_(0),
684
2436
  handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(handler))
685
2437
  {
686
2438
  }
687
2439
 
688
2440
  #if defined(BOOST_ASIO_HAS_MOVE)
689
- read_until_delim_string_op(const read_until_delim_string_op& other)
690
- : stream_(other.stream_),
2441
+ read_until_delim_string_op_v2(const read_until_delim_string_op_v2& other)
2442
+ : base_from_cancellation_state<ReadHandler>(other),
2443
+ stream_(other.stream_),
691
2444
  buffers_(other.buffers_),
692
2445
  delim_(other.delim_),
693
2446
  start_(other.start_),
694
2447
  search_position_(other.search_position_),
2448
+ bytes_to_read_(other.bytes_to_read_),
695
2449
  handler_(other.handler_)
696
2450
  {
697
2451
  }
698
2452
 
699
- read_until_delim_string_op(read_until_delim_string_op&& other)
700
- : stream_(other.stream_),
701
- buffers_(BOOST_ASIO_MOVE_CAST(DynamicBuffer)(other.buffers_)),
2453
+ read_until_delim_string_op_v2(read_until_delim_string_op_v2&& other)
2454
+ : base_from_cancellation_state<ReadHandler>(
2455
+ BOOST_ASIO_MOVE_CAST(base_from_cancellation_state<
2456
+ ReadHandler>)(other)),
2457
+ stream_(other.stream_),
2458
+ buffers_(BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(other.buffers_)),
702
2459
  delim_(BOOST_ASIO_MOVE_CAST(std::string)(other.delim_)),
703
2460
  start_(other.start_),
704
2461
  search_position_(other.search_position_),
2462
+ bytes_to_read_(other.bytes_to_read_),
705
2463
  handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(other.handler_))
706
2464
  {
707
2465
  }
708
2466
  #endif // defined(BOOST_ASIO_HAS_MOVE)
709
2467
 
710
- void operator()(const boost::system::error_code& ec,
2468
+ void operator()(boost::system::error_code ec,
711
2469
  std::size_t bytes_transferred, int start = 0)
712
2470
  {
713
2471
  const std::size_t not_found = (std::numeric_limits<std::size_t>::max)();
714
- std::size_t bytes_to_read;
2472
+ std::size_t pos;
715
2473
  switch (start_ = start)
716
2474
  {
717
2475
  case 1:
@@ -719,10 +2477,12 @@ namespace detail
719
2477
  {
720
2478
  {
721
2479
  // Determine the range of the data to be searched.
722
- typedef typename DynamicBuffer::const_buffers_type
2480
+ typedef typename DynamicBuffer_v2::const_buffers_type
723
2481
  buffers_type;
724
2482
  typedef buffers_iterator<buffers_type> iterator;
725
- buffers_type data_buffers = buffers_.data();
2483
+ buffers_type data_buffers =
2484
+ const_cast<const DynamicBuffer_v2&>(buffers_).data(
2485
+ 0, buffers_.size());
726
2486
  iterator begin = iterator::begin(data_buffers);
727
2487
  iterator start_pos = begin + search_position_;
728
2488
  iterator end = iterator::end(data_buffers);
@@ -734,14 +2494,14 @@ namespace detail
734
2494
  {
735
2495
  // Full match. We're done.
736
2496
  search_position_ = result.first - begin + delim_.length();
737
- bytes_to_read = 0;
2497
+ bytes_to_read_ = 0;
738
2498
  }
739
2499
 
740
2500
  // No match yet. Check if buffer is full.
741
2501
  else if (buffers_.size() == buffers_.max_size())
742
2502
  {
743
2503
  search_position_ = not_found;
744
- bytes_to_read = 0;
2504
+ bytes_to_read_ = 0;
745
2505
  }
746
2506
 
747
2507
  // Need to read some more data.
@@ -759,7 +2519,7 @@ namespace detail
759
2519
  search_position_ = end - begin;
760
2520
  }
761
2521
 
762
- bytes_to_read = std::min<std::size_t>(
2522
+ bytes_to_read_ = std::min<std::size_t>(
763
2523
  std::max<std::size_t>(512,
764
2524
  buffers_.capacity() - buffers_.size()),
765
2525
  std::min<std::size_t>(65536,
@@ -768,16 +2528,27 @@ namespace detail
768
2528
  }
769
2529
 
770
2530
  // Check if we're done.
771
- if (!start && bytes_to_read == 0)
2531
+ if (!start && bytes_to_read_ == 0)
772
2532
  break;
773
2533
 
774
2534
  // Start a new asynchronous read operation to obtain more data.
775
- stream_.async_read_some(buffers_.prepare(bytes_to_read),
776
- BOOST_ASIO_MOVE_CAST(read_until_delim_string_op)(*this));
2535
+ pos = buffers_.size();
2536
+ buffers_.grow(bytes_to_read_);
2537
+ {
2538
+ BOOST_ASIO_HANDLER_LOCATION((
2539
+ __FILE__, __LINE__, "async_read_until"));
2540
+ stream_.async_read_some(buffers_.data(pos, bytes_to_read_),
2541
+ BOOST_ASIO_MOVE_CAST(read_until_delim_string_op_v2)(*this));
2542
+ }
777
2543
  return; default:
778
- buffers_.commit(bytes_transferred);
2544
+ buffers_.shrink(bytes_to_read_ - bytes_transferred);
779
2545
  if (ec || bytes_transferred == 0)
780
2546
  break;
2547
+ if (this->cancelled() != cancellation_type::none)
2548
+ {
2549
+ ec = error::operation_aborted;
2550
+ break;
2551
+ }
781
2552
  }
782
2553
 
783
2554
  const boost::system::error_code result_ec =
@@ -788,44 +2559,55 @@ namespace detail
788
2559
  (ec || search_position_ == not_found)
789
2560
  ? 0 : search_position_;
790
2561
 
791
- handler_(result_ec, result_n);
2562
+ BOOST_ASIO_MOVE_OR_LVALUE(ReadHandler)(handler_)(result_ec, result_n);
792
2563
  }
793
2564
  }
794
2565
 
795
2566
  //private:
796
2567
  AsyncReadStream& stream_;
797
- DynamicBuffer buffers_;
2568
+ DynamicBuffer_v2 buffers_;
798
2569
  std::string delim_;
799
2570
  int start_;
800
2571
  std::size_t search_position_;
2572
+ std::size_t bytes_to_read_;
801
2573
  ReadHandler handler_;
802
2574
  };
803
2575
 
804
2576
  template <typename AsyncReadStream,
805
- typename DynamicBuffer, typename ReadHandler>
806
- inline void* asio_handler_allocate(std::size_t size,
807
- read_until_delim_string_op<AsyncReadStream,
808
- DynamicBuffer, ReadHandler>* this_handler)
2577
+ typename DynamicBuffer_v2, typename ReadHandler>
2578
+ inline asio_handler_allocate_is_deprecated
2579
+ asio_handler_allocate(std::size_t size,
2580
+ read_until_delim_string_op_v2<AsyncReadStream,
2581
+ DynamicBuffer_v2, ReadHandler>* this_handler)
809
2582
  {
2583
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
2584
+ boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
2585
+ return asio_handler_allocate_is_no_longer_used();
2586
+ #else // defined(BOOST_ASIO_NO_DEPRECATED)
810
2587
  return boost_asio_handler_alloc_helpers::allocate(
811
2588
  size, this_handler->handler_);
2589
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
812
2590
  }
813
2591
 
814
2592
  template <typename AsyncReadStream,
815
- typename DynamicBuffer, typename ReadHandler>
816
- inline void asio_handler_deallocate(void* pointer, std::size_t size,
817
- read_until_delim_string_op<AsyncReadStream,
818
- DynamicBuffer, ReadHandler>* this_handler)
2593
+ typename DynamicBuffer_v2, typename ReadHandler>
2594
+ inline asio_handler_deallocate_is_deprecated
2595
+ asio_handler_deallocate(void* pointer, std::size_t size,
2596
+ read_until_delim_string_op_v2<AsyncReadStream,
2597
+ DynamicBuffer_v2, ReadHandler>* this_handler)
819
2598
  {
820
2599
  boost_asio_handler_alloc_helpers::deallocate(
821
2600
  pointer, size, this_handler->handler_);
2601
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
2602
+ return asio_handler_deallocate_is_no_longer_used();
2603
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
822
2604
  }
823
2605
 
824
2606
  template <typename AsyncReadStream,
825
- typename DynamicBuffer, typename ReadHandler>
2607
+ typename DynamicBuffer_v2, typename ReadHandler>
826
2608
  inline bool asio_handler_is_continuation(
827
- read_until_delim_string_op<AsyncReadStream,
828
- DynamicBuffer, ReadHandler>* this_handler)
2609
+ read_until_delim_string_op_v2<AsyncReadStream,
2610
+ DynamicBuffer_v2, ReadHandler>* this_handler)
829
2611
  {
830
2612
  return this_handler->start_ == 0 ? true
831
2613
  : boost_asio_handler_cont_helpers::is_continuation(
@@ -833,91 +2615,118 @@ namespace detail
833
2615
  }
834
2616
 
835
2617
  template <typename Function, typename AsyncReadStream,
836
- typename DynamicBuffer, typename ReadHandler>
837
- inline void asio_handler_invoke(Function& function,
838
- read_until_delim_string_op<AsyncReadStream,
839
- DynamicBuffer, ReadHandler>* this_handler)
2618
+ typename DynamicBuffer_v2, typename ReadHandler>
2619
+ inline asio_handler_invoke_is_deprecated
2620
+ asio_handler_invoke(Function& function,
2621
+ read_until_delim_string_op_v2<AsyncReadStream,
2622
+ DynamicBuffer_v2, ReadHandler>* this_handler)
840
2623
  {
841
2624
  boost_asio_handler_invoke_helpers::invoke(
842
2625
  function, this_handler->handler_);
2626
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
2627
+ return asio_handler_invoke_is_no_longer_used();
2628
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
843
2629
  }
844
2630
 
845
2631
  template <typename Function, typename AsyncReadStream,
846
- typename DynamicBuffer, typename ReadHandler>
847
- inline void asio_handler_invoke(const Function& function,
848
- read_until_delim_string_op<AsyncReadStream,
849
- DynamicBuffer, ReadHandler>* this_handler)
2632
+ typename DynamicBuffer_v2, typename ReadHandler>
2633
+ inline asio_handler_invoke_is_deprecated
2634
+ asio_handler_invoke(const Function& function,
2635
+ read_until_delim_string_op_v2<AsyncReadStream,
2636
+ DynamicBuffer_v2, ReadHandler>* this_handler)
850
2637
  {
851
2638
  boost_asio_handler_invoke_helpers::invoke(
852
2639
  function, this_handler->handler_);
2640
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
2641
+ return asio_handler_invoke_is_no_longer_used();
2642
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
853
2643
  }
854
- } // namespace detail
855
2644
 
856
- #if !defined(GENERATING_DOCUMENTATION)
2645
+ template <typename AsyncReadStream>
2646
+ class initiate_async_read_until_delim_string_v2
2647
+ {
2648
+ public:
2649
+ typedef typename AsyncReadStream::executor_type executor_type;
857
2650
 
858
- template <typename AsyncReadStream, typename DynamicBuffer,
859
- typename ReadHandler, typename Allocator>
860
- struct associated_allocator<
861
- detail::read_until_delim_string_op<AsyncReadStream,
862
- DynamicBuffer, ReadHandler>,
863
- Allocator>
864
- {
865
- typedef typename associated_allocator<ReadHandler, Allocator>::type type;
2651
+ explicit initiate_async_read_until_delim_string_v2(AsyncReadStream& stream)
2652
+ : stream_(stream)
2653
+ {
2654
+ }
866
2655
 
867
- static type get(
868
- const detail::read_until_delim_string_op<AsyncReadStream,
869
- DynamicBuffer, ReadHandler>& h,
870
- const Allocator& a = Allocator()) BOOST_ASIO_NOEXCEPT
871
- {
872
- return associated_allocator<ReadHandler, Allocator>::get(h.handler_, a);
873
- }
874
- };
2656
+ executor_type get_executor() const BOOST_ASIO_NOEXCEPT
2657
+ {
2658
+ return stream_.get_executor();
2659
+ }
875
2660
 
876
- template <typename AsyncReadStream, typename DynamicBuffer,
877
- typename ReadHandler, typename Executor>
878
- struct associated_executor<
879
- detail::read_until_delim_string_op<AsyncReadStream,
880
- DynamicBuffer, ReadHandler>,
881
- Executor>
882
- {
883
- typedef typename associated_executor<ReadHandler, Executor>::type type;
2661
+ template <typename ReadHandler, typename DynamicBuffer_v2>
2662
+ void operator()(BOOST_ASIO_MOVE_ARG(ReadHandler) handler,
2663
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v2) buffers,
2664
+ const std::string& delim) const
2665
+ {
2666
+ // If you get an error on the following line it means that your handler
2667
+ // does not meet the documented type requirements for a ReadHandler.
2668
+ BOOST_ASIO_READ_HANDLER_CHECK(ReadHandler, handler) type_check;
2669
+
2670
+ non_const_lvalue<ReadHandler> handler2(handler);
2671
+ read_until_delim_string_op_v2<AsyncReadStream,
2672
+ typename decay<DynamicBuffer_v2>::type,
2673
+ typename decay<ReadHandler>::type>(
2674
+ stream_, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers),
2675
+ delim, handler2.value)(boost::system::error_code(), 0, 1);
2676
+ }
2677
+
2678
+ private:
2679
+ AsyncReadStream& stream_;
2680
+ };
2681
+ } // namespace detail
2682
+
2683
+ #if !defined(GENERATING_DOCUMENTATION)
884
2684
 
885
- static type get(
886
- const detail::read_until_delim_string_op<AsyncReadStream,
887
- DynamicBuffer, ReadHandler>& h,
888
- const Executor& ex = Executor()) BOOST_ASIO_NOEXCEPT
2685
+ template <template <typename, typename> class Associator,
2686
+ typename AsyncReadStream, typename DynamicBuffer_v2,
2687
+ typename ReadHandler, typename DefaultCandidate>
2688
+ struct associator<Associator,
2689
+ detail::read_until_delim_string_op_v2<AsyncReadStream,
2690
+ DynamicBuffer_v2, ReadHandler>,
2691
+ DefaultCandidate>
2692
+ : Associator<ReadHandler, DefaultCandidate>
2693
+ {
2694
+ static typename Associator<ReadHandler, DefaultCandidate>::type get(
2695
+ const detail::read_until_delim_string_op_v2<AsyncReadStream,
2696
+ DynamicBuffer_v2, ReadHandler>& h,
2697
+ const DefaultCandidate& c = DefaultCandidate()) BOOST_ASIO_NOEXCEPT
889
2698
  {
890
- return associated_executor<ReadHandler, Executor>::get(h.handler_, ex);
2699
+ return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
891
2700
  }
892
2701
  };
893
2702
 
894
2703
  #endif // !defined(GENERATING_DOCUMENTATION)
895
2704
 
896
2705
  template <typename AsyncReadStream,
897
- typename DynamicBuffer, typename ReadHandler>
898
- BOOST_ASIO_INITFN_RESULT_TYPE(ReadHandler,
2706
+ typename DynamicBuffer_v2,
2707
+ BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
2708
+ std::size_t)) ReadToken>
2709
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(ReadToken,
899
2710
  void (boost::system::error_code, std::size_t))
900
2711
  async_read_until(AsyncReadStream& s,
901
- BOOST_ASIO_MOVE_ARG(DynamicBuffer) buffers,
902
- BOOST_ASIO_STRING_VIEW_PARAM delim,
903
- BOOST_ASIO_MOVE_ARG(ReadHandler) handler)
2712
+ DynamicBuffer_v2 buffers, BOOST_ASIO_STRING_VIEW_PARAM delim,
2713
+ BOOST_ASIO_MOVE_ARG(ReadToken) token,
2714
+ typename constraint<
2715
+ is_dynamic_buffer_v2<DynamicBuffer_v2>::value
2716
+ >::type)
2717
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
2718
+ async_initiate<ReadToken,
2719
+ void (boost::system::error_code, std::size_t)>(
2720
+ declval<detail::initiate_async_read_until_delim_string_v2<
2721
+ AsyncReadStream> >(),
2722
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers),
2723
+ static_cast<std::string>(delim))))
904
2724
  {
905
- // If you get an error on the following line it means that your handler does
906
- // not meet the documented type requirements for a ReadHandler.
907
- BOOST_ASIO_READ_HANDLER_CHECK(ReadHandler, handler) type_check;
908
-
909
- async_completion<ReadHandler,
910
- void (boost::system::error_code, std::size_t)> init(handler);
911
-
912
- detail::read_until_delim_string_op<AsyncReadStream,
913
- typename decay<DynamicBuffer>::type,
914
- BOOST_ASIO_HANDLER_TYPE(ReadHandler,
915
- void (boost::system::error_code, std::size_t))>(
916
- s, BOOST_ASIO_MOVE_CAST(DynamicBuffer)(buffers),
917
- static_cast<std::string>(delim),
918
- init.completion_handler)(boost::system::error_code(), 0, 1);
919
-
920
- return init.result.get();
2725
+ return async_initiate<ReadToken,
2726
+ void (boost::system::error_code, std::size_t)>(
2727
+ detail::initiate_async_read_until_delim_string_v2<AsyncReadStream>(s),
2728
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers),
2729
+ static_cast<std::string>(delim));
921
2730
  }
922
2731
 
923
2732
  #if !defined(BOOST_ASIO_NO_EXTENSIONS)
@@ -925,51 +2734,61 @@ async_read_until(AsyncReadStream& s,
925
2734
 
926
2735
  namespace detail
927
2736
  {
928
- template <typename AsyncReadStream, typename DynamicBuffer,
2737
+ template <typename AsyncReadStream, typename DynamicBuffer_v2,
929
2738
  typename RegEx, typename ReadHandler>
930
- class read_until_expr_op
2739
+ class read_until_expr_op_v2
2740
+ : public base_from_cancellation_state<ReadHandler>
931
2741
  {
932
2742
  public:
933
2743
  template <typename BufferSequence>
934
- read_until_expr_op(AsyncReadStream& stream,
2744
+ read_until_expr_op_v2(AsyncReadStream& stream,
935
2745
  BOOST_ASIO_MOVE_ARG(BufferSequence) buffers,
936
2746
  const boost::regex& expr, ReadHandler& handler)
937
- : stream_(stream),
2747
+ : base_from_cancellation_state<ReadHandler>(
2748
+ handler, enable_partial_cancellation()),
2749
+ stream_(stream),
938
2750
  buffers_(BOOST_ASIO_MOVE_CAST(BufferSequence)(buffers)),
939
2751
  expr_(expr),
940
2752
  start_(0),
941
2753
  search_position_(0),
2754
+ bytes_to_read_(0),
942
2755
  handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(handler))
943
2756
  {
944
2757
  }
945
2758
 
946
2759
  #if defined(BOOST_ASIO_HAS_MOVE)
947
- read_until_expr_op(const read_until_expr_op& other)
948
- : stream_(other.stream_),
2760
+ read_until_expr_op_v2(const read_until_expr_op_v2& other)
2761
+ : base_from_cancellation_state<ReadHandler>(other),
2762
+ stream_(other.stream_),
949
2763
  buffers_(other.buffers_),
950
2764
  expr_(other.expr_),
951
2765
  start_(other.start_),
952
2766
  search_position_(other.search_position_),
2767
+ bytes_to_read_(other.bytes_to_read_),
953
2768
  handler_(other.handler_)
954
2769
  {
955
2770
  }
956
2771
 
957
- read_until_expr_op(read_until_expr_op&& other)
958
- : stream_(other.stream_),
959
- buffers_(BOOST_ASIO_MOVE_CAST(DynamicBuffer)(other.buffers_)),
2772
+ read_until_expr_op_v2(read_until_expr_op_v2&& other)
2773
+ : base_from_cancellation_state<ReadHandler>(
2774
+ BOOST_ASIO_MOVE_CAST(base_from_cancellation_state<
2775
+ ReadHandler>)(other)),
2776
+ stream_(other.stream_),
2777
+ buffers_(BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(other.buffers_)),
960
2778
  expr_(other.expr_),
961
2779
  start_(other.start_),
962
2780
  search_position_(other.search_position_),
2781
+ bytes_to_read_(other.bytes_to_read_),
963
2782
  handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(other.handler_))
964
2783
  {
965
2784
  }
966
2785
  #endif // defined(BOOST_ASIO_HAS_MOVE)
967
2786
 
968
- void operator()(const boost::system::error_code& ec,
2787
+ void operator()(boost::system::error_code ec,
969
2788
  std::size_t bytes_transferred, int start = 0)
970
2789
  {
971
2790
  const std::size_t not_found = (std::numeric_limits<std::size_t>::max)();
972
- std::size_t bytes_to_read;
2791
+ std::size_t pos;
973
2792
  switch (start_ = start)
974
2793
  {
975
2794
  case 1:
@@ -977,10 +2796,12 @@ namespace detail
977
2796
  {
978
2797
  {
979
2798
  // Determine the range of the data to be searched.
980
- typedef typename DynamicBuffer::const_buffers_type
2799
+ typedef typename DynamicBuffer_v2::const_buffers_type
981
2800
  buffers_type;
982
2801
  typedef buffers_iterator<buffers_type> iterator;
983
- buffers_type data_buffers = buffers_.data();
2802
+ buffers_type data_buffers =
2803
+ const_cast<const DynamicBuffer_v2&>(buffers_).data(
2804
+ 0, buffers_.size());
984
2805
  iterator begin = iterator::begin(data_buffers);
985
2806
  iterator start_pos = begin + search_position_;
986
2807
  iterator end = iterator::end(data_buffers);
@@ -995,14 +2816,14 @@ namespace detail
995
2816
  {
996
2817
  // Full match. We're done.
997
2818
  search_position_ = match_results[0].second - begin;
998
- bytes_to_read = 0;
2819
+ bytes_to_read_ = 0;
999
2820
  }
1000
2821
 
1001
2822
  // No match yet. Check if buffer is full.
1002
2823
  else if (buffers_.size() == buffers_.max_size())
1003
2824
  {
1004
2825
  search_position_ = not_found;
1005
- bytes_to_read = 0;
2826
+ bytes_to_read_ = 0;
1006
2827
  }
1007
2828
 
1008
2829
  // Need to read some more data.
@@ -1020,7 +2841,7 @@ namespace detail
1020
2841
  search_position_ = end - begin;
1021
2842
  }
1022
2843
 
1023
- bytes_to_read = std::min<std::size_t>(
2844
+ bytes_to_read_ = std::min<std::size_t>(
1024
2845
  std::max<std::size_t>(512,
1025
2846
  buffers_.capacity() - buffers_.size()),
1026
2847
  std::min<std::size_t>(65536,
@@ -1029,16 +2850,27 @@ namespace detail
1029
2850
  }
1030
2851
 
1031
2852
  // Check if we're done.
1032
- if (!start && bytes_to_read == 0)
2853
+ if (!start && bytes_to_read_ == 0)
1033
2854
  break;
1034
2855
 
1035
2856
  // Start a new asynchronous read operation to obtain more data.
1036
- stream_.async_read_some(buffers_.prepare(bytes_to_read),
1037
- BOOST_ASIO_MOVE_CAST(read_until_expr_op)(*this));
2857
+ pos = buffers_.size();
2858
+ buffers_.grow(bytes_to_read_);
2859
+ {
2860
+ BOOST_ASIO_HANDLER_LOCATION((
2861
+ __FILE__, __LINE__, "async_read_until"));
2862
+ stream_.async_read_some(buffers_.data(pos, bytes_to_read_),
2863
+ BOOST_ASIO_MOVE_CAST(read_until_expr_op_v2)(*this));
2864
+ }
1038
2865
  return; default:
1039
- buffers_.commit(bytes_transferred);
2866
+ buffers_.shrink(bytes_to_read_ - bytes_transferred);
1040
2867
  if (ec || bytes_transferred == 0)
1041
2868
  break;
2869
+ if (this->cancelled() != cancellation_type::none)
2870
+ {
2871
+ ec = error::operation_aborted;
2872
+ break;
2873
+ }
1042
2874
  }
1043
2875
 
1044
2876
  const boost::system::error_code result_ec =
@@ -1049,44 +2881,55 @@ namespace detail
1049
2881
  (ec || search_position_ == not_found)
1050
2882
  ? 0 : search_position_;
1051
2883
 
1052
- handler_(result_ec, result_n);
2884
+ BOOST_ASIO_MOVE_OR_LVALUE(ReadHandler)(handler_)(result_ec, result_n);
1053
2885
  }
1054
2886
  }
1055
2887
 
1056
2888
  //private:
1057
2889
  AsyncReadStream& stream_;
1058
- DynamicBuffer buffers_;
2890
+ DynamicBuffer_v2 buffers_;
1059
2891
  RegEx expr_;
1060
2892
  int start_;
1061
2893
  std::size_t search_position_;
2894
+ std::size_t bytes_to_read_;
1062
2895
  ReadHandler handler_;
1063
2896
  };
1064
2897
 
1065
- template <typename AsyncReadStream, typename DynamicBuffer,
2898
+ template <typename AsyncReadStream, typename DynamicBuffer_v2,
1066
2899
  typename RegEx, typename ReadHandler>
1067
- inline void* asio_handler_allocate(std::size_t size,
1068
- read_until_expr_op<AsyncReadStream,
1069
- DynamicBuffer, RegEx, ReadHandler>* this_handler)
2900
+ inline asio_handler_allocate_is_deprecated
2901
+ asio_handler_allocate(std::size_t size,
2902
+ read_until_expr_op_v2<AsyncReadStream,
2903
+ DynamicBuffer_v2, RegEx, ReadHandler>* this_handler)
1070
2904
  {
2905
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
2906
+ boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
2907
+ return asio_handler_allocate_is_no_longer_used();
2908
+ #else // defined(BOOST_ASIO_NO_DEPRECATED)
1071
2909
  return boost_asio_handler_alloc_helpers::allocate(
1072
2910
  size, this_handler->handler_);
2911
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1073
2912
  }
1074
2913
 
1075
- template <typename AsyncReadStream, typename DynamicBuffer,
2914
+ template <typename AsyncReadStream, typename DynamicBuffer_v2,
1076
2915
  typename RegEx, typename ReadHandler>
1077
- inline void asio_handler_deallocate(void* pointer, std::size_t size,
1078
- read_until_expr_op<AsyncReadStream,
1079
- DynamicBuffer, RegEx, ReadHandler>* this_handler)
2916
+ inline asio_handler_deallocate_is_deprecated
2917
+ asio_handler_deallocate(void* pointer, std::size_t size,
2918
+ read_until_expr_op_v2<AsyncReadStream,
2919
+ DynamicBuffer_v2, RegEx, ReadHandler>* this_handler)
1080
2920
  {
1081
2921
  boost_asio_handler_alloc_helpers::deallocate(
1082
2922
  pointer, size, this_handler->handler_);
2923
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
2924
+ return asio_handler_deallocate_is_no_longer_used();
2925
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1083
2926
  }
1084
2927
 
1085
- template <typename AsyncReadStream, typename DynamicBuffer,
2928
+ template <typename AsyncReadStream, typename DynamicBuffer_v2,
1086
2929
  typename RegEx, typename ReadHandler>
1087
2930
  inline bool asio_handler_is_continuation(
1088
- read_until_expr_op<AsyncReadStream,
1089
- DynamicBuffer, RegEx, ReadHandler>* this_handler)
2931
+ read_until_expr_op_v2<AsyncReadStream,
2932
+ DynamicBuffer_v2, RegEx, ReadHandler>* this_handler)
1090
2933
  {
1091
2934
  return this_handler->start_ == 0 ? true
1092
2935
  : boost_asio_handler_cont_helpers::is_continuation(
@@ -1094,141 +2937,174 @@ namespace detail
1094
2937
  }
1095
2938
 
1096
2939
  template <typename Function, typename AsyncReadStream,
1097
- typename DynamicBuffer, typename RegEx, typename ReadHandler>
1098
- inline void asio_handler_invoke(Function& function,
1099
- read_until_expr_op<AsyncReadStream,
1100
- DynamicBuffer, RegEx, ReadHandler>* this_handler)
2940
+ typename DynamicBuffer_v2, typename RegEx, typename ReadHandler>
2941
+ inline asio_handler_invoke_is_deprecated
2942
+ asio_handler_invoke(Function& function,
2943
+ read_until_expr_op_v2<AsyncReadStream,
2944
+ DynamicBuffer_v2, RegEx, ReadHandler>* this_handler)
1101
2945
  {
1102
2946
  boost_asio_handler_invoke_helpers::invoke(
1103
2947
  function, this_handler->handler_);
2948
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
2949
+ return asio_handler_invoke_is_no_longer_used();
2950
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1104
2951
  }
1105
2952
 
1106
2953
  template <typename Function, typename AsyncReadStream,
1107
- typename DynamicBuffer, typename RegEx, typename ReadHandler>
1108
- inline void asio_handler_invoke(const Function& function,
1109
- read_until_expr_op<AsyncReadStream,
1110
- DynamicBuffer, RegEx, ReadHandler>* this_handler)
2954
+ typename DynamicBuffer_v2, typename RegEx, typename ReadHandler>
2955
+ inline asio_handler_invoke_is_deprecated
2956
+ asio_handler_invoke(const Function& function,
2957
+ read_until_expr_op_v2<AsyncReadStream,
2958
+ DynamicBuffer_v2, RegEx, ReadHandler>* this_handler)
1111
2959
  {
1112
2960
  boost_asio_handler_invoke_helpers::invoke(
1113
2961
  function, this_handler->handler_);
2962
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
2963
+ return asio_handler_invoke_is_no_longer_used();
2964
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1114
2965
  }
1115
- } // namespace detail
1116
2966
 
1117
- #if !defined(GENERATING_DOCUMENTATION)
2967
+ template <typename AsyncReadStream>
2968
+ class initiate_async_read_until_expr_v2
2969
+ {
2970
+ public:
2971
+ typedef typename AsyncReadStream::executor_type executor_type;
1118
2972
 
1119
- template <typename AsyncReadStream, typename DynamicBuffer,
1120
- typename RegEx, typename ReadHandler, typename Allocator>
1121
- struct associated_allocator<
1122
- detail::read_until_expr_op<AsyncReadStream,
1123
- DynamicBuffer, RegEx, ReadHandler>,
1124
- Allocator>
1125
- {
1126
- typedef typename associated_allocator<ReadHandler, Allocator>::type type;
2973
+ explicit initiate_async_read_until_expr_v2(AsyncReadStream& stream)
2974
+ : stream_(stream)
2975
+ {
2976
+ }
1127
2977
 
1128
- static type get(
1129
- const detail::read_until_expr_op<AsyncReadStream,
1130
- DynamicBuffer, RegEx, ReadHandler>& h,
1131
- const Allocator& a = Allocator()) BOOST_ASIO_NOEXCEPT
1132
- {
1133
- return associated_allocator<ReadHandler, Allocator>::get(h.handler_, a);
1134
- }
1135
- };
2978
+ executor_type get_executor() const BOOST_ASIO_NOEXCEPT
2979
+ {
2980
+ return stream_.get_executor();
2981
+ }
1136
2982
 
1137
- template <typename AsyncReadStream, typename DynamicBuffer,
1138
- typename RegEx, typename ReadHandler, typename Executor>
1139
- struct associated_executor<
1140
- detail::read_until_expr_op<AsyncReadStream,
1141
- DynamicBuffer, RegEx, ReadHandler>,
1142
- Executor>
1143
- {
1144
- typedef typename associated_executor<ReadHandler, Executor>::type type;
2983
+ template <typename ReadHandler, typename DynamicBuffer_v2, typename RegEx>
2984
+ void operator()(BOOST_ASIO_MOVE_ARG(ReadHandler) handler,
2985
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v2) buffers,
2986
+ const RegEx& expr) const
2987
+ {
2988
+ // If you get an error on the following line it means that your handler
2989
+ // does not meet the documented type requirements for a ReadHandler.
2990
+ BOOST_ASIO_READ_HANDLER_CHECK(ReadHandler, handler) type_check;
2991
+
2992
+ non_const_lvalue<ReadHandler> handler2(handler);
2993
+ read_until_expr_op_v2<AsyncReadStream,
2994
+ typename decay<DynamicBuffer_v2>::type,
2995
+ RegEx, typename decay<ReadHandler>::type>(
2996
+ stream_, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers),
2997
+ expr, handler2.value)(boost::system::error_code(), 0, 1);
2998
+ }
2999
+
3000
+ private:
3001
+ AsyncReadStream& stream_;
3002
+ };
3003
+ } // namespace detail
3004
+
3005
+ #if !defined(GENERATING_DOCUMENTATION)
1145
3006
 
1146
- static type get(
1147
- const detail::read_until_expr_op<AsyncReadStream,
1148
- DynamicBuffer, RegEx, ReadHandler>& h,
1149
- const Executor& ex = Executor()) BOOST_ASIO_NOEXCEPT
3007
+ template <template <typename, typename> class Associator,
3008
+ typename AsyncReadStream, typename DynamicBuffer_v2,
3009
+ typename RegEx, typename ReadHandler, typename DefaultCandidate>
3010
+ struct associator<Associator,
3011
+ detail::read_until_expr_op_v2<AsyncReadStream,
3012
+ DynamicBuffer_v2, RegEx, ReadHandler>,
3013
+ DefaultCandidate>
3014
+ : Associator<ReadHandler, DefaultCandidate>
3015
+ {
3016
+ static typename Associator<ReadHandler, DefaultCandidate>::type get(
3017
+ const detail::read_until_expr_op_v2<AsyncReadStream,
3018
+ DynamicBuffer_v2, RegEx, ReadHandler>& h,
3019
+ const DefaultCandidate& c = DefaultCandidate()) BOOST_ASIO_NOEXCEPT
1150
3020
  {
1151
- return associated_executor<ReadHandler, Executor>::get(h.handler_, ex);
3021
+ return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
1152
3022
  }
1153
3023
  };
1154
3024
 
1155
3025
  #endif // !defined(GENERATING_DOCUMENTATION)
1156
3026
 
1157
- template <typename AsyncReadStream,
1158
- typename DynamicBuffer, typename ReadHandler>
1159
- BOOST_ASIO_INITFN_RESULT_TYPE(ReadHandler,
3027
+ template <typename AsyncReadStream, typename DynamicBuffer_v2,
3028
+ BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
3029
+ std::size_t)) ReadToken>
3030
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(ReadToken,
1160
3031
  void (boost::system::error_code, std::size_t))
1161
- async_read_until(AsyncReadStream& s,
1162
- BOOST_ASIO_MOVE_ARG(DynamicBuffer) buffers,
1163
- const boost::regex& expr,
1164
- BOOST_ASIO_MOVE_ARG(ReadHandler) handler)
3032
+ async_read_until(AsyncReadStream& s, DynamicBuffer_v2 buffers,
3033
+ const boost::regex& expr, BOOST_ASIO_MOVE_ARG(ReadToken) token,
3034
+ typename constraint<
3035
+ is_dynamic_buffer_v2<DynamicBuffer_v2>::value
3036
+ >::type)
3037
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
3038
+ async_initiate<ReadToken,
3039
+ void (boost::system::error_code, std::size_t)>(
3040
+ declval<detail::initiate_async_read_until_expr_v2<AsyncReadStream> >(),
3041
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers), expr)))
1165
3042
  {
1166
- // If you get an error on the following line it means that your handler does
1167
- // not meet the documented type requirements for a ReadHandler.
1168
- BOOST_ASIO_READ_HANDLER_CHECK(ReadHandler, handler) type_check;
1169
-
1170
- async_completion<ReadHandler,
1171
- void (boost::system::error_code, std::size_t)> init(handler);
1172
-
1173
- detail::read_until_expr_op<AsyncReadStream,
1174
- typename decay<DynamicBuffer>::type,
1175
- boost::regex, BOOST_ASIO_HANDLER_TYPE(ReadHandler,
1176
- void (boost::system::error_code, std::size_t))>(
1177
- s, BOOST_ASIO_MOVE_CAST(DynamicBuffer)(buffers),
1178
- expr, init.completion_handler)(boost::system::error_code(), 0, 1);
1179
-
1180
- return init.result.get();
3043
+ return async_initiate<ReadToken,
3044
+ void (boost::system::error_code, std::size_t)>(
3045
+ detail::initiate_async_read_until_expr_v2<AsyncReadStream>(s),
3046
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers), expr);
1181
3047
  }
1182
3048
 
1183
3049
  #endif // defined(BOOST_ASIO_HAS_BOOST_REGEX)
1184
3050
 
1185
3051
  namespace detail
1186
3052
  {
1187
- template <typename AsyncReadStream, typename DynamicBuffer,
3053
+ template <typename AsyncReadStream, typename DynamicBuffer_v2,
1188
3054
  typename MatchCondition, typename ReadHandler>
1189
- class read_until_match_op
3055
+ class read_until_match_op_v2
3056
+ : public base_from_cancellation_state<ReadHandler>
1190
3057
  {
1191
3058
  public:
1192
3059
  template <typename BufferSequence>
1193
- read_until_match_op(AsyncReadStream& stream,
3060
+ read_until_match_op_v2(AsyncReadStream& stream,
1194
3061
  BOOST_ASIO_MOVE_ARG(BufferSequence) buffers,
1195
3062
  MatchCondition match_condition, ReadHandler& handler)
1196
- : stream_(stream),
3063
+ : base_from_cancellation_state<ReadHandler>(
3064
+ handler, enable_partial_cancellation()),
3065
+ stream_(stream),
1197
3066
  buffers_(BOOST_ASIO_MOVE_CAST(BufferSequence)(buffers)),
1198
3067
  match_condition_(match_condition),
1199
3068
  start_(0),
1200
3069
  search_position_(0),
3070
+ bytes_to_read_(0),
1201
3071
  handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(handler))
1202
3072
  {
1203
3073
  }
1204
3074
 
1205
3075
  #if defined(BOOST_ASIO_HAS_MOVE)
1206
- read_until_match_op(const read_until_match_op& other)
1207
- : stream_(other.stream_),
3076
+ read_until_match_op_v2(const read_until_match_op_v2& other)
3077
+ : base_from_cancellation_state<ReadHandler>(other),
3078
+ stream_(other.stream_),
1208
3079
  buffers_(other.buffers_),
1209
3080
  match_condition_(other.match_condition_),
1210
3081
  start_(other.start_),
1211
3082
  search_position_(other.search_position_),
3083
+ bytes_to_read_(other.bytes_to_read_),
1212
3084
  handler_(other.handler_)
1213
3085
  {
1214
3086
  }
1215
3087
 
1216
- read_until_match_op(read_until_match_op&& other)
1217
- : stream_(other.stream_),
1218
- buffers_(BOOST_ASIO_MOVE_CAST(DynamicBuffer)(other.buffers_)),
3088
+ read_until_match_op_v2(read_until_match_op_v2&& other)
3089
+ : base_from_cancellation_state<ReadHandler>(
3090
+ BOOST_ASIO_MOVE_CAST(base_from_cancellation_state<
3091
+ ReadHandler>)(other)),
3092
+ stream_(other.stream_),
3093
+ buffers_(BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(other.buffers_)),
1219
3094
  match_condition_(other.match_condition_),
1220
3095
  start_(other.start_),
1221
3096
  search_position_(other.search_position_),
3097
+ bytes_to_read_(other.bytes_to_read_),
1222
3098
  handler_(BOOST_ASIO_MOVE_CAST(ReadHandler)(other.handler_))
1223
3099
  {
1224
3100
  }
1225
3101
  #endif // defined(BOOST_ASIO_HAS_MOVE)
1226
3102
 
1227
- void operator()(const boost::system::error_code& ec,
3103
+ void operator()(boost::system::error_code ec,
1228
3104
  std::size_t bytes_transferred, int start = 0)
1229
3105
  {
1230
3106
  const std::size_t not_found = (std::numeric_limits<std::size_t>::max)();
1231
- std::size_t bytes_to_read;
3107
+ std::size_t pos;
1232
3108
  switch (start_ = start)
1233
3109
  {
1234
3110
  case 1:
@@ -1236,10 +3112,12 @@ namespace detail
1236
3112
  {
1237
3113
  {
1238
3114
  // Determine the range of the data to be searched.
1239
- typedef typename DynamicBuffer::const_buffers_type
3115
+ typedef typename DynamicBuffer_v2::const_buffers_type
1240
3116
  buffers_type;
1241
3117
  typedef buffers_iterator<buffers_type> iterator;
1242
- buffers_type data_buffers = buffers_.data();
3118
+ buffers_type data_buffers =
3119
+ const_cast<const DynamicBuffer_v2&>(buffers_).data(
3120
+ 0, buffers_.size());
1243
3121
  iterator begin = iterator::begin(data_buffers);
1244
3122
  iterator start_pos = begin + search_position_;
1245
3123
  iterator end = iterator::end(data_buffers);
@@ -1250,14 +3128,14 @@ namespace detail
1250
3128
  {
1251
3129
  // Full match. We're done.
1252
3130
  search_position_ = result.first - begin;
1253
- bytes_to_read = 0;
3131
+ bytes_to_read_ = 0;
1254
3132
  }
1255
3133
 
1256
3134
  // No match yet. Check if buffer is full.
1257
3135
  else if (buffers_.size() == buffers_.max_size())
1258
3136
  {
1259
3137
  search_position_ = not_found;
1260
- bytes_to_read = 0;
3138
+ bytes_to_read_ = 0;
1261
3139
  }
1262
3140
 
1263
3141
  // Need to read some more data.
@@ -1275,7 +3153,7 @@ namespace detail
1275
3153
  search_position_ = end - begin;
1276
3154
  }
1277
3155
 
1278
- bytes_to_read = std::min<std::size_t>(
3156
+ bytes_to_read_ = std::min<std::size_t>(
1279
3157
  std::max<std::size_t>(512,
1280
3158
  buffers_.capacity() - buffers_.size()),
1281
3159
  std::min<std::size_t>(65536,
@@ -1284,16 +3162,27 @@ namespace detail
1284
3162
  }
1285
3163
 
1286
3164
  // Check if we're done.
1287
- if (!start && bytes_to_read == 0)
3165
+ if (!start && bytes_to_read_ == 0)
1288
3166
  break;
1289
3167
 
1290
3168
  // Start a new asynchronous read operation to obtain more data.
1291
- stream_.async_read_some(buffers_.prepare(bytes_to_read),
1292
- BOOST_ASIO_MOVE_CAST(read_until_match_op)(*this));
3169
+ pos = buffers_.size();
3170
+ buffers_.grow(bytes_to_read_);
3171
+ {
3172
+ BOOST_ASIO_HANDLER_LOCATION((
3173
+ __FILE__, __LINE__, "async_read_until"));
3174
+ stream_.async_read_some(buffers_.data(pos, bytes_to_read_),
3175
+ BOOST_ASIO_MOVE_CAST(read_until_match_op_v2)(*this));
3176
+ }
1293
3177
  return; default:
1294
- buffers_.commit(bytes_transferred);
3178
+ buffers_.shrink(bytes_to_read_ - bytes_transferred);
1295
3179
  if (ec || bytes_transferred == 0)
1296
3180
  break;
3181
+ if (this->cancelled() != cancellation_type::none)
3182
+ {
3183
+ ec = error::operation_aborted;
3184
+ break;
3185
+ }
1297
3186
  }
1298
3187
 
1299
3188
  const boost::system::error_code result_ec =
@@ -1304,43 +3193,54 @@ namespace detail
1304
3193
  (ec || search_position_ == not_found)
1305
3194
  ? 0 : search_position_;
1306
3195
 
1307
- handler_(result_ec, result_n);
3196
+ BOOST_ASIO_MOVE_OR_LVALUE(ReadHandler)(handler_)(result_ec, result_n);
1308
3197
  }
1309
3198
  }
1310
3199
 
1311
3200
  //private:
1312
3201
  AsyncReadStream& stream_;
1313
- DynamicBuffer buffers_;
3202
+ DynamicBuffer_v2 buffers_;
1314
3203
  MatchCondition match_condition_;
1315
3204
  int start_;
1316
3205
  std::size_t search_position_;
3206
+ std::size_t bytes_to_read_;
1317
3207
  ReadHandler handler_;
1318
3208
  };
1319
3209
 
1320
- template <typename AsyncReadStream, typename DynamicBuffer,
3210
+ template <typename AsyncReadStream, typename DynamicBuffer_v2,
1321
3211
  typename MatchCondition, typename ReadHandler>
1322
- inline void* asio_handler_allocate(std::size_t size,
1323
- read_until_match_op<AsyncReadStream, DynamicBuffer,
3212
+ inline asio_handler_allocate_is_deprecated
3213
+ asio_handler_allocate(std::size_t size,
3214
+ read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2,
1324
3215
  MatchCondition, ReadHandler>* this_handler)
1325
3216
  {
3217
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
3218
+ boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
3219
+ return asio_handler_allocate_is_no_longer_used();
3220
+ #else // defined(BOOST_ASIO_NO_DEPRECATED)
1326
3221
  return boost_asio_handler_alloc_helpers::allocate(
1327
3222
  size, this_handler->handler_);
3223
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1328
3224
  }
1329
3225
 
1330
- template <typename AsyncReadStream, typename DynamicBuffer,
3226
+ template <typename AsyncReadStream, typename DynamicBuffer_v2,
1331
3227
  typename MatchCondition, typename ReadHandler>
1332
- inline void asio_handler_deallocate(void* pointer, std::size_t size,
1333
- read_until_match_op<AsyncReadStream, DynamicBuffer,
3228
+ inline asio_handler_deallocate_is_deprecated
3229
+ asio_handler_deallocate(void* pointer, std::size_t size,
3230
+ read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2,
1334
3231
  MatchCondition, ReadHandler>* this_handler)
1335
3232
  {
1336
3233
  boost_asio_handler_alloc_helpers::deallocate(
1337
3234
  pointer, size, this_handler->handler_);
3235
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
3236
+ return asio_handler_deallocate_is_no_longer_used();
3237
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1338
3238
  }
1339
3239
 
1340
- template <typename AsyncReadStream, typename DynamicBuffer,
3240
+ template <typename AsyncReadStream, typename DynamicBuffer_v2,
1341
3241
  typename MatchCondition, typename ReadHandler>
1342
3242
  inline bool asio_handler_is_continuation(
1343
- read_until_match_op<AsyncReadStream, DynamicBuffer,
3243
+ read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2,
1344
3244
  MatchCondition, ReadHandler>* this_handler)
1345
3245
  {
1346
3246
  return this_handler->start_ == 0 ? true
@@ -1349,149 +3249,124 @@ namespace detail
1349
3249
  }
1350
3250
 
1351
3251
  template <typename Function, typename AsyncReadStream,
1352
- typename DynamicBuffer, typename MatchCondition,
3252
+ typename DynamicBuffer_v2, typename MatchCondition,
1353
3253
  typename ReadHandler>
1354
- inline void asio_handler_invoke(Function& function,
1355
- read_until_match_op<AsyncReadStream, DynamicBuffer,
3254
+ inline asio_handler_invoke_is_deprecated
3255
+ asio_handler_invoke(Function& function,
3256
+ read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2,
1356
3257
  MatchCondition, ReadHandler>* this_handler)
1357
3258
  {
1358
3259
  boost_asio_handler_invoke_helpers::invoke(
1359
3260
  function, this_handler->handler_);
3261
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
3262
+ return asio_handler_invoke_is_no_longer_used();
3263
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1360
3264
  }
1361
3265
 
1362
3266
  template <typename Function, typename AsyncReadStream,
1363
- typename DynamicBuffer, typename MatchCondition,
3267
+ typename DynamicBuffer_v2, typename MatchCondition,
1364
3268
  typename ReadHandler>
1365
- inline void asio_handler_invoke(const Function& function,
1366
- read_until_match_op<AsyncReadStream, DynamicBuffer,
3269
+ inline asio_handler_invoke_is_deprecated
3270
+ asio_handler_invoke(const Function& function,
3271
+ read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2,
1367
3272
  MatchCondition, ReadHandler>* this_handler)
1368
3273
  {
1369
3274
  boost_asio_handler_invoke_helpers::invoke(
1370
3275
  function, this_handler->handler_);
3276
+ #if defined(BOOST_ASIO_NO_DEPRECATED)
3277
+ return asio_handler_invoke_is_no_longer_used();
3278
+ #endif // defined(BOOST_ASIO_NO_DEPRECATED)
1371
3279
  }
1372
- } // namespace detail
1373
-
1374
- #if !defined(GENERATING_DOCUMENTATION)
1375
-
1376
- template <typename AsyncReadStream, typename DynamicBuffer,
1377
- typename MatchCondition, typename ReadHandler, typename Allocator>
1378
- struct associated_allocator<
1379
- detail::read_until_match_op<AsyncReadStream,
1380
- DynamicBuffer, MatchCondition, ReadHandler>,
1381
- Allocator>
1382
- {
1383
- typedef typename associated_allocator<ReadHandler, Allocator>::type type;
1384
-
1385
- static type get(
1386
- const detail::read_until_match_op<AsyncReadStream,
1387
- DynamicBuffer, MatchCondition, ReadHandler>& h,
1388
- const Allocator& a = Allocator()) BOOST_ASIO_NOEXCEPT
1389
- {
1390
- return associated_allocator<ReadHandler, Allocator>::get(h.handler_, a);
1391
- }
1392
- };
1393
3280
 
1394
- template <typename AsyncReadStream, typename DynamicBuffer,
1395
- typename MatchCondition, typename ReadHandler, typename Executor>
1396
- struct associated_executor<
1397
- detail::read_until_match_op<AsyncReadStream,
1398
- DynamicBuffer, MatchCondition, ReadHandler>,
1399
- Executor>
1400
- {
1401
- typedef typename associated_executor<ReadHandler, Executor>::type type;
1402
-
1403
- static type get(
1404
- const detail::read_until_match_op<AsyncReadStream,
1405
- DynamicBuffer, MatchCondition, ReadHandler>& h,
1406
- const Executor& ex = Executor()) BOOST_ASIO_NOEXCEPT
3281
+ template <typename AsyncReadStream>
3282
+ class initiate_async_read_until_match_v2
1407
3283
  {
1408
- return associated_executor<ReadHandler, Executor>::get(h.handler_, ex);
1409
- }
1410
- };
1411
-
1412
- #endif // !defined(GENERATING_DOCUMENTATION)
3284
+ public:
3285
+ typedef typename AsyncReadStream::executor_type executor_type;
1413
3286
 
1414
- template <typename AsyncReadStream, typename DynamicBuffer,
1415
- typename MatchCondition, typename ReadHandler>
1416
- BOOST_ASIO_INITFN_RESULT_TYPE(ReadHandler,
1417
- void (boost::system::error_code, std::size_t))
1418
- async_read_until(AsyncReadStream& s,
1419
- BOOST_ASIO_MOVE_ARG(DynamicBuffer) buffers,
1420
- MatchCondition match_condition, BOOST_ASIO_MOVE_ARG(ReadHandler) handler,
1421
- typename enable_if<is_match_condition<MatchCondition>::value>::type*)
1422
- {
1423
- // If you get an error on the following line it means that your handler does
1424
- // not meet the documented type requirements for a ReadHandler.
1425
- BOOST_ASIO_READ_HANDLER_CHECK(ReadHandler, handler) type_check;
1426
-
1427
- async_completion<ReadHandler,
1428
- void (boost::system::error_code, std::size_t)> init(handler);
1429
-
1430
- detail::read_until_match_op<AsyncReadStream,
1431
- typename decay<DynamicBuffer>::type,
1432
- MatchCondition, BOOST_ASIO_HANDLER_TYPE(ReadHandler,
1433
- void (boost::system::error_code, std::size_t))>(
1434
- s, BOOST_ASIO_MOVE_CAST(DynamicBuffer)(buffers),
1435
- match_condition, init.completion_handler)(
1436
- boost::system::error_code(), 0, 1);
1437
-
1438
- return init.result.get();
1439
- }
3287
+ explicit initiate_async_read_until_match_v2(AsyncReadStream& stream)
3288
+ : stream_(stream)
3289
+ {
3290
+ }
1440
3291
 
1441
- #if !defined(BOOST_ASIO_NO_IOSTREAM)
3292
+ executor_type get_executor() const BOOST_ASIO_NOEXCEPT
3293
+ {
3294
+ return stream_.get_executor();
3295
+ }
1442
3296
 
1443
- template <typename AsyncReadStream, typename Allocator, typename ReadHandler>
1444
- inline BOOST_ASIO_INITFN_RESULT_TYPE(ReadHandler,
1445
- void (boost::system::error_code, std::size_t))
1446
- async_read_until(AsyncReadStream& s,
1447
- boost::asio::basic_streambuf<Allocator>& b,
1448
- char delim, BOOST_ASIO_MOVE_ARG(ReadHandler) handler)
1449
- {
1450
- return async_read_until(s, basic_streambuf_ref<Allocator>(b),
1451
- delim, BOOST_ASIO_MOVE_CAST(ReadHandler)(handler));
1452
- }
3297
+ template <typename ReadHandler,
3298
+ typename DynamicBuffer_v2, typename MatchCondition>
3299
+ void operator()(BOOST_ASIO_MOVE_ARG(ReadHandler) handler,
3300
+ BOOST_ASIO_MOVE_ARG(DynamicBuffer_v2) buffers,
3301
+ MatchCondition match_condition) const
3302
+ {
3303
+ // If you get an error on the following line it means that your handler
3304
+ // does not meet the documented type requirements for a ReadHandler.
3305
+ BOOST_ASIO_READ_HANDLER_CHECK(ReadHandler, handler) type_check;
3306
+
3307
+ non_const_lvalue<ReadHandler> handler2(handler);
3308
+ read_until_match_op_v2<AsyncReadStream,
3309
+ typename decay<DynamicBuffer_v2>::type,
3310
+ MatchCondition, typename decay<ReadHandler>::type>(
3311
+ stream_, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers),
3312
+ match_condition, handler2.value)(boost::system::error_code(), 0, 1);
3313
+ }
1453
3314
 
1454
- template <typename AsyncReadStream, typename Allocator, typename ReadHandler>
1455
- inline BOOST_ASIO_INITFN_RESULT_TYPE(ReadHandler,
1456
- void (boost::system::error_code, std::size_t))
1457
- async_read_until(AsyncReadStream& s,
1458
- boost::asio::basic_streambuf<Allocator>& b,
1459
- BOOST_ASIO_STRING_VIEW_PARAM delim,
1460
- BOOST_ASIO_MOVE_ARG(ReadHandler) handler)
1461
- {
1462
- return async_read_until(s, basic_streambuf_ref<Allocator>(b),
1463
- delim, BOOST_ASIO_MOVE_CAST(ReadHandler)(handler));
1464
- }
3315
+ private:
3316
+ AsyncReadStream& stream_;
3317
+ };
3318
+ } // namespace detail
1465
3319
 
1466
- #if defined(BOOST_ASIO_HAS_BOOST_REGEX)
3320
+ #if !defined(GENERATING_DOCUMENTATION)
1467
3321
 
1468
- template <typename AsyncReadStream, typename Allocator, typename ReadHandler>
1469
- inline BOOST_ASIO_INITFN_RESULT_TYPE(ReadHandler,
1470
- void (boost::system::error_code, std::size_t))
1471
- async_read_until(AsyncReadStream& s,
1472
- boost::asio::basic_streambuf<Allocator>& b, const boost::regex& expr,
1473
- BOOST_ASIO_MOVE_ARG(ReadHandler) handler)
3322
+ template <template <typename, typename> class Associator,
3323
+ typename AsyncReadStream, typename DynamicBuffer_v2,
3324
+ typename MatchCondition, typename ReadHandler, typename DefaultCandidate>
3325
+ struct associator<Associator,
3326
+ detail::read_until_match_op_v2<AsyncReadStream,
3327
+ DynamicBuffer_v2, MatchCondition, ReadHandler>,
3328
+ DefaultCandidate>
3329
+ : Associator<ReadHandler, DefaultCandidate>
1474
3330
  {
1475
- return async_read_until(s, basic_streambuf_ref<Allocator>(b),
1476
- expr, BOOST_ASIO_MOVE_CAST(ReadHandler)(handler));
1477
- }
3331
+ static typename Associator<ReadHandler, DefaultCandidate>::type get(
3332
+ const detail::read_until_match_op_v2<AsyncReadStream,
3333
+ DynamicBuffer_v2, MatchCondition, ReadHandler>& h,
3334
+ const DefaultCandidate& c = DefaultCandidate()) BOOST_ASIO_NOEXCEPT
3335
+ {
3336
+ return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
3337
+ }
3338
+ };
1478
3339
 
1479
- #endif // defined(BOOST_ASIO_HAS_BOOST_REGEX)
3340
+ #endif // !defined(GENERATING_DOCUMENTATION)
1480
3341
 
1481
- template <typename AsyncReadStream, typename Allocator,
1482
- typename MatchCondition, typename ReadHandler>
1483
- inline BOOST_ASIO_INITFN_RESULT_TYPE(ReadHandler,
3342
+ template <typename AsyncReadStream,
3343
+ typename DynamicBuffer_v2, typename MatchCondition,
3344
+ BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
3345
+ std::size_t)) ReadToken>
3346
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(ReadToken,
1484
3347
  void (boost::system::error_code, std::size_t))
1485
- async_read_until(AsyncReadStream& s,
1486
- boost::asio::basic_streambuf<Allocator>& b,
1487
- MatchCondition match_condition, BOOST_ASIO_MOVE_ARG(ReadHandler) handler,
1488
- typename enable_if<is_match_condition<MatchCondition>::value>::type*)
3348
+ async_read_until(AsyncReadStream& s, DynamicBuffer_v2 buffers,
3349
+ MatchCondition match_condition, BOOST_ASIO_MOVE_ARG(ReadToken) token,
3350
+ typename constraint<
3351
+ is_match_condition<MatchCondition>::value
3352
+ >::type,
3353
+ typename constraint<
3354
+ is_dynamic_buffer_v2<DynamicBuffer_v2>::value
3355
+ >::type)
3356
+ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
3357
+ async_initiate<ReadToken,
3358
+ void (boost::system::error_code, std::size_t)>(
3359
+ declval<detail::initiate_async_read_until_match_v2<AsyncReadStream> >(),
3360
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers),
3361
+ match_condition)))
1489
3362
  {
1490
- return async_read_until(s, basic_streambuf_ref<Allocator>(b),
1491
- match_condition, BOOST_ASIO_MOVE_CAST(ReadHandler)(handler));
3363
+ return async_initiate<ReadToken,
3364
+ void (boost::system::error_code, std::size_t)>(
3365
+ detail::initiate_async_read_until_match_v2<AsyncReadStream>(s),
3366
+ token, BOOST_ASIO_MOVE_CAST(DynamicBuffer_v2)(buffers),
3367
+ match_condition);
1492
3368
  }
1493
3369
 
1494
- #endif // !defined(BOOST_ASIO_NO_IOSTREAM)
1495
3370
  #endif // !defined(BOOST_ASIO_NO_EXTENSIONS)
1496
3371
 
1497
3372
  } // namespace asio