passenger 6.0.6 → 6.0.10

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