passenger 6.0.6 → 6.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2780) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG +391 -1
  3. data/CONTRIBUTING.md +1 -1
  4. data/CONTRIBUTORS +20 -0
  5. data/README.md +4 -11
  6. data/bin/passenger-install-nginx-module +5 -4
  7. data/bin/passenger-memory-stats +65 -12
  8. data/bin/passenger-status +29 -4
  9. data/build/common_library.rb +6 -5
  10. data/build/integration_tests.rb +8 -7
  11. data/build/packaging.rb +4 -2
  12. data/build/ruby_tests.rb +1 -1
  13. data/build/support/cxx_dependency_map.rb +156 -54
  14. data/build/test_basics.rb +8 -5
  15. data/dev/copy_boost_headers +140 -78
  16. data/dev/index_cxx_dependencies.rb +1 -1
  17. data/dev/nginx_version_sha256 +72 -0
  18. data/dev/websocketpp.patch +39 -0
  19. data/doc/templates/markdown.html.erb +2 -6
  20. data/package.json +20 -18
  21. data/passenger.gemspec +1 -1
  22. data/resources/mime.types +1 -0
  23. data/resources/release.txt +1 -0
  24. data/resources/templates/config/installation_utils/user_support_binaries_dir_not_writable.txt.erb +1 -0
  25. data/resources/templates/error_renderer/with_details/dist/bundle.js +2 -33
  26. data/resources/templates/error_renderer/with_details/dist/styles.css +2 -2
  27. data/resources/templates/error_renderer/with_details/src/GetHelpView.jsx +1 -1
  28. data/resources/templates/error_renderer/with_details/src/index.html.template +0 -2
  29. data/resources/templates/error_renderer/with_details/webpack.config.js +13 -16
  30. data/resources/templates/error_renderer/without_details/dist/bundle.js +0 -1
  31. data/resources/templates/error_renderer/without_details/dist/styles.css +1 -1
  32. data/resources/templates/error_renderer/without_details/webpack.config.js +13 -16
  33. data/resources/templates/standalone/global.erb +4 -0
  34. data/resources/templates/standalone/rails_asset_pipeline.erb +1 -1
  35. data/resources/templates/standalone/server.erb +1 -0
  36. data/src/agent/AgentMain.cpp +2 -8
  37. data/src/agent/Core/AdminPanelConnector.h +3 -4
  38. data/src/agent/Core/ApiServer.h +36 -1
  39. data/src/agent/Core/ApplicationPool/Group/InternalUtils.cpp +2 -2
  40. data/src/agent/Core/ApplicationPool/Group/OutOfBandWork.cpp +1 -1
  41. data/src/agent/Core/ApplicationPool/Group/StateInspection.cpp +2 -0
  42. data/src/agent/Core/ApplicationPool/Group.h +1 -1
  43. data/src/agent/Core/ApplicationPool/Implementation.cpp +0 -1
  44. data/src/agent/Core/ApplicationPool/Options.h +16 -2
  45. data/src/agent/Core/ApplicationPool/Pool/ProcessUtils.cpp +1 -1
  46. data/src/agent/Core/ApplicationPool/Pool/StateInspection.cpp +8 -1
  47. data/src/agent/Core/ApplicationPool/Pool.h +10 -2
  48. data/src/agent/Core/Config.h +9 -4
  49. data/src/agent/Core/Controller/AppResponse.h +0 -1
  50. data/src/agent/Core/Controller/CheckoutSession.cpp +24 -13
  51. data/src/agent/Core/Controller/Config.h +12 -4
  52. data/src/agent/Core/Controller/InitRequest.cpp +4 -0
  53. data/src/agent/Core/Controller/InternalUtils.cpp +32 -6
  54. data/src/agent/Core/Controller/SendRequest.cpp +2 -2
  55. data/src/agent/Core/Controller.h +4 -1
  56. data/src/agent/Core/CoreMain.cpp +1 -0
  57. data/src/agent/Core/OptionParser.h +4 -0
  58. data/src/agent/Core/ResponseCache.h +3 -2
  59. data/src/agent/Core/SecurityUpdateChecker.h +5 -5
  60. data/src/agent/Core/SpawningKit/Config/AutoGeneratedCode.h +20 -0
  61. data/src/agent/Core/SpawningKit/Config.h +24 -0
  62. data/src/agent/Core/SpawningKit/Handshake/BackgroundIOCapturer.h +1 -1
  63. data/src/agent/Core/SpawningKit/Handshake/Perform.h +5 -5
  64. data/src/agent/Core/SpawningKit/Handshake/Prepare.h +4 -0
  65. data/src/agent/Core/SpawningKit/PipeWatcher.h +19 -4
  66. data/src/agent/Core/SpawningKit/SmartSpawner.h +1 -1
  67. data/src/agent/Core/SpawningKit/Spawner.h +3 -0
  68. data/src/agent/Core/SpawningKit/UserSwitchingRules.h +2 -2
  69. data/src/agent/Core/TelemetryCollector.h +1 -1
  70. data/src/agent/ExecHelper/ExecHelperMain.cpp +10 -12
  71. data/src/agent/FileReadHelper/FileReadHelperMain.cpp +7 -10
  72. data/src/agent/MainFunctions.h +38 -0
  73. data/src/agent/Shared/ApiServerUtils.h +4 -3
  74. data/src/agent/Shared/ApplicationPoolApiKey.h +2 -0
  75. data/src/agent/Shared/Fundamentals/Initialization.cpp +1 -1
  76. data/src/agent/SpawnEnvSetupper/SpawnEnvSetupperMain.cpp +28 -3
  77. data/src/agent/SystemMetrics/SystemMetricsMain.cpp +1 -0
  78. data/src/agent/TempDirToucher/TempDirToucherMain.cpp +6 -4
  79. data/src/agent/Watchdog/ApiServer.h +1 -1
  80. data/src/agent/Watchdog/Config.h +3 -1
  81. data/src/agent/Watchdog/InstanceDirToucher.cpp +1 -1
  82. data/src/agent/Watchdog/WatchdogMain.cpp +10 -13
  83. data/src/apache2_module/Config.cpp +1 -1
  84. data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp +42 -27
  85. data/src/apache2_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.cpp +15 -0
  86. data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp +44 -1
  87. data/src/apache2_module/DirConfig/AutoGeneratedCreateFunction.cpp +13 -0
  88. data/src/apache2_module/DirConfig/AutoGeneratedHeaderSerialization.cpp +9 -0
  89. data/src/apache2_module/DirConfig/AutoGeneratedManifestGeneration.cpp +37 -0
  90. data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp +21 -0
  91. data/src/apache2_module/DirConfig/AutoGeneratedStruct.h +53 -2
  92. data/src/apache2_module/Hooks.cpp +27 -1
  93. data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h +19 -19
  94. data/src/cxx_supportlib/BackgroundEventLoop.cpp +5 -1
  95. data/src/cxx_supportlib/ConfigKit/Common.h +1 -1
  96. data/src/cxx_supportlib/ConfigKit/Schema.h +1 -1
  97. data/src/cxx_supportlib/ConfigKit/Translator.h +1 -1
  98. data/src/cxx_supportlib/Constants.h +4 -3
  99. data/src/cxx_supportlib/DataStructures/HashedStaticString.h +2 -0
  100. data/src/cxx_supportlib/DataStructures/StringKeyTable.h +1 -1
  101. data/src/cxx_supportlib/FileDescriptor.h +8 -0
  102. data/src/cxx_supportlib/FileTools/FileManip.cpp +10 -1
  103. data/src/cxx_supportlib/FileTools/FileManip.h +16 -0
  104. data/src/cxx_supportlib/FileTools/PathManip.cpp +10 -1
  105. data/src/cxx_supportlib/Hooks.h +1 -0
  106. data/src/cxx_supportlib/IOTools/BufferedIO.h +1 -1
  107. data/src/cxx_supportlib/IOTools/IOUtils.cpp +6 -10
  108. data/src/cxx_supportlib/IOTools/MessageIO.h +1 -1
  109. data/src/cxx_supportlib/Integrations/LibevJsonUtils.h +3 -3
  110. data/src/cxx_supportlib/JsonTools/CBindings.cpp +0 -2
  111. data/src/cxx_supportlib/JsonTools/JsonUtils.h +4 -4
  112. data/src/cxx_supportlib/LoggingKit/Context.h +16 -21
  113. data/src/cxx_supportlib/LoggingKit/Forward.h +0 -2
  114. data/src/cxx_supportlib/LoggingKit/Implementation.cpp +36 -72
  115. data/src/cxx_supportlib/MemoryKit/mbuf.cpp +12 -4
  116. data/src/cxx_supportlib/MemoryKit/mbuf.h +1 -1
  117. data/src/cxx_supportlib/ProcessManagement/Utils.cpp +1 -1
  118. data/src/cxx_supportlib/ResourceLocator.h +1 -1
  119. data/src/cxx_supportlib/SafeLibev.h +3 -1
  120. data/src/cxx_supportlib/SecurityKit/Crypto.cpp +3 -94
  121. data/src/cxx_supportlib/SecurityKit/Crypto.h +0 -8
  122. data/src/cxx_supportlib/ServerKit/AcceptLoadBalancer.h +1 -1
  123. data/src/cxx_supportlib/ServerKit/Context.h +6 -0
  124. data/src/cxx_supportlib/ServerKit/Errors.h +3 -2
  125. data/src/cxx_supportlib/ServerKit/HttpHeaderParser.h +99 -64
  126. data/src/cxx_supportlib/ServerKit/HttpHeaderParserState.h +4 -1
  127. data/src/cxx_supportlib/ServerKit/HttpRequest.h +2 -2
  128. data/src/cxx_supportlib/ServerKit/HttpServer.h +3 -2
  129. data/src/cxx_supportlib/ServerKit/llerrors.h +84 -0
  130. data/src/cxx_supportlib/ServerKit/llhttp.c +10168 -0
  131. data/src/cxx_supportlib/ServerKit/llhttp.h +903 -0
  132. data/src/cxx_supportlib/ServerKit/llhttp_api.c +510 -0
  133. data/src/cxx_supportlib/ServerKit/llhttp_http.c +170 -0
  134. data/src/cxx_supportlib/ServerKit/llversion.h +12 -0
  135. data/src/cxx_supportlib/ServerKit/url_parser.c +574 -0
  136. data/src/cxx_supportlib/ServerKit/url_parser.h +74 -0
  137. data/src/cxx_supportlib/StaticString.h +5 -1
  138. data/src/cxx_supportlib/StrIntTools/DateParsing.h +1 -1
  139. data/src/cxx_supportlib/StrIntTools/StrIntUtils.cpp +12 -3
  140. data/src/cxx_supportlib/StrIntTools/StrIntUtils.h +5 -0
  141. data/src/cxx_supportlib/SystemTools/ProcessMetricsCollector.h +1 -1
  142. data/src/cxx_supportlib/SystemTools/SystemMetricsCollector.h +2 -2
  143. data/src/cxx_supportlib/SystemTools/UserDatabase.cpp +14 -14
  144. data/src/cxx_supportlib/SystemTools/UserDatabase.h +6 -10
  145. data/src/cxx_supportlib/Utils/AnsiColorConstants.h +11 -9
  146. data/src/cxx_supportlib/Utils/HttpConstants.h +1 -1
  147. data/src/cxx_supportlib/Utils.cpp +1 -1
  148. data/src/cxx_supportlib/WebSocketCommandReverseServer.h +9 -12
  149. data/src/cxx_supportlib/oxt/dynamic_thread_group.hpp +5 -1
  150. data/src/cxx_supportlib/oxt/implementation.cpp +1 -2
  151. data/src/cxx_supportlib/oxt/system_calls.cpp +1 -1
  152. data/src/cxx_supportlib/oxt/thread.hpp +1 -1
  153. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/compare.hpp +3 -3
  154. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/case_conv.hpp +5 -2
  155. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/classification.hpp +3 -1
  156. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/find_format_all.hpp +2 -0
  157. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/find_iterator.hpp +11 -3
  158. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/finder.hpp +15 -15
  159. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/formatter.hpp +1 -1
  160. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/trim.hpp +3 -3
  161. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/find_format.hpp +1 -2
  162. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/find_iterator.hpp +27 -1
  163. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/formatter.hpp +0 -1
  164. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/iter_find.hpp +8 -0
  165. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/predicate.hpp +4 -3
  166. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/split.hpp +12 -0
  167. data/src/cxx_supportlib/vendor-modified/boost/align/aligned_alloc.hpp +47 -0
  168. data/src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc_posix.hpp +41 -0
  169. data/src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc_sunos.hpp +34 -0
  170. data/src/cxx_supportlib/vendor-modified/boost/align/detail/is_alignment.hpp +28 -0
  171. data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_executor.hpp +338 -0
  172. data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_handler.hpp +824 -0
  173. data/src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp +353 -0
  174. data/src/cxx_supportlib/vendor-modified/boost/asio/append.hpp +67 -0
  175. data/src/cxx_supportlib/vendor-modified/boost/asio/as_tuple.hpp +128 -0
  176. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_allocator.hpp +115 -32
  177. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_cancellation_slot.hpp +223 -0
  178. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_executor.hpp +119 -33
  179. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_immediate_executor.hpp +282 -0
  180. data/src/cxx_supportlib/vendor-modified/boost/asio/associator.hpp +37 -0
  181. data/src/cxx_supportlib/vendor-modified/boost/asio/async_result.hpp +828 -107
  182. data/src/cxx_supportlib/vendor-modified/boost/asio/awaitable.hpp +144 -0
  183. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +649 -327
  184. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +205 -123
  185. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_file.hpp +826 -0
  186. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_io_object.hpp +4 -8
  187. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_random_access_file.hpp +691 -0
  188. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +655 -329
  189. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_readable_pipe.hpp +628 -0
  190. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +376 -171
  191. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +413 -114
  192. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +325 -68
  193. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +427 -248
  194. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +1239 -517
  195. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_iostream.hpp +22 -121
  196. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_streambuf.hpp +16 -81
  197. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_file.hpp +746 -0
  198. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +494 -252
  199. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf.hpp +13 -15
  200. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf_fwd.hpp +3 -3
  201. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +250 -131
  202. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_writable_pipe.hpp +624 -0
  203. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_allocator.hpp +532 -0
  204. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_cancellation_slot.hpp +546 -0
  205. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_executor.hpp +157 -186
  206. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_immediate_executor.hpp +551 -0
  207. data/src/cxx_supportlib/vendor-modified/boost/asio/buffer.hpp +918 -336
  208. data/src/cxx_supportlib/vendor-modified/boost/asio/buffer_registration.hpp +320 -0
  209. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream.hpp +55 -39
  210. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream_fwd.hpp +1 -1
  211. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream.hpp +61 -47
  212. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream_fwd.hpp +1 -1
  213. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream.hpp +55 -39
  214. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream_fwd.hpp +1 -1
  215. data/src/cxx_supportlib/vendor-modified/boost/asio/buffers_iterator.hpp +4 -4
  216. data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_signal.hpp +247 -0
  217. data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_state.hpp +237 -0
  218. data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_type.hpp +159 -0
  219. data/src/cxx_supportlib/vendor-modified/boost/asio/co_spawn.hpp +525 -0
  220. data/src/cxx_supportlib/vendor-modified/boost/asio/completion_condition.hpp +1 -1
  221. data/src/cxx_supportlib/vendor-modified/boost/asio/compose.hpp +321 -0
  222. data/src/cxx_supportlib/vendor-modified/boost/asio/connect.hpp +270 -150
  223. data/src/cxx_supportlib/vendor-modified/boost/asio/connect_pipe.hpp +85 -0
  224. data/src/cxx_supportlib/vendor-modified/boost/asio/consign.hpp +77 -0
  225. data/src/cxx_supportlib/vendor-modified/boost/asio/coroutine.hpp +4 -3
  226. data/src/cxx_supportlib/vendor-modified/boost/asio/deadline_timer.hpp +1 -1
  227. data/src/cxx_supportlib/vendor-modified/boost/asio/defer.hpp +154 -43
  228. data/src/cxx_supportlib/vendor-modified/boost/asio/deferred.hpp +717 -0
  229. data/src/cxx_supportlib/vendor-modified/boost/asio/detached.hpp +107 -0
  230. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array.hpp +2 -10
  231. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array_fwd.hpp +2 -4
  232. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/assert.hpp +1 -1
  233. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/atomic_count.hpp +24 -10
  234. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_cancellation_state.hpp +166 -0
  235. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_completion_cond.hpp +4 -3
  236. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +265 -370
  237. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/blocking_executor_op.hpp +109 -0
  238. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_resize_guard.hpp +1 -1
  239. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_sequence_adapter.hpp +300 -7
  240. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffered_stream_storage.hpp +1 -1
  241. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/call_stack.hpp +1 -1
  242. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono.hpp +2 -23
  243. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono_time_traits.hpp +1 -1
  244. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_handler.hpp +12 -7
  245. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/composed_work.hpp +254 -0
  246. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/concurrency_hint.hpp +1 -1
  247. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_event.hpp +9 -1
  248. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_mutex.hpp +1 -1
  249. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +667 -702
  250. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/consuming_buffers.hpp +40 -11
  251. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstddef.hpp +1 -5
  252. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstdint.hpp +3 -23
  253. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/date_time_fwd.hpp +1 -1
  254. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/deadline_timer_service.hpp +69 -12
  255. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dependent_type.hpp +1 -1
  256. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_ops.hpp +65 -7
  257. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_read_op.hpp +76 -16
  258. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_write_op.hpp +75 -16
  259. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dev_poll_reactor.hpp +36 -7
  260. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/epoll_reactor.hpp +36 -7
  261. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/event.hpp +3 -5
  262. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/eventfd_select_interrupter.hpp +2 -2
  263. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/exception.hpp +31 -0
  264. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_function.hpp +154 -0
  265. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_op.hpp +6 -6
  266. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fd_set_adapter.hpp +1 -1
  267. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fenced_block.hpp +3 -43
  268. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/functional.hpp +5 -10
  269. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/future.hpp +9 -10
  270. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/global.hpp +3 -5
  271. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +66 -76
  272. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_cont_helpers.hpp +1 -1
  273. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_tracking.hpp +27 -1
  274. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_type_requirements.hpp +24 -27
  275. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_work.hpp +452 -36
  276. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/hash_map.hpp +1 -1
  277. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/buffer_sequence_adapter.ipp +1 -1
  278. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +601 -84
  279. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.hpp +21 -1
  280. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.ipp +27 -4
  281. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.hpp +21 -1
  282. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.ipp +47 -8
  283. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/eventfd_select_interrupter.ipp +20 -14
  284. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +47 -7
  285. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_descriptor_service.ipp +207 -0
  286. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_file_service.ipp +142 -0
  287. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.hpp +114 -0
  288. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.ipp +916 -0
  289. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_socket_service_base.ipp +251 -0
  290. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.hpp +21 -1
  291. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.ipp +49 -7
  292. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/null_event.ipp +1 -1
  293. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/pipe_select_interrupter.ipp +11 -6
  294. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_event.ipp +8 -4
  295. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_mutex.ipp +1 -1
  296. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_serial_port_service.ipp +170 -0
  297. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_thread.ipp +1 -1
  298. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_tss_ptr.ipp +1 -1
  299. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_descriptor_service.ipp +20 -12
  300. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_socket_service_base.ipp +32 -22
  301. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/resolver_service_base.ipp +39 -35
  302. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/scheduler.ipp +110 -6
  303. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.hpp +25 -1
  304. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.ipp +74 -7
  305. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.hpp +2 -3
  306. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.ipp +1 -1
  307. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/signal_set_service.ipp +185 -28
  308. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_ops.ipp +817 -353
  309. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_select_interrupter.ipp +18 -9
  310. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.hpp +209 -42
  311. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.ipp +25 -1
  312. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.hpp +8 -40
  313. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.ipp +34 -9
  314. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/thread_context.ipp +37 -0
  315. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/throw_error.ipp +10 -6
  316. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_ptime.ipp +17 -11
  317. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_set.ipp +1 -1
  318. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiate_defer.hpp +209 -0
  319. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiate_dispatch.hpp +195 -0
  320. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiate_post.hpp +209 -0
  321. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_control.hpp +1 -1
  322. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_object_impl.hpp +179 -0
  323. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_at_op.hpp +197 -0
  324. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_op.hpp +192 -0
  325. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_service.hpp +689 -0
  326. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_at_op.hpp +191 -0
  327. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_op.hpp +187 -0
  328. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_file_service.hpp +263 -0
  329. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_null_buffers_op.hpp +116 -0
  330. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_operation.hpp +86 -0
  331. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_service.hpp +321 -0
  332. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_accept_op.hpp +282 -0
  333. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_connect_op.hpp +142 -0
  334. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recv_op.hpp +207 -0
  335. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvfrom_op.hpp +208 -0
  336. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvmsg_op.hpp +194 -0
  337. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_send_op.hpp +193 -0
  338. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_sendto_op.hpp +196 -0
  339. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service.hpp +631 -0
  340. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service_base.hpp +665 -0
  341. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_wait_op.hpp +114 -0
  342. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_buffer_sequence.hpp +85 -52
  343. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_executor.hpp +1 -1
  344. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/keyword_tss_ptr.hpp +1 -1
  345. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/kqueue_reactor.hpp +37 -8
  346. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/limits.hpp +1 -6
  347. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/local_free_on_block_exit.hpp +1 -1
  348. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +94 -27
  349. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/mutex.hpp +3 -5
  350. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/non_const_lvalue.hpp +45 -0
  351. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/noncopyable.hpp +1 -1
  352. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_event.hpp +7 -1
  353. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_fenced_block.hpp +1 -1
  354. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_global.hpp +1 -1
  355. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_mutex.hpp +1 -5
  356. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_reactor.hpp +19 -4
  357. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_signal_blocker.hpp +1 -1
  358. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_socket_service.hpp +63 -52
  359. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_static_mutex.hpp +1 -1
  360. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_thread.hpp +1 -1
  361. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_tss_ptr.hpp +1 -1
  362. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/object_pool.hpp +1 -1
  363. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/op_queue.hpp +1 -1
  364. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/operation.hpp +1 -1
  365. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pipe_select_interrupter.hpp +2 -2
  366. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pop_options.hpp +30 -8
  367. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_event.hpp +15 -2
  368. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_fd_set_adapter.hpp +1 -1
  369. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_global.hpp +1 -1
  370. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_mutex.hpp +1 -1
  371. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_serial_port_service.hpp +251 -0
  372. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_signal_blocker.hpp +1 -1
  373. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_static_mutex.hpp +1 -1
  374. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_thread.hpp +1 -1
  375. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_tss_ptr.hpp +1 -1
  376. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/push_options.hpp +60 -7
  377. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_descriptor_service.hpp +233 -55
  378. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_null_buffers_op.hpp +49 -8
  379. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_accept_op.hpp +139 -33
  380. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_connect_op.hpp +59 -10
  381. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recv_op.hpp +81 -19
  382. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvfrom_op.hpp +81 -16
  383. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvmsg_op.hpp +65 -13
  384. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_send_op.hpp +87 -20
  385. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_sendto_op.hpp +81 -17
  386. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service.hpp +198 -91
  387. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service_base.hpp +314 -75
  388. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_wait_op.hpp +49 -8
  389. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor.hpp +29 -5
  390. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op.hpp +8 -2
  391. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op_queue.hpp +45 -1
  392. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/recycling_allocator.hpp +17 -16
  393. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/regex_fwd.hpp +4 -4
  394. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_endpoint_op.hpp +34 -16
  395. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_op.hpp +1 -1
  396. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_query_op.hpp +34 -18
  397. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service.hpp +24 -22
  398. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service_base.hpp +37 -19
  399. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler.hpp +36 -8
  400. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_operation.hpp +1 -1
  401. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_task.hpp +51 -0
  402. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_thread_info.hpp +1 -1
  403. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_lock.hpp +1 -1
  404. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_ptr.hpp +1 -1
  405. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_interrupter.hpp +1 -1
  406. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_reactor.hpp +59 -6
  407. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/service_registry.hpp +2 -3
  408. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_blocker.hpp +1 -1
  409. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_handler.hpp +11 -7
  410. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_init.hpp +1 -1
  411. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_op.hpp +5 -1
  412. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_set_service.hpp +90 -15
  413. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_holder.hpp +1 -1
  414. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_ops.hpp +71 -33
  415. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_option.hpp +1 -1
  416. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_select_interrupter.hpp +2 -2
  417. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_types.hpp +12 -1
  418. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/source_location.hpp +47 -0
  419. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/static_mutex.hpp +3 -5
  420. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_event.hpp +13 -6
  421. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_fenced_block.hpp +1 -6
  422. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_global.hpp +1 -6
  423. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_mutex.hpp +1 -6
  424. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_static_mutex.hpp +1 -6
  425. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_thread.hpp +1 -6
  426. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_executor_service.hpp +36 -5
  427. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_service.hpp +8 -6
  428. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/string_view.hpp +1 -1
  429. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread.hpp +7 -9
  430. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_context.hpp +10 -1
  431. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_group.hpp +11 -1
  432. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_info_base.hpp +154 -25
  433. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_error.hpp +18 -9
  434. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_exception.hpp +7 -3
  435. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue.hpp +31 -2
  436. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_base.hpp +1 -1
  437. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_ptime.hpp +6 -2
  438. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_set.hpp +1 -1
  439. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler.hpp +3 -1
  440. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler_fwd.hpp +3 -1
  441. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/tss_ptr.hpp +1 -1
  442. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/type_traits.hpp +132 -40
  443. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/utility.hpp +85 -0
  444. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_handler.hpp +13 -8
  445. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_op.hpp +6 -2
  446. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/winsock_init.hpp +2 -2
  447. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/work_dispatcher.hpp +85 -14
  448. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wrapped_handler.hpp +7 -81
  449. data/src/cxx_supportlib/vendor-modified/boost/asio/dispatch.hpp +136 -47
  450. data/src/cxx_supportlib/vendor-modified/boost/asio/error.hpp +30 -1
  451. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp +280 -0
  452. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/any_executor.hpp +1935 -0
  453. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bad_executor.hpp +48 -0
  454. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking.hpp +1362 -0
  455. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking_adaptation.hpp +1082 -0
  456. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context.hpp +193 -0
  457. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context_as.hpp +192 -0
  458. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp +118 -0
  459. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/bad_executor.ipp +42 -0
  460. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/invocable_archetype.hpp +45 -0
  461. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/mapping.hpp +1004 -0
  462. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/occupancy.hpp +186 -0
  463. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/outstanding_work.hpp +755 -0
  464. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/prefer_only.hpp +330 -0
  465. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/relationship.hpp +753 -0
  466. data/src/cxx_supportlib/vendor-modified/boost/asio/execution.hpp +33 -0
  467. data/src/cxx_supportlib/vendor-modified/boost/asio/execution_context.hpp +3 -26
  468. data/src/cxx_supportlib/vendor-modified/boost/asio/executor.hpp +66 -44
  469. data/src/cxx_supportlib/vendor-modified/boost/asio/executor_work_guard.hpp +239 -47
  470. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/append.hpp +38 -0
  471. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_single.hpp +134 -0
  472. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_tuple.hpp +38 -0
  473. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/awaitable_operators.hpp +538 -0
  474. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_channel.hpp +515 -0
  475. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_concurrent_channel.hpp +515 -0
  476. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/cancellation_condition.hpp +154 -0
  477. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel.hpp +72 -0
  478. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_error.hpp +88 -0
  479. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_traits.hpp +303 -0
  480. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_composed.hpp +147 -0
  481. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_spawn.hpp +138 -177
  482. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/concurrent_channel.hpp +72 -0
  483. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro.hpp +295 -0
  484. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro_traits.hpp +230 -0
  485. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/deferred.hpp +38 -0
  486. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_handler.hpp +79 -0
  487. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_message.hpp +131 -0
  488. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_operation.hpp +363 -0
  489. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_payload.hpp +224 -0
  490. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_receive_op.hpp +129 -0
  491. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_functions.hpp +194 -0
  492. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_op.hpp +150 -0
  493. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_service.hpp +679 -0
  494. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_completion_handler.hpp +171 -0
  495. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_promise_allocator.hpp +143 -0
  496. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/has_signature.hpp +56 -0
  497. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/impl/channel_service.hpp +623 -0
  498. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/partial_promise.hpp +201 -0
  499. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_single.hpp +178 -0
  500. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/channel_error.ipp +63 -0
  501. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/co_composed.hpp +1176 -0
  502. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/coro.hpp +1224 -0
  503. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/parallel_group.hpp +790 -0
  504. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/promise.hpp +257 -0
  505. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_coro.hpp +216 -0
  506. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_promise.hpp +68 -0
  507. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/parallel_group.hpp +459 -0
  508. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/prepend.hpp +38 -0
  509. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/promise.hpp +226 -0
  510. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_coro.hpp +191 -0
  511. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_promise.hpp +113 -0
  512. data/src/cxx_supportlib/vendor-modified/boost/asio/file_base.hpp +168 -0
  513. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/basic_endpoint.hpp +2 -6
  514. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/datagram_protocol.hpp +4 -4
  515. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/endpoint.hpp +1 -1
  516. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/impl/endpoint.ipp +1 -1
  517. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/raw_protocol.hpp +4 -4
  518. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/seq_packet_protocol.hpp +4 -4
  519. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/stream_protocol.hpp +4 -4
  520. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_continuation_hook.hpp +1 -1
  521. data/src/cxx_supportlib/vendor-modified/boost/asio/high_resolution_timer.hpp +1 -6
  522. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_completion_executor.ipp +128 -0
  523. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_io_executor.ipp +136 -0
  524. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/append.hpp +164 -0
  525. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/as_tuple.hpp +247 -0
  526. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/awaitable.hpp +1198 -0
  527. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +160 -185
  528. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +154 -181
  529. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/cancellation_signal.ipp +98 -0
  530. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/co_spawn.hpp +451 -0
  531. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +328 -379
  532. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.hpp +75 -0
  533. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.ipp +151 -0
  534. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/consign.hpp +139 -0
  535. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/deferred.hpp +149 -0
  536. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/detached.hpp +79 -0
  537. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/error.ipp +4 -4
  538. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.hpp +7 -37
  539. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.ipp +1 -1
  540. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.hpp +72 -141
  541. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.ipp +8 -3
  542. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.hpp +220 -132
  543. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.ipp +5 -3
  544. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/multiple_exceptions.ipp +47 -0
  545. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/prepend.hpp +165 -0
  546. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +663 -325
  547. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +248 -260
  548. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +2114 -675
  549. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/redirect_error.hpp +252 -0
  550. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.hpp +1 -1
  551. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.ipp +1 -1
  552. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +1183 -318
  553. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +15 -3
  554. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.hpp +2 -2
  555. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.ipp +26 -7
  556. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_executor.hpp +115 -21
  557. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.hpp +198 -48
  558. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.ipp +74 -8
  559. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_awaitable.hpp +303 -0
  560. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +186 -416
  561. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +586 -321
  562. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +221 -242
  563. data/src/cxx_supportlib/vendor-modified/boost/asio/io_context.hpp +699 -70
  564. data/src/cxx_supportlib/vendor-modified/boost/asio/io_context_strand.hpp +82 -70
  565. data/src/cxx_supportlib/vendor-modified/boost/asio/io_service.hpp +1 -1
  566. data/src/cxx_supportlib/vendor-modified/boost/asio/io_service_strand.hpp +1 -1
  567. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address.hpp +52 -31
  568. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4.hpp +124 -32
  569. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_iterator.hpp +13 -19
  570. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_range.hpp +16 -22
  571. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6.hpp +114 -43
  572. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_iterator.hpp +13 -18
  573. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_range.hpp +15 -20
  574. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/bad_address_cast.hpp +13 -3
  575. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_endpoint.hpp +46 -27
  576. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver.hpp +331 -239
  577. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_entry.hpp +1 -1
  578. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_iterator.hpp +4 -8
  579. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_query.hpp +17 -1
  580. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_results.hpp +9 -13
  581. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/endpoint.hpp +21 -19
  582. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/impl/endpoint.ipp +10 -14
  583. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/socket_option.hpp +1 -1
  584. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/host_name.hpp +1 -1
  585. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/icmp.hpp +7 -7
  586. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.hpp +1 -1
  587. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.ipp +23 -22
  588. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.hpp +1 -1
  589. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.ipp +11 -15
  590. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.hpp +1 -1
  591. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.ipp +27 -35
  592. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/basic_endpoint.hpp +1 -1
  593. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/host_name.ipp +1 -1
  594. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.hpp +1 -1
  595. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.ipp +6 -4
  596. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.hpp +1 -1
  597. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.ipp +6 -4
  598. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/multicast.hpp +8 -8
  599. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v4.hpp +17 -21
  600. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v6.hpp +14 -18
  601. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_base.hpp +1 -1
  602. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_query_base.hpp +1 -1
  603. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/tcp.hpp +9 -9
  604. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/udp.hpp +7 -7
  605. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/unicast.hpp +3 -3
  606. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/v6_only.hpp +4 -4
  607. data/src/cxx_supportlib/vendor-modified/boost/asio/is_applicable_property.hpp +63 -0
  608. data/src/cxx_supportlib/vendor-modified/boost/asio/is_contiguous_iterator.hpp +47 -0
  609. data/src/cxx_supportlib/vendor-modified/boost/asio/is_executor.hpp +1 -1
  610. data/src/cxx_supportlib/vendor-modified/boost/asio/is_read_buffered.hpp +1 -1
  611. data/src/cxx_supportlib/vendor-modified/boost/asio/is_write_buffered.hpp +1 -1
  612. data/src/cxx_supportlib/vendor-modified/boost/asio/local/basic_endpoint.hpp +10 -6
  613. data/src/cxx_supportlib/vendor-modified/boost/asio/local/connect_pair.hpp +14 -19
  614. data/src/cxx_supportlib/vendor-modified/boost/asio/local/datagram_protocol.hpp +4 -4
  615. data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/endpoint.hpp +7 -1
  616. data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/impl/endpoint.ipp +10 -8
  617. data/src/cxx_supportlib/vendor-modified/boost/asio/local/seq_packet_protocol.hpp +86 -0
  618. data/src/cxx_supportlib/vendor-modified/boost/asio/local/stream_protocol.hpp +4 -4
  619. data/src/cxx_supportlib/vendor-modified/boost/asio/multiple_exceptions.hpp +54 -0
  620. data/src/cxx_supportlib/vendor-modified/boost/asio/packaged_task.hpp +1 -61
  621. data/src/cxx_supportlib/vendor-modified/boost/asio/placeholders.hpp +29 -105
  622. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +273 -82
  623. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +283 -86
  624. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor.hpp +5 -612
  625. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor_base.hpp +2 -2
  626. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/stream_descriptor.hpp +3 -326
  627. data/src/cxx_supportlib/vendor-modified/boost/asio/post.hpp +149 -43
  628. data/src/cxx_supportlib/vendor-modified/boost/asio/prefer.hpp +581 -0
  629. data/src/cxx_supportlib/vendor-modified/boost/asio/prepend.hpp +68 -0
  630. data/src/cxx_supportlib/vendor-modified/boost/asio/query.hpp +315 -0
  631. data/src/cxx_supportlib/vendor-modified/boost/asio/random_access_file.hpp +37 -0
  632. data/src/cxx_supportlib/vendor-modified/boost/asio/read.hpp +672 -171
  633. data/src/cxx_supportlib/vendor-modified/boost/asio/read_at.hpp +173 -66
  634. data/src/cxx_supportlib/vendor-modified/boost/asio/read_until.hpp +1767 -469
  635. data/src/cxx_supportlib/vendor-modified/boost/asio/readable_pipe.hpp +37 -0
  636. data/src/cxx_supportlib/vendor-modified/boost/asio/recycling_allocator.hpp +140 -0
  637. data/src/cxx_supportlib/vendor-modified/boost/asio/redirect_error.hpp +66 -0
  638. data/src/cxx_supportlib/vendor-modified/boost/asio/registered_buffer.hpp +346 -0
  639. data/src/cxx_supportlib/vendor-modified/boost/asio/require.hpp +437 -0
  640. data/src/cxx_supportlib/vendor-modified/boost/asio/require_concept.hpp +347 -0
  641. data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port.hpp +3 -736
  642. data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port_base.hpp +1 -1
  643. data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set.hpp +3 -422
  644. data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set_base.hpp +173 -0
  645. data/src/cxx_supportlib/vendor-modified/boost/asio/socket_base.hpp +26 -26
  646. data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +641 -105
  647. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context.hpp +7 -3
  648. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context_base.hpp +24 -24
  649. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/buffered_handshake_op.hpp +7 -2
  650. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/engine.hpp +10 -1
  651. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/handshake_op.hpp +7 -2
  652. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/engine.ipp +65 -10
  653. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/openssl_init.ipp +7 -3
  654. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +75 -71
  655. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_init.hpp +1 -1
  656. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_types.hpp +5 -1
  657. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/password_callback.hpp +1 -1
  658. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/read_op.hpp +7 -2
  659. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/shutdown_op.hpp +17 -2
  660. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/stream_core.hpp +89 -6
  661. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/verify_callback.hpp +2 -2
  662. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/write_op.hpp +12 -3
  663. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/error.hpp +21 -7
  664. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/host_name_verification.hpp +92 -0
  665. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.hpp +1 -1
  666. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.ipp +188 -73
  667. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/error.ipp +29 -5
  668. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/host_name_verification.ipp +75 -0
  669. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/rfc2818_verification.ipp +5 -1
  670. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/src.hpp +2 -1
  671. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/rfc2818_verification.hpp +7 -3
  672. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream.hpp +421 -141
  673. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream_base.hpp +1 -1
  674. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_context.hpp +1 -1
  675. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_mode.hpp +1 -1
  676. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl.hpp +2 -1
  677. data/src/cxx_supportlib/vendor-modified/boost/asio/static_thread_pool.hpp +33 -0
  678. data/src/cxx_supportlib/vendor-modified/boost/asio/steady_timer.hpp +1 -6
  679. data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +311 -40
  680. data/src/cxx_supportlib/vendor-modified/boost/asio/stream_file.hpp +37 -0
  681. data/src/cxx_supportlib/vendor-modified/boost/asio/streambuf.hpp +1 -1
  682. data/src/cxx_supportlib/vendor-modified/boost/asio/system_context.hpp +18 -6
  683. data/src/cxx_supportlib/vendor-modified/boost/asio/system_executor.hpp +570 -28
  684. data/src/cxx_supportlib/vendor-modified/boost/asio/system_timer.hpp +1 -6
  685. data/src/cxx_supportlib/vendor-modified/boost/asio/this_coro.hpp +269 -0
  686. data/src/cxx_supportlib/vendor-modified/boost/asio/thread_pool.hpp +773 -42
  687. data/src/cxx_supportlib/vendor-modified/boost/asio/time_traits.hpp +1 -1
  688. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/equality_comparable.hpp +102 -0
  689. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_member.hpp +106 -0
  690. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_free.hpp +106 -0
  691. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_member.hpp +106 -0
  692. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_free.hpp +106 -0
  693. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_member.hpp +106 -0
  694. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_static_constexpr_member.hpp +103 -0
  695. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_free.hpp +106 -0
  696. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_member.hpp +106 -0
  697. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_free.hpp +106 -0
  698. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_member.hpp +106 -0
  699. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_query.hpp +104 -0
  700. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require.hpp +117 -0
  701. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require_concept.hpp +118 -0
  702. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/buffer.hpp +1 -1
  703. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/executor.hpp +2 -2
  704. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/internet.hpp +1 -1
  705. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/io_context.hpp +1 -1
  706. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/net.hpp +1 -1
  707. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/netfwd.hpp +82 -43
  708. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/socket.hpp +1 -1
  709. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/timer.hpp +1 -1
  710. data/src/cxx_supportlib/vendor-modified/boost/asio/unyield.hpp +1 -1
  711. data/src/cxx_supportlib/vendor-modified/boost/asio/use_awaitable.hpp +163 -0
  712. data/src/cxx_supportlib/vendor-modified/boost/asio/use_future.hpp +17 -18
  713. data/src/cxx_supportlib/vendor-modified/boost/asio/uses_executor.hpp +2 -6
  714. data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +2 -2
  715. data/src/cxx_supportlib/vendor-modified/boost/asio/wait_traits.hpp +1 -1
  716. data/src/cxx_supportlib/vendor-modified/boost/asio/writable_pipe.hpp +37 -0
  717. data/src/cxx_supportlib/vendor-modified/boost/asio/write.hpp +656 -170
  718. data/src/cxx_supportlib/vendor-modified/boost/asio/write_at.hpp +174 -64
  719. data/src/cxx_supportlib/vendor-modified/boost/asio/yield.hpp +1 -1
  720. data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +66 -28
  721. data/src/cxx_supportlib/vendor-modified/boost/assert/source_location.hpp +194 -0
  722. data/src/cxx_supportlib/vendor-modified/boost/atomic/atomic.hpp +170 -11
  723. data/src/cxx_supportlib/vendor-modified/boost/atomic/atomic_flag.hpp +12 -3
  724. data/src/cxx_supportlib/vendor-modified/boost/atomic/atomic_ref.hpp +97 -0
  725. data/src/cxx_supportlib/vendor-modified/boost/atomic/capabilities.hpp +2 -191
  726. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/addressof.hpp +8 -1
  727. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/aligned_variable.hpp +57 -0
  728. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/atomic_flag_impl.hpp +129 -0
  729. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/atomic_impl.hpp +1265 -0
  730. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/atomic_ref_impl.hpp +1228 -0
  731. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/bitwise_cast.hpp +102 -12
  732. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/bitwise_fp_cast.hpp +43 -11
  733. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/capabilities.hpp +217 -0
  734. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_gcc_aarch32.hpp +53 -0
  735. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_gcc_aarch64.hpp +65 -0
  736. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_gcc_alpha.hpp +34 -0
  737. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_gcc_arm.hpp +103 -0
  738. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_gcc_ppc.hpp +55 -0
  739. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_gcc_sparc.hpp +34 -0
  740. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_gcc_x86.hpp +74 -0
  741. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_arm.hpp +34 -0
  742. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp +61 -0
  743. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_atomic.hpp +100 -75
  744. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp +0 -7
  745. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/cas_based_exchange.hpp +50 -0
  746. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/classify.hpp +90 -0
  747. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/config.hpp +57 -64
  748. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_operations.hpp +50 -0
  749. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_operations_fwd.hpp +38 -0
  750. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_aarch32.hpp +1121 -0
  751. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_aarch64.hpp +1909 -0
  752. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_alpha.hpp +867 -0
  753. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_arm.hpp +1417 -0
  754. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_ppc.hpp +1218 -0
  755. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_sparc.hpp +215 -0
  756. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_x86.hpp +1110 -0
  757. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_msvc_arm.hpp +828 -0
  758. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_msvc_x86.hpp +903 -0
  759. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_operations.hpp +49 -0
  760. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_operations_emulated.hpp +194 -0
  761. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_operations_emulated_fwd.hpp +38 -0
  762. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_operations_fwd.hpp +38 -0
  763. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_ops_cas_based.hpp +94 -0
  764. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_ops_gcc_atomic.hpp +306 -0
  765. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_ops_gcc_sync.hpp +263 -0
  766. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_ops_linux_arm.hpp +169 -0
  767. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extending_cas_based_arithmetic.hpp +72 -0
  768. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_fp_operations_fwd.hpp +4 -1
  769. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_fp_ops_emulated.hpp +22 -12
  770. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_fp_ops_generic.hpp +13 -10
  771. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_operations_fwd.hpp +4 -1
  772. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_emulated.hpp +59 -40
  773. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_aarch32.hpp +1060 -0
  774. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_aarch64.hpp +1330 -0
  775. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_arm.hpp +363 -355
  776. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_ppc.hpp +167 -163
  777. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_x86.hpp +232 -102
  778. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_generic.hpp +9 -17
  779. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_msvc_arm.hpp +6 -4
  780. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_msvc_x86.hpp +119 -92
  781. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_operations.hpp +41 -0
  782. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_gcc_aarch32.hpp +60 -0
  783. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_gcc_aarch64.hpp +58 -0
  784. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_gcc_alpha.hpp +53 -0
  785. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_gcc_arm.hpp +90 -0
  786. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_gcc_ppc.hpp +68 -0
  787. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_gcc_sparc.hpp +70 -0
  788. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_gcc_x86.hpp +69 -0
  789. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_msvc_arm.hpp +66 -0
  790. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_arch_ops_msvc_x86.hpp +66 -0
  791. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_operations.hpp +41 -0
  792. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_operations_emulated.hpp +50 -0
  793. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_ops_gcc_atomic.hpp +75 -0
  794. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_ops_gcc_sync.hpp +53 -0
  795. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_ops_linux_arm.hpp +64 -0
  796. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/float_sizes.hpp +122 -35
  797. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/footer.hpp +24 -0
  798. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fp_operations_fwd.hpp +4 -1
  799. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fp_ops_emulated.hpp +13 -8
  800. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fp_ops_generic.hpp +6 -3
  801. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/futex.hpp +154 -0
  802. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/gcc_arm_asm_common.hpp +79 -0
  803. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/gcc_atomic_memory_order_utils.hpp +66 -0
  804. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/gcc_ppc_asm_common.hpp +33 -0
  805. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/header.hpp +72 -0
  806. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/int_sizes.hpp +25 -1
  807. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/integral_conversions.hpp +108 -0
  808. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/interlocked.hpp +35 -11
  809. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/intptr.hpp +46 -0
  810. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/lock_pool.hpp +151 -0
  811. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/memory_order_utils.hpp +47 -0
  812. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/once_flag.hpp +43 -0
  813. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_aarch32_common.hpp +53 -0
  814. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_aarch64_common.hpp +53 -0
  815. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_arm_common.hpp +8 -79
  816. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_ppc_common.hpp +4 -1
  817. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_msvc_common.hpp +7 -2
  818. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/pause.hpp +30 -5
  819. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/platform.hpp +80 -34
  820. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/storage_traits.hpp +187 -0
  821. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/alignment_of.hpp +51 -0
  822. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/has_unique_object_representations.hpp +143 -0
  823. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_enum.hpp +42 -0
  824. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_floating_point.hpp +3 -2
  825. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_nothrow_default_constructible.hpp +46 -0
  826. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_trivially_copyable.hpp +45 -0
  827. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/remove_cv.hpp +42 -0
  828. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_capabilities.hpp +363 -0
  829. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_caps_darwin_ulock.hpp +58 -0
  830. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_caps_dragonfly_umtx.hpp +30 -0
  831. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_caps_freebsd_umtx.hpp +40 -0
  832. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_caps_futex.hpp +31 -0
  833. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_on_address.hpp +64 -0
  834. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_operations.hpp +28 -0
  835. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_operations_fwd.hpp +43 -0
  836. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_darwin_ulock.hpp +158 -0
  837. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_dragonfly_umtx.hpp +75 -0
  838. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_emulated.hpp +96 -0
  839. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_freebsd_umtx.hpp +119 -0
  840. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_futex.hpp +111 -0
  841. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_generic.hpp +143 -0
  842. data/src/cxx_supportlib/vendor-modified/boost/atomic/fences.hpp +7 -18
  843. data/src/cxx_supportlib/vendor-modified/boost/atomic/ipc_atomic.hpp +90 -0
  844. data/src/cxx_supportlib/vendor-modified/boost/atomic/ipc_atomic_flag.hpp +40 -0
  845. data/src/cxx_supportlib/vendor-modified/boost/atomic/ipc_atomic_ref.hpp +97 -0
  846. data/src/cxx_supportlib/vendor-modified/boost/atomic.hpp +9 -0
  847. data/src/cxx_supportlib/vendor-modified/boost/bind/apply.hpp +4 -49
  848. data/src/cxx_supportlib/vendor-modified/boost/bind/bind.hpp +237 -1767
  849. data/src/cxx_supportlib/vendor-modified/boost/bind/detail/bind_cc.hpp +117 -0
  850. data/src/cxx_supportlib/vendor-modified/boost/bind/detail/bind_mf2_cc.hpp +210 -0
  851. data/src/cxx_supportlib/vendor-modified/boost/bind/detail/bind_mf_cc.hpp +405 -0
  852. data/src/cxx_supportlib/vendor-modified/boost/bind/detail/integer_sequence.hpp +111 -0
  853. data/src/cxx_supportlib/vendor-modified/boost/bind/detail/result_traits.hpp +165 -0
  854. data/src/cxx_supportlib/vendor-modified/boost/bind/detail/tuple_for_each.hpp +64 -0
  855. data/src/cxx_supportlib/vendor-modified/boost/bind/mem_fn.hpp +143 -279
  856. data/src/cxx_supportlib/vendor-modified/boost/bind/placeholders.hpp +13 -14
  857. data/src/cxx_supportlib/vendor-modified/boost/bind/protect.hpp +24 -259
  858. data/src/cxx_supportlib/vendor-modified/boost/bind/std_placeholders.hpp +33 -0
  859. data/src/cxx_supportlib/vendor-modified/boost/cerrno.hpp +4 -320
  860. data/src/cxx_supportlib/vendor-modified/boost/chrono/config.hpp +2 -0
  861. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/mac/chrono.hpp +4 -4
  862. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/posix/chrono.hpp +26 -6
  863. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/is_evenly_divisible_by.hpp +1 -7
  864. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/requires_cxx11.hpp +23 -0
  865. data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/scan_keyword.hpp +4 -2
  866. data/src/cxx_supportlib/vendor-modified/boost/chrono/duration.hpp +10 -6
  867. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_get.hpp +1 -1
  868. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_io.hpp +4 -4
  869. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_put.hpp +5 -5
  870. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_style.hpp +1 -1
  871. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_units.hpp +3 -2
  872. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/time_point_io.hpp +3 -3
  873. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/timezone.hpp +2 -1
  874. data/src/cxx_supportlib/vendor-modified/boost/chrono/io/utility/ios_base_state_ptr.hpp +7 -7
  875. data/src/cxx_supportlib/vendor-modified/boost/chrono/io_v1/chrono_io.hpp +3 -3
  876. data/src/cxx_supportlib/vendor-modified/boost/chrono/system_clocks.hpp +3 -2
  877. data/src/cxx_supportlib/vendor-modified/boost/chrono/time_point.hpp +1 -1
  878. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/base.hpp +113 -111
  879. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/details.hpp +26 -22
  880. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/space_optimized.hpp +27 -33
  881. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp +9 -6
  882. data/src/cxx_supportlib/vendor-modified/boost/concept/assert.hpp +1 -1
  883. data/src/cxx_supportlib/vendor-modified/boost/concept/detail/general.hpp +21 -0
  884. data/src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp +7 -0
  885. data/src/cxx_supportlib/vendor-modified/boost/concept_check.hpp +1 -1
  886. data/src/cxx_supportlib/vendor-modified/boost/config/abi_prefix.hpp +1 -1
  887. data/src/cxx_supportlib/vendor-modified/boost/config/abi_suffix.hpp +1 -3
  888. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx03.hpp +211 -0
  889. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx11.hpp +212 -0
  890. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx14.hpp +47 -0
  891. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx17.hpp +65 -0
  892. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx20.hpp +59 -0
  893. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx23.hpp +41 -0
  894. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx98.hpp +23 -0
  895. data/src/cxx_supportlib/vendor-modified/boost/config/auto_link.hpp +73 -22
  896. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/borland.hpp +8 -1
  897. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang.hpp +33 -3
  898. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang_version.hpp +89 -0
  899. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/codegear.hpp +160 -10
  900. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/common_edg.hpp +37 -12
  901. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/cray.hpp +6 -0
  902. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/digitalmars.hpp +6 -0
  903. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc.hpp +35 -8
  904. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc_xml.hpp +6 -2
  905. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/hp_acc.hpp +6 -0
  906. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/intel.hpp +8 -0
  907. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/metrowerks.hpp +6 -0
  908. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/mpw.hpp +6 -0
  909. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/nvcc.hpp +6 -0
  910. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/pathscale.hpp +6 -0
  911. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/sunpro_cc.hpp +12 -0
  912. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/vacpp.hpp +6 -0
  913. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/visualc.hpp +47 -8
  914. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/xlcpp.hpp +18 -0
  915. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/xlcpp_zos.hpp +4 -0
  916. data/src/cxx_supportlib/vendor-modified/boost/config/detail/cxx_composite.hpp +218 -0
  917. data/src/cxx_supportlib/vendor-modified/boost/config/detail/select_compiler_config.hpp +1 -1
  918. data/src/cxx_supportlib/vendor-modified/boost/config/detail/select_platform_config.hpp +5 -0
  919. data/src/cxx_supportlib/vendor-modified/boost/config/detail/select_stdlib_config.hpp +13 -2
  920. data/src/cxx_supportlib/vendor-modified/boost/config/detail/suffix.hpp +291 -6
  921. data/src/cxx_supportlib/vendor-modified/boost/config/header_deprecated.hpp +1 -1
  922. data/src/cxx_supportlib/vendor-modified/boost/config/platform/bsd.hpp +5 -8
  923. data/src/cxx_supportlib/vendor-modified/boost/config/platform/vxworks.hpp +63 -74
  924. data/src/cxx_supportlib/vendor-modified/boost/config/platform/wasm.hpp +23 -0
  925. data/src/cxx_supportlib/vendor-modified/boost/config/requires_threads.hpp +1 -1
  926. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/dinkumware.hpp +74 -8
  927. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libcomo.hpp +1 -0
  928. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libcpp.hpp +38 -1
  929. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libstdcpp3.hpp +140 -7
  930. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/modena.hpp +1 -0
  931. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/msl.hpp +1 -0
  932. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/roguewave.hpp +2 -1
  933. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/sgi.hpp +1 -0
  934. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/stlport.hpp +6 -5
  935. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/vacpp.hpp +1 -0
  936. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/xlcpp_zos.hpp +1 -0
  937. data/src/cxx_supportlib/vendor-modified/boost/config/user.hpp +2 -2
  938. data/src/cxx_supportlib/vendor-modified/boost/config/workaround.hpp +26 -0
  939. data/src/cxx_supportlib/vendor-modified/boost/container/adaptive_pool.hpp +34 -21
  940. data/src/cxx_supportlib/vendor-modified/boost/container/allocator.hpp +39 -32
  941. data/src/cxx_supportlib/vendor-modified/boost/container/allocator_traits.hpp +55 -32
  942. data/src/cxx_supportlib/vendor-modified/boost/container/container_fwd.hpp +121 -29
  943. data/src/cxx_supportlib/vendor-modified/boost/container/deque.hpp +409 -305
  944. data/src/cxx_supportlib/vendor-modified/boost/container/detail/adaptive_node_pool.hpp +2 -2
  945. data/src/cxx_supportlib/vendor-modified/boost/container/detail/adaptive_node_pool_impl.hpp +14 -13
  946. data/src/cxx_supportlib/vendor-modified/boost/container/detail/addressof.hpp +2 -10
  947. data/src/cxx_supportlib/vendor-modified/boost/container/detail/advanced_insert_int.hpp +186 -139
  948. data/src/cxx_supportlib/vendor-modified/boost/container/detail/algorithm.hpp +28 -0
  949. data/src/cxx_supportlib/vendor-modified/boost/container/detail/alloc_lib.h +4 -4
  950. data/src/cxx_supportlib/vendor-modified/boost/container/detail/allocator_version_traits.hpp +14 -15
  951. data/src/cxx_supportlib/vendor-modified/boost/container/detail/block_list.hpp +2 -1
  952. data/src/cxx_supportlib/vendor-modified/boost/container/detail/block_slist.hpp +2 -1
  953. data/src/cxx_supportlib/vendor-modified/boost/container/detail/compare_functors.hpp +27 -23
  954. data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_begin.hpp +11 -3
  955. data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_end.hpp +3 -0
  956. data/src/cxx_supportlib/vendor-modified/boost/container/detail/construct_in_place.hpp +17 -15
  957. data/src/cxx_supportlib/vendor-modified/boost/container/detail/container_or_allocator_rebind.hpp +4 -0
  958. data/src/cxx_supportlib/vendor-modified/boost/container/detail/container_rebind.hpp +21 -116
  959. data/src/cxx_supportlib/vendor-modified/boost/container/detail/copy_move_algo.hpp +959 -141
  960. data/src/cxx_supportlib/vendor-modified/boost/container/detail/destroyers.hpp +181 -57
  961. data/src/cxx_supportlib/vendor-modified/boost/container/detail/dispatch_uses_allocator.hpp +67 -67
  962. data/src/cxx_supportlib/vendor-modified/boost/container/detail/flat_tree.hpp +305 -224
  963. data/src/cxx_supportlib/vendor-modified/boost/container/detail/guards_dended.hpp +198 -0
  964. data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_container.hpp +17 -0
  965. data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_contiguous_container.hpp +35 -0
  966. data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_pair.hpp +91 -0
  967. data/src/cxx_supportlib/vendor-modified/boost/container/detail/iterator.hpp +8 -0
  968. data/src/cxx_supportlib/vendor-modified/boost/container/detail/iterators.hpp +220 -186
  969. data/src/cxx_supportlib/vendor-modified/boost/container/detail/math_functions.hpp +1 -2
  970. data/src/cxx_supportlib/vendor-modified/boost/container/detail/mpl.hpp +2 -2
  971. data/src/cxx_supportlib/vendor-modified/boost/container/detail/multiallocation_chain.hpp +14 -10
  972. data/src/cxx_supportlib/vendor-modified/boost/container/detail/mutex.hpp +48 -23
  973. data/src/cxx_supportlib/vendor-modified/boost/container/detail/next_capacity.hpp +28 -9
  974. data/src/cxx_supportlib/vendor-modified/boost/container/detail/node_alloc_holder.hpp +253 -120
  975. data/src/cxx_supportlib/vendor-modified/boost/container/detail/node_pool.hpp +2 -2
  976. data/src/cxx_supportlib/vendor-modified/boost/container/detail/node_pool_impl.hpp +12 -12
  977. data/src/cxx_supportlib/vendor-modified/boost/container/detail/pair.hpp +94 -102
  978. data/src/cxx_supportlib/vendor-modified/boost/container/detail/placement_new.hpp +1 -7
  979. data/src/cxx_supportlib/vendor-modified/boost/container/detail/pool_common_alloc.hpp +1 -1
  980. data/src/cxx_supportlib/vendor-modified/boost/container/detail/pool_resource.hpp +3 -7
  981. data/src/cxx_supportlib/vendor-modified/boost/container/detail/std_fwd.hpp +3 -0
  982. data/src/cxx_supportlib/vendor-modified/boost/container/detail/thread_mutex.hpp +6 -6
  983. data/src/cxx_supportlib/vendor-modified/boost/container/detail/transform_iterator.hpp +28 -28
  984. data/src/cxx_supportlib/vendor-modified/boost/container/detail/tree.hpp +365 -424
  985. data/src/cxx_supportlib/vendor-modified/boost/container/detail/type_traits.hpp +3 -0
  986. data/src/cxx_supportlib/vendor-modified/boost/container/detail/value_functors.hpp +9 -13
  987. data/src/cxx_supportlib/vendor-modified/boost/container/detail/value_init.hpp +3 -3
  988. data/src/cxx_supportlib/vendor-modified/boost/container/detail/version_type.hpp +3 -12
  989. data/src/cxx_supportlib/vendor-modified/boost/container/detail/workaround.hpp +111 -7
  990. data/src/cxx_supportlib/vendor-modified/boost/container/devector.hpp +2961 -0
  991. data/src/cxx_supportlib/vendor-modified/boost/container/flat_map.hpp +433 -342
  992. data/src/cxx_supportlib/vendor-modified/boost/container/flat_set.hpp +142 -139
  993. data/src/cxx_supportlib/vendor-modified/boost/container/list.hpp +135 -157
  994. data/src/cxx_supportlib/vendor-modified/boost/container/map.hpp +270 -271
  995. data/src/cxx_supportlib/vendor-modified/boost/container/new_allocator.hpp +32 -12
  996. data/src/cxx_supportlib/vendor-modified/boost/container/node_allocator.hpp +15 -16
  997. data/src/cxx_supportlib/vendor-modified/boost/container/node_handle.hpp +32 -20
  998. data/src/cxx_supportlib/vendor-modified/boost/container/options.hpp +431 -5
  999. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/devector.hpp +51 -0
  1000. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/flat_set.hpp +3 -3
  1001. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/global_resource.hpp +1 -4
  1002. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/memory_resource.hpp +36 -2
  1003. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/monotonic_buffer_resource.hpp +5 -4
  1004. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/polymorphic_allocator.hpp +9 -9
  1005. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/resource_adaptor.hpp +91 -7
  1006. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/synchronized_pool_resource.hpp +4 -4
  1007. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/unsynchronized_pool_resource.hpp +4 -4
  1008. data/src/cxx_supportlib/vendor-modified/boost/container/scoped_allocator.hpp +78 -80
  1009. data/src/cxx_supportlib/vendor-modified/boost/container/set.hpp +173 -188
  1010. data/src/cxx_supportlib/vendor-modified/boost/container/slist.hpp +124 -150
  1011. data/src/cxx_supportlib/vendor-modified/boost/container/small_vector.hpp +301 -278
  1012. data/src/cxx_supportlib/vendor-modified/boost/container/stable_vector.hpp +294 -217
  1013. data/src/cxx_supportlib/vendor-modified/boost/container/static_vector.hpp +239 -156
  1014. data/src/cxx_supportlib/vendor-modified/boost/container/string.hpp +473 -392
  1015. data/src/cxx_supportlib/vendor-modified/boost/container/throw_exception.hpp +155 -41
  1016. data/src/cxx_supportlib/vendor-modified/boost/container/vector.hpp +751 -964
  1017. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_integral.hpp +146 -0
  1018. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_mix.hpp +113 -0
  1019. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_range.hpp +408 -0
  1020. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_tuple_like.hpp +62 -0
  1021. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/mulx.hpp +79 -0
  1022. data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash.hpp +395 -580
  1023. data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash_fwd.hpp +25 -24
  1024. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_contiguous_range.hpp +98 -0
  1025. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_described_class.hpp +37 -0
  1026. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_range.hpp +41 -0
  1027. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_tuple_like.hpp +36 -0
  1028. data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_unordered_range.hpp +38 -0
  1029. data/src/cxx_supportlib/vendor-modified/boost/core/addressof.hpp +2 -2
  1030. data/src/cxx_supportlib/vendor-modified/boost/core/alignof.hpp +57 -0
  1031. data/src/cxx_supportlib/vendor-modified/boost/core/alloc_construct.hpp +95 -0
  1032. data/src/cxx_supportlib/vendor-modified/boost/core/allocator_access.hpp +834 -0
  1033. data/src/cxx_supportlib/vendor-modified/boost/core/allocator_traits.hpp +112 -0
  1034. data/src/cxx_supportlib/vendor-modified/boost/core/bit.hpp +954 -0
  1035. data/src/cxx_supportlib/vendor-modified/boost/core/checked_delete.hpp +35 -7
  1036. data/src/cxx_supportlib/vendor-modified/boost/core/cmath.hpp +298 -0
  1037. data/src/cxx_supportlib/vendor-modified/boost/core/data.hpp +46 -0
  1038. data/src/cxx_supportlib/vendor-modified/boost/core/default_allocator.hpp +158 -0
  1039. data/src/cxx_supportlib/vendor-modified/boost/core/detail/is_same.hpp +39 -0
  1040. data/src/cxx_supportlib/vendor-modified/boost/core/detail/lwt_unattended.hpp +66 -0
  1041. data/src/cxx_supportlib/vendor-modified/boost/core/detail/sp_thread_pause.hpp +71 -0
  1042. data/src/cxx_supportlib/vendor-modified/boost/core/detail/sp_thread_sleep.hpp +122 -0
  1043. data/src/cxx_supportlib/vendor-modified/boost/core/detail/sp_thread_yield.hpp +100 -0
  1044. data/src/cxx_supportlib/vendor-modified/boost/core/detail/splitmix64.hpp +54 -0
  1045. data/src/cxx_supportlib/vendor-modified/boost/core/detail/string_view.hpp +1272 -0
  1046. data/src/cxx_supportlib/vendor-modified/boost/core/empty_value.hpp +37 -18
  1047. data/src/cxx_supportlib/vendor-modified/boost/core/fclose_deleter.hpp +53 -0
  1048. data/src/cxx_supportlib/vendor-modified/boost/core/first_scalar.hpp +45 -0
  1049. data/src/cxx_supportlib/vendor-modified/boost/core/functor.hpp +41 -0
  1050. data/src/cxx_supportlib/vendor-modified/boost/core/identity.hpp +61 -0
  1051. data/src/cxx_supportlib/vendor-modified/boost/core/ignore_unused.hpp +32 -2
  1052. data/src/cxx_supportlib/vendor-modified/boost/core/invoke_swap.hpp +93 -0
  1053. data/src/cxx_supportlib/vendor-modified/boost/core/is_same.hpp +10 -15
  1054. data/src/cxx_supportlib/vendor-modified/boost/core/launder.hpp +69 -0
  1055. data/src/cxx_supportlib/vendor-modified/boost/core/lightweight_test.hpp +214 -62
  1056. data/src/cxx_supportlib/vendor-modified/boost/core/lightweight_test_trait.hpp +41 -6
  1057. data/src/cxx_supportlib/vendor-modified/boost/core/make_span.hpp +59 -0
  1058. data/src/cxx_supportlib/vendor-modified/boost/core/max_align.hpp +82 -0
  1059. data/src/cxx_supportlib/vendor-modified/boost/core/memory_resource.hpp +108 -0
  1060. data/src/cxx_supportlib/vendor-modified/boost/core/no_exceptions_support.hpp +14 -2
  1061. data/src/cxx_supportlib/vendor-modified/boost/core/noinit_adaptor.hpp +90 -0
  1062. data/src/cxx_supportlib/vendor-modified/boost/core/noncopyable.hpp +1 -1
  1063. data/src/cxx_supportlib/vendor-modified/boost/core/null_deleter.hpp +7 -0
  1064. data/src/cxx_supportlib/vendor-modified/boost/core/nvp.hpp +57 -0
  1065. data/src/cxx_supportlib/vendor-modified/boost/core/pointer_traits.hpp +112 -60
  1066. data/src/cxx_supportlib/vendor-modified/boost/core/quick_exit.hpp +2 -2
  1067. data/src/cxx_supportlib/vendor-modified/boost/core/ref.hpp +59 -16
  1068. data/src/cxx_supportlib/vendor-modified/boost/core/serialization.hpp +131 -0
  1069. data/src/cxx_supportlib/vendor-modified/boost/core/size.hpp +31 -0
  1070. data/src/cxx_supportlib/vendor-modified/boost/core/snprintf.hpp +173 -0
  1071. data/src/cxx_supportlib/vendor-modified/boost/core/span.hpp +399 -0
  1072. data/src/cxx_supportlib/vendor-modified/boost/core/swap.hpp +10 -37
  1073. data/src/cxx_supportlib/vendor-modified/boost/core/type_name.hpp +1181 -0
  1074. data/src/cxx_supportlib/vendor-modified/boost/core/typeinfo.hpp +2 -2
  1075. data/src/cxx_supportlib/vendor-modified/boost/core/uncaught_exceptions.hpp +155 -0
  1076. data/src/cxx_supportlib/vendor-modified/boost/core/use_default.hpp +17 -0
  1077. data/src/cxx_supportlib/vendor-modified/boost/core/verbose_terminate_handler.hpp +88 -0
  1078. data/src/cxx_supportlib/vendor-modified/boost/core/yield_primitives.hpp +12 -0
  1079. data/src/cxx_supportlib/vendor-modified/boost/cregex.hpp +4 -0
  1080. data/src/cxx_supportlib/vendor-modified/boost/cstdint.hpp +5 -5
  1081. data/src/cxx_supportlib/vendor-modified/boost/current_function.hpp +3 -3
  1082. data/src/cxx_supportlib/vendor-modified/boost/date_time/c_time.hpp +9 -4
  1083. data/src/cxx_supportlib/vendor-modified/boost/date_time/compiler_config.hpp +4 -41
  1084. data/src/cxx_supportlib/vendor-modified/boost/date_time/constrained_value.hpp +19 -11
  1085. data/src/cxx_supportlib/vendor-modified/boost/date_time/date.hpp +24 -24
  1086. data/src/cxx_supportlib/vendor-modified/boost/date_time/date_duration.hpp +17 -22
  1087. data/src/cxx_supportlib/vendor-modified/boost/date_time/date_duration_types.hpp +44 -49
  1088. data/src/cxx_supportlib/vendor-modified/boost/date_time/date_facet.hpp +5 -6
  1089. data/src/cxx_supportlib/vendor-modified/boost/date_time/date_generators.hpp +24 -19
  1090. data/src/cxx_supportlib/vendor-modified/boost/date_time/date_iterator.hpp +8 -8
  1091. data/src/cxx_supportlib/vendor-modified/boost/date_time/date_parsing.hpp +51 -25
  1092. data/src/cxx_supportlib/vendor-modified/boost/date_time/dst_rules.hpp +56 -56
  1093. data/src/cxx_supportlib/vendor-modified/boost/date_time/dst_transition_generators.hpp +2 -2
  1094. data/src/cxx_supportlib/vendor-modified/boost/date_time/find_match.hpp +42 -0
  1095. data/src/cxx_supportlib/vendor-modified/boost/date_time/format_date_parser.hpp +98 -98
  1096. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters.hpp +3 -3
  1097. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters_limited.hpp +3 -3
  1098. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_date.hpp +34 -27
  1099. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_day.hpp +4 -4
  1100. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration.hpp +44 -32
  1101. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp +2 -2
  1102. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_month.hpp +51 -23
  1103. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_serialize.hpp +29 -27
  1104. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_weekday.hpp +43 -9
  1105. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_year.hpp +3 -3
  1106. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/parsers.hpp +34 -15
  1107. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian_calendar.hpp +15 -17
  1108. data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian_calendar.ipp +30 -25
  1109. data/src/cxx_supportlib/vendor-modified/boost/date_time/int_adapter.hpp +57 -37
  1110. data/src/cxx_supportlib/vendor-modified/boost/date_time/iso_format.hpp +13 -13
  1111. data/src/cxx_supportlib/vendor-modified/boost/date_time/local_time/local_date_time.hpp +2 -2
  1112. data/src/cxx_supportlib/vendor-modified/boost/date_time/local_time/local_time_io.hpp +3 -0
  1113. data/src/cxx_supportlib/vendor-modified/boost/date_time/locale_config.hpp +3 -3
  1114. data/src/cxx_supportlib/vendor-modified/boost/date_time/period.hpp +44 -47
  1115. data/src/cxx_supportlib/vendor-modified/boost/date_time/period_formatter.hpp +34 -31
  1116. data/src/cxx_supportlib/vendor-modified/boost/date_time/period_parser.hpp +27 -28
  1117. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/conversion.hpp +1 -1
  1118. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/date_duration_operators.hpp +8 -8
  1119. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/posix_time_config.hpp +13 -26
  1120. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/posix_time_duration.hpp +4 -4
  1121. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/posix_time_io.hpp +1 -1
  1122. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/ptime.hpp +22 -4
  1123. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters.hpp +4 -4
  1124. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters_limited.hpp +2 -2
  1125. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_parsers.hpp +4 -0
  1126. data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_serialize.hpp +28 -12
  1127. data/src/cxx_supportlib/vendor-modified/boost/date_time/special_values_formatter.hpp +1 -0
  1128. data/src/cxx_supportlib/vendor-modified/boost/date_time/special_values_parser.hpp +1 -6
  1129. data/src/cxx_supportlib/vendor-modified/boost/date_time/string_parse_tree.hpp +5 -3
  1130. data/src/cxx_supportlib/vendor-modified/boost/date_time/strings_from_facet.hpp +4 -2
  1131. data/src/cxx_supportlib/vendor-modified/boost/date_time/time.hpp +24 -3
  1132. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_duration.hpp +56 -44
  1133. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_facet.hpp +9 -12
  1134. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_iterator.hpp +8 -8
  1135. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_parsing.hpp +5 -10
  1136. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_resolution_traits.hpp +18 -18
  1137. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_system_counted.hpp +65 -50
  1138. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_system_split.hpp +43 -30
  1139. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_zone_base.hpp +1 -1
  1140. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_zone_names.hpp +1 -1
  1141. data/src/cxx_supportlib/vendor-modified/boost/date_time/tz_db_base.hpp +0 -1
  1142. data/src/cxx_supportlib/vendor-modified/boost/date_time/wrapping_int.hpp +16 -15
  1143. data/src/cxx_supportlib/vendor-modified/boost/date_time/year_month_day.hpp +7 -5
  1144. data/src/cxx_supportlib/vendor-modified/boost/describe/bases.hpp +50 -0
  1145. data/src/cxx_supportlib/vendor-modified/boost/describe/detail/config.hpp +40 -0
  1146. data/src/cxx_supportlib/vendor-modified/boost/describe/detail/cx_streq.hpp +30 -0
  1147. data/src/cxx_supportlib/vendor-modified/boost/describe/detail/void_t.hpp +32 -0
  1148. data/src/cxx_supportlib/vendor-modified/boost/describe/members.hpp +161 -0
  1149. data/src/cxx_supportlib/vendor-modified/boost/describe/modifiers.hpp +33 -0
  1150. data/src/cxx_supportlib/vendor-modified/boost/detail/basic_pointerbuf.hpp +6 -10
  1151. data/src/cxx_supportlib/vendor-modified/boost/detail/lcast_precision.hpp +6 -97
  1152. data/src/cxx_supportlib/vendor-modified/boost/detail/workaround.hpp +3 -3
  1153. data/src/cxx_supportlib/vendor-modified/boost/exception/current_exception_cast.hpp +10 -4
  1154. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/clone_current_exception.hpp +10 -4
  1155. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/error_info_impl.hpp +12 -7
  1156. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/exception_ptr.hpp +135 -34
  1157. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/is_output_streamable.hpp +9 -4
  1158. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/object_hex_dump.hpp +9 -4
  1159. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/requires_cxx11.hpp +24 -0
  1160. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/shared_ptr.hpp +2 -2
  1161. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/type_info.hpp +11 -5
  1162. data/src/cxx_supportlib/vendor-modified/boost/exception/diagnostic_information.hpp +18 -9
  1163. data/src/cxx_supportlib/vendor-modified/boost/exception/exception.hpp +103 -59
  1164. data/src/cxx_supportlib/vendor-modified/boost/exception/get_error_info.hpp +9 -4
  1165. data/src/cxx_supportlib/vendor-modified/boost/exception/info.hpp +12 -10
  1166. data/src/cxx_supportlib/vendor-modified/boost/exception/to_string.hpp +10 -5
  1167. data/src/cxx_supportlib/vendor-modified/boost/exception/to_string_stub.hpp +9 -4
  1168. data/src/cxx_supportlib/vendor-modified/boost/exception_ptr.hpp +2 -2
  1169. data/src/cxx_supportlib/vendor-modified/boost/foreach.hpp +16 -9
  1170. data/src/cxx_supportlib/vendor-modified/boost/function/function0.hpp +1 -3
  1171. data/src/cxx_supportlib/vendor-modified/boost/function/function1.hpp +1 -3
  1172. data/src/cxx_supportlib/vendor-modified/boost/function/function10.hpp +1 -3
  1173. data/src/cxx_supportlib/vendor-modified/boost/function/function2.hpp +1 -3
  1174. data/src/cxx_supportlib/vendor-modified/boost/function/function3.hpp +1 -3
  1175. data/src/cxx_supportlib/vendor-modified/boost/function/function4.hpp +1 -3
  1176. data/src/cxx_supportlib/vendor-modified/boost/function/function5.hpp +1 -3
  1177. data/src/cxx_supportlib/vendor-modified/boost/function/function6.hpp +1 -3
  1178. data/src/cxx_supportlib/vendor-modified/boost/function/function7.hpp +1 -3
  1179. data/src/cxx_supportlib/vendor-modified/boost/function/function8.hpp +1 -3
  1180. data/src/cxx_supportlib/vendor-modified/boost/function/function9.hpp +1 -3
  1181. data/src/cxx_supportlib/vendor-modified/boost/function/function_base.hpp +62 -210
  1182. data/src/cxx_supportlib/vendor-modified/boost/function/function_fwd.hpp +36 -41
  1183. data/src/cxx_supportlib/vendor-modified/boost/function/function_template.hpp +313 -422
  1184. data/src/cxx_supportlib/vendor-modified/boost/function/function_typeof.hpp +1 -31
  1185. data/src/cxx_supportlib/vendor-modified/boost/function.hpp +5 -61
  1186. data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor.hpp +2 -2
  1187. data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_ct.hpp +3 -3
  1188. data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_rt.hpp +31 -29
  1189. data/src/cxx_supportlib/vendor-modified/boost/integer/extended_euclidean.hpp +83 -0
  1190. data/src/cxx_supportlib/vendor-modified/boost/integer/integer_log2.hpp +86 -81
  1191. data/src/cxx_supportlib/vendor-modified/boost/integer/integer_mask.hpp +2 -2
  1192. data/src/cxx_supportlib/vendor-modified/boost/integer/mod_inverse.hpp +53 -0
  1193. data/src/cxx_supportlib/vendor-modified/boost/integer/static_log2.hpp +4 -5
  1194. data/src/cxx_supportlib/vendor-modified/boost/integer/static_min_max.hpp +3 -2
  1195. data/src/cxx_supportlib/vendor-modified/boost/integer.hpp +4 -4
  1196. data/src/cxx_supportlib/vendor-modified/boost/integer_fwd.hpp +2 -2
  1197. data/src/cxx_supportlib/vendor-modified/boost/integer_traits.hpp +3 -3
  1198. data/src/cxx_supportlib/vendor-modified/boost/intrusive/any_hook.hpp +4 -4
  1199. data/src/cxx_supportlib/vendor-modified/boost/intrusive/avl_set.hpp +99 -100
  1200. data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree.hpp +51 -52
  1201. data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree_algorithms.hpp +64 -64
  1202. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bs_set.hpp +101 -102
  1203. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree.hpp +155 -164
  1204. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree_algorithms.hpp +147 -141
  1205. data/src/cxx_supportlib/vendor-modified/boost/intrusive/circular_list_algorithms.hpp +35 -27
  1206. data/src/cxx_supportlib/vendor-modified/boost/intrusive/circular_slist_algorithms.hpp +88 -19
  1207. data/src/cxx_supportlib/vendor-modified/boost/intrusive/derivation_value_traits.hpp +4 -4
  1208. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/any_node_and_algorithms.hpp +30 -30
  1209. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/array_initializer.hpp +10 -8
  1210. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/avltree_node.hpp +14 -14
  1211. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/bstree_algorithms_base.hpp +38 -40
  1212. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/common_slist_algorithms.hpp +84 -15
  1213. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/config_begin.hpp +1 -0
  1214. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/default_header_holder.hpp +3 -3
  1215. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/ebo_functor_holder.hpp +27 -27
  1216. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/empty_node_checker.hpp +1 -1
  1217. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/equal_to_value.hpp +1 -1
  1218. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/exception_disposer.hpp +1 -32
  1219. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/generic_hook.hpp +14 -15
  1220. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hash.hpp +277 -0
  1221. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hash_combine.hpp +54 -0
  1222. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hash_integral.hpp +119 -0
  1223. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hash_mix.hpp +130 -0
  1224. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hashtable_node.hpp +204 -115
  1225. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hook_traits.hpp +22 -20
  1226. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/iiterator.hpp +6 -6
  1227. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/iterator.hpp +126 -80
  1228. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/key_nodeptr_comp.hpp +7 -7
  1229. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/list_iterator.hpp +30 -18
  1230. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/list_node.hpp +4 -4
  1231. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/math.hpp +11 -64
  1232. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/mpl.hpp +8 -1
  1233. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/node_cloner_disposer.hpp +4 -4
  1234. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/node_to_value.hpp +1 -1
  1235. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/parent_from_member.hpp +6 -17
  1236. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/rbtree_node.hpp +18 -18
  1237. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/reverse_iterator.hpp +3 -140
  1238. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/simple_disposers.hpp +3 -1
  1239. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/size_holder.hpp +14 -14
  1240. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/slist_iterator.hpp +36 -17
  1241. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/slist_node.hpp +2 -2
  1242. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/transform_iterator.hpp +22 -22
  1243. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/tree_iterator.hpp +38 -26
  1244. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/tree_node.hpp +6 -6
  1245. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/tree_value_compare.hpp +28 -28
  1246. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/twin.hpp +49 -0
  1247. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/value_functors.hpp +52 -0
  1248. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/workaround.hpp +66 -4
  1249. data/src/cxx_supportlib/vendor-modified/boost/intrusive/hashtable.hpp +1764 -1040
  1250. data/src/cxx_supportlib/vendor-modified/boost/intrusive/intrusive_fwd.hpp +5 -0
  1251. data/src/cxx_supportlib/vendor-modified/boost/intrusive/linear_slist_algorithms.hpp +98 -18
  1252. data/src/cxx_supportlib/vendor-modified/boost/intrusive/list.hpp +113 -111
  1253. data/src/cxx_supportlib/vendor-modified/boost/intrusive/list_hook.hpp +10 -10
  1254. data/src/cxx_supportlib/vendor-modified/boost/intrusive/member_value_traits.hpp +4 -4
  1255. data/src/cxx_supportlib/vendor-modified/boost/intrusive/options.hpp +26 -4
  1256. data/src/cxx_supportlib/vendor-modified/boost/intrusive/pack_options.hpp +21 -11
  1257. data/src/cxx_supportlib/vendor-modified/boost/intrusive/parent_from_member.hpp +2 -2
  1258. data/src/cxx_supportlib/vendor-modified/boost/intrusive/pointer_plus_bits.hpp +4 -4
  1259. data/src/cxx_supportlib/vendor-modified/boost/intrusive/pointer_traits.hpp +31 -23
  1260. data/src/cxx_supportlib/vendor-modified/boost/intrusive/priority_compare.hpp +13 -6
  1261. data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree.hpp +51 -52
  1262. data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree_algorithms.hpp +51 -51
  1263. data/src/cxx_supportlib/vendor-modified/boost/intrusive/set.hpp +101 -102
  1264. data/src/cxx_supportlib/vendor-modified/boost/intrusive/set_hook.hpp +12 -12
  1265. data/src/cxx_supportlib/vendor-modified/boost/intrusive/sg_set.hpp +109 -110
  1266. data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree.hpp +68 -77
  1267. data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree_algorithms.hpp +41 -41
  1268. data/src/cxx_supportlib/vendor-modified/boost/intrusive/slist.hpp +174 -182
  1269. data/src/cxx_supportlib/vendor-modified/boost/intrusive/slist_hook.hpp +8 -6
  1270. data/src/cxx_supportlib/vendor-modified/boost/intrusive/splay_set.hpp +107 -108
  1271. data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree.hpp +54 -55
  1272. data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree_algorithms.hpp +59 -57
  1273. data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap.hpp +141 -115
  1274. data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_algorithms.hpp +58 -53
  1275. data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_set.hpp +158 -152
  1276. data/src/cxx_supportlib/vendor-modified/boost/intrusive/trivial_value_traits.hpp +6 -4
  1277. data/src/cxx_supportlib/vendor-modified/boost/intrusive/unordered_set.hpp +126 -116
  1278. data/src/cxx_supportlib/vendor-modified/boost/intrusive/unordered_set_hook.hpp +17 -17
  1279. data/src/cxx_supportlib/vendor-modified/boost/io/ios_state.hpp +361 -315
  1280. data/src/cxx_supportlib/vendor-modified/boost/io_fwd.hpp +45 -49
  1281. data/src/cxx_supportlib/vendor-modified/boost/iterator/advance.hpp +11 -0
  1282. data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/config_def.hpp +10 -10
  1283. data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/config_undef.hpp +1 -1
  1284. data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/enable_if.hpp +5 -5
  1285. data/src/cxx_supportlib/vendor-modified/boost/iterator/detail/facade_iterator_category.hpp +13 -13
  1286. data/src/cxx_supportlib/vendor-modified/boost/iterator/is_iterator.hpp +148 -0
  1287. data/src/cxx_supportlib/vendor-modified/boost/iterator/iterator_adaptor.hpp +3 -3
  1288. data/src/cxx_supportlib/vendor-modified/boost/iterator/iterator_concepts.hpp +2 -2
  1289. data/src/cxx_supportlib/vendor-modified/boost/iterator/iterator_facade.hpp +107 -26
  1290. data/src/cxx_supportlib/vendor-modified/boost/iterator/transform_iterator.hpp +8 -4
  1291. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/bad_lexical_cast.hpp +24 -25
  1292. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/buffer_view.hpp +59 -0
  1293. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical.hpp +140 -158
  1294. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical_streams.hpp +613 -646
  1295. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_numeric.hpp +85 -73
  1296. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/inf_nan.hpp +35 -45
  1297. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/is_character.hpp +22 -29
  1298. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_basic_unlockedbuf.hpp +73 -0
  1299. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_char_constants.hpp +2 -2
  1300. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_unsigned_converters.hpp +30 -25
  1301. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/widest_char.hpp +7 -9
  1302. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/try_lexical_convert.hpp +22 -161
  1303. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast.hpp +10 -13
  1304. data/src/cxx_supportlib/vendor-modified/boost/libs/chrono/src/chrono.cpp +4 -2
  1305. data/src/cxx_supportlib/vendor-modified/boost/libs/chrono/src/process_cpu_clocks.cpp +3 -1
  1306. data/src/cxx_supportlib/vendor-modified/boost/libs/chrono/src/thread_clock.cpp +3 -1
  1307. data/src/cxx_supportlib/vendor-modified/boost/libs/random/src/random_device.cpp +1 -1
  1308. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/posix_api.cpp +20 -25
  1309. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/regex.cpp +13 -122
  1310. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/static_mutex.cpp +8 -2
  1311. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/wide_posix_api.cpp +24 -22
  1312. data/src/cxx_supportlib/vendor-modified/boost/libs/thread/src/pthread/once.cpp +0 -1
  1313. data/src/cxx_supportlib/vendor-modified/boost/libs/thread/src/pthread/once_atomic.cpp +4 -3
  1314. data/src/cxx_supportlib/vendor-modified/boost/libs/thread/src/pthread/thread.cpp +36 -21
  1315. data/src/cxx_supportlib/vendor-modified/boost/limits.hpp +12 -12
  1316. data/src/cxx_supportlib/vendor-modified/boost/memory_order.hpp +6 -12
  1317. data/src/cxx_supportlib/vendor-modified/boost/move/adl_move_swap.hpp +5 -5
  1318. data/src/cxx_supportlib/vendor-modified/boost/move/algo/adaptive_merge.hpp +82 -60
  1319. data/src/cxx_supportlib/vendor-modified/boost/move/algo/adaptive_sort.hpp +108 -84
  1320. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/adaptive_sort_merge.hpp +321 -488
  1321. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/basic_op.hpp +11 -10
  1322. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/heap_sort.hpp +22 -11
  1323. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/insertion_sort.hpp +9 -0
  1324. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/merge.hpp +463 -120
  1325. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/merge_sort.hpp +87 -10
  1326. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/pdqsort.hpp +16 -5
  1327. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/search.hpp +79 -0
  1328. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/set_difference.hpp +9 -3
  1329. data/src/cxx_supportlib/vendor-modified/boost/move/algo/move.hpp +8 -5
  1330. data/src/cxx_supportlib/vendor-modified/boost/move/algo/predicate.hpp +24 -9
  1331. data/src/cxx_supportlib/vendor-modified/boost/move/algorithm.hpp +0 -1
  1332. data/src/cxx_supportlib/vendor-modified/boost/move/core.hpp +24 -3
  1333. data/src/cxx_supportlib/vendor-modified/boost/move/default_delete.hpp +32 -6
  1334. data/src/cxx_supportlib/vendor-modified/boost/move/detail/addressof.hpp +61 -0
  1335. data/src/cxx_supportlib/vendor-modified/boost/move/detail/config_begin.hpp +1 -0
  1336. data/src/cxx_supportlib/vendor-modified/boost/move/detail/force_ptr.hpp +36 -0
  1337. data/src/cxx_supportlib/vendor-modified/boost/move/detail/fwd_macros.hpp +12 -0
  1338. data/src/cxx_supportlib/vendor-modified/boost/move/detail/iterator_traits.hpp +109 -9
  1339. data/src/cxx_supportlib/vendor-modified/boost/move/detail/meta_utils.hpp +8 -32
  1340. data/src/cxx_supportlib/vendor-modified/boost/move/detail/meta_utils_core.hpp +11 -6
  1341. data/src/cxx_supportlib/vendor-modified/boost/move/detail/move_helpers.hpp +24 -24
  1342. data/src/cxx_supportlib/vendor-modified/boost/move/detail/nsec_clock.hpp +268 -0
  1343. data/src/cxx_supportlib/vendor-modified/boost/move/detail/reverse_iterator.hpp +40 -33
  1344. data/src/cxx_supportlib/vendor-modified/boost/move/detail/std_ns_begin.hpp +5 -1
  1345. data/src/cxx_supportlib/vendor-modified/boost/move/detail/std_ns_end.hpp +2 -0
  1346. data/src/cxx_supportlib/vendor-modified/boost/move/detail/to_raw_pointer.hpp +1 -1
  1347. data/src/cxx_supportlib/vendor-modified/boost/move/detail/type_traits.hpp +332 -69
  1348. data/src/cxx_supportlib/vendor-modified/boost/move/detail/unique_ptr_meta_utils.hpp +1 -27
  1349. data/src/cxx_supportlib/vendor-modified/boost/move/detail/workaround.hpp +85 -3
  1350. data/src/cxx_supportlib/vendor-modified/boost/move/iterator.hpp +21 -21
  1351. data/src/cxx_supportlib/vendor-modified/boost/move/make_unique.hpp +10 -0
  1352. data/src/cxx_supportlib/vendor-modified/boost/move/unique_ptr.hpp +65 -66
  1353. data/src/cxx_supportlib/vendor-modified/boost/move/utility.hpp +2 -2
  1354. data/src/cxx_supportlib/vendor-modified/boost/move/utility_core.hpp +38 -33
  1355. data/src/cxx_supportlib/vendor-modified/boost/mp11/algorithm.hpp +1386 -0
  1356. data/src/cxx_supportlib/vendor-modified/boost/mp11/bind.hpp +120 -0
  1357. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/config.hpp +149 -0
  1358. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_append.hpp +321 -0
  1359. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_copy_if.hpp +48 -0
  1360. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_count.hpp +147 -0
  1361. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_defer.hpp +119 -0
  1362. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_fold.hpp +166 -0
  1363. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_front.hpp +50 -0
  1364. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_is_list.hpp +39 -0
  1365. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_is_value_list.hpp +41 -0
  1366. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_list.hpp +24 -0
  1367. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_list_v.hpp +27 -0
  1368. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_map_find.hpp +87 -0
  1369. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_min_element.hpp +51 -0
  1370. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_plus.hpp +84 -0
  1371. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_remove_if.hpp +48 -0
  1372. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_rename.hpp +54 -0
  1373. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_value.hpp +25 -0
  1374. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_void.hpp +32 -0
  1375. data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_with_index.hpp +385 -0
  1376. data/src/cxx_supportlib/vendor-modified/boost/mp11/function.hpp +222 -0
  1377. data/src/cxx_supportlib/vendor-modified/boost/mp11/integer_sequence.hpp +121 -0
  1378. data/src/cxx_supportlib/vendor-modified/boost/mp11/integral.hpp +51 -0
  1379. data/src/cxx_supportlib/vendor-modified/boost/mp11/list.hpp +481 -0
  1380. data/src/cxx_supportlib/vendor-modified/boost/mp11/set.hpp +188 -0
  1381. data/src/cxx_supportlib/vendor-modified/boost/mp11/utility.hpp +169 -0
  1382. data/src/cxx_supportlib/vendor-modified/boost/mp11/version.hpp +16 -0
  1383. data/src/cxx_supportlib/vendor-modified/boost/mpl/and.hpp +1 -1
  1384. data/src/cxx_supportlib/vendor-modified/boost/mpl/assert.hpp +9 -9
  1385. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/common_name_wknd.hpp +2 -2
  1386. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/adl.hpp +1 -1
  1387. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/arrays.hpp +1 -1
  1388. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/bcc.hpp +2 -2
  1389. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/bind.hpp +1 -1
  1390. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/compiler.hpp +2 -2
  1391. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/ctps.hpp +1 -1
  1392. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/dtp.hpp +3 -3
  1393. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/forwarding.hpp +1 -1
  1394. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/integral.hpp +1 -1
  1395. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/operators.hpp +1 -1
  1396. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/overload_resolution.hpp +1 -1
  1397. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/preprocessor.hpp +1 -1
  1398. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/config/ttp.hpp +2 -2
  1399. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/count_impl.hpp +1 -1
  1400. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/fold_impl_body.hpp +3 -3
  1401. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/has_rebind.hpp +4 -4
  1402. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/integral_wrapper.hpp +1 -1
  1403. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/lambda_support.hpp +3 -3
  1404. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/nested_type_wknd.hpp +1 -1
  1405. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp +1 -1
  1406. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessor/enum.hpp +12 -0
  1407. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessor/params.hpp +12 -0
  1408. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/size_impl.hpp +1 -1
  1409. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/static_cast.hpp +1 -1
  1410. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/template_arity.hpp +1 -1
  1411. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/yes_no.hpp +2 -1
  1412. data/src/cxx_supportlib/vendor-modified/boost/mpl/bitand.hpp +1 -1
  1413. data/src/cxx_supportlib/vendor-modified/boost/mpl/bitor.hpp +1 -1
  1414. data/src/cxx_supportlib/vendor-modified/boost/mpl/has_xxx.hpp +4 -4
  1415. data/src/cxx_supportlib/vendor-modified/boost/mpl/if.hpp +1 -1
  1416. data/src/cxx_supportlib/vendor-modified/boost/mpl/integral_c.hpp +1 -1
  1417. data/src/cxx_supportlib/vendor-modified/boost/mpl/lower_bound.hpp +1 -1
  1418. data/src/cxx_supportlib/vendor-modified/boost/mpl/numeric_cast.hpp +1 -1
  1419. data/src/cxx_supportlib/vendor-modified/boost/mpl/or.hpp +1 -1
  1420. data/src/cxx_supportlib/vendor-modified/boost/mpl/string.hpp +6 -6
  1421. data/src/cxx_supportlib/vendor-modified/boost/mpl/upper_bound.hpp +1 -1
  1422. data/src/cxx_supportlib/vendor-modified/boost/mpl/vector/aux_/at.hpp +1 -1
  1423. data/src/cxx_supportlib/vendor-modified/boost/next_prior.hpp +3 -44
  1424. data/src/cxx_supportlib/vendor-modified/boost/nondet_random.hpp +22 -0
  1425. data/src/cxx_supportlib/vendor-modified/boost/none.hpp +5 -5
  1426. data/src/cxx_supportlib/vendor-modified/boost/none_t.hpp +11 -1
  1427. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/cast.hpp +1 -1
  1428. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/converter_policies.hpp +5 -5
  1429. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/converter.hpp +1 -1
  1430. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/int_float_mixture.hpp +5 -5
  1431. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/meta.hpp +1 -1
  1432. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/sign_mixture.hpp +5 -5
  1433. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/udt_builtin_mixture.hpp +5 -5
  1434. data/src/cxx_supportlib/vendor-modified/boost/operators.hpp +33 -24
  1435. data/src/cxx_supportlib/vendor-modified/boost/optional/bad_optional_access.hpp +9 -0
  1436. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/old_optional_implementation.hpp +7 -6
  1437. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_aligned_storage.hpp +1 -1
  1438. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_config.hpp +4 -4
  1439. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_hash.hpp +49 -0
  1440. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_reference_spec.hpp +10 -3
  1441. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_relops.hpp +1 -1
  1442. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_swap.hpp +6 -6
  1443. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_trivially_copyable_base.hpp +38 -27
  1444. data/src/cxx_supportlib/vendor-modified/boost/optional/optional.hpp +95 -29
  1445. data/src/cxx_supportlib/vendor-modified/boost/optional/optional_io.hpp +3 -2
  1446. data/src/cxx_supportlib/vendor-modified/boost/parameter/are_tagged_arguments.hpp +125 -0
  1447. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/always_true_predicate.hpp +42 -0
  1448. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/arg_list.hpp +1253 -359
  1449. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/as_lvalue.hpp +25 -0
  1450. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/augment_predicate.hpp +198 -0
  1451. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/cast.hpp +7 -136
  1452. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/default.hpp +101 -59
  1453. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/has_nested_template_fn.hpp +111 -0
  1454. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/is_maybe.hpp +42 -16
  1455. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/is_placeholder.hpp +64 -0
  1456. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/is_tagged_argument.hpp +95 -0
  1457. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/lambda_tag.hpp +16 -0
  1458. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/maybe.hpp +128 -97
  1459. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/name.hpp +93 -0
  1460. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/as_parameter_requirements.hpp +32 -0
  1461. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/deduce_tag.hpp +217 -0
  1462. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/deduced_item.hpp +34 -0
  1463. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/insert_tagged.hpp +23 -0
  1464. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/is_named_argument.hpp +43 -0
  1465. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/item.hpp +47 -0
  1466. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/make_arg_list.hpp +438 -0
  1467. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/make_deduced_items.hpp +53 -0
  1468. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/make_items.hpp +45 -0
  1469. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/make_parameter_spec_items.hpp +244 -0
  1470. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/parameter_requirements.hpp +25 -0
  1471. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/predicate.hpp +87 -0
  1472. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/satisfies.hpp +142 -0
  1473. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp +59 -0
  1474. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_keyword_arg.hpp +30 -0
  1475. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_keyword_arg_ref.hpp +67 -0
  1476. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_template_keyword_arg.hpp +30 -0
  1477. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_type.hpp +89 -0
  1478. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/unmatched_argument.hpp +41 -0
  1479. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/parameter_requirements.hpp +7 -20
  1480. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/parenthesized_type.hpp +8 -31
  1481. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pp_impl/argument_pack.hpp +91 -0
  1482. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pp_impl/match.hpp +55 -0
  1483. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pp_impl/unwrap_predicate.hpp +97 -0
  1484. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/binary_seq_for_each.hpp +1638 -0
  1485. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/binary_seq_for_each_inc.hpp +1796 -0
  1486. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/binary_seq_to_args.hpp +65 -0
  1487. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/convert_binary_seq.hpp +57 -0
  1488. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/flatten.hpp +7 -110
  1489. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/for_each.hpp +7 -98
  1490. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/for_each_pred.hpp +1029 -0
  1491. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/argument_specs.hpp +24 -0
  1492. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/arity_range.hpp +42 -0
  1493. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/flatten.hpp +143 -0
  1494. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/for_each.hpp +152 -0
  1495. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/forwarding_overloads.hpp +509 -0
  1496. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_cast.hpp +730 -0
  1497. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_dispatch_layer.hpp +474 -0
  1498. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_dispatch_tuple.hpp +33 -0
  1499. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_forward_match.hpp +43 -0
  1500. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_name.hpp +152 -0
  1501. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/no_spec_overloads.hpp +331 -0
  1502. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/parenthesized_return_type.hpp +122 -0
  1503. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/parenthesized_type.hpp +34 -0
  1504. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/specification.hpp +109 -0
  1505. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/split_args.hpp +71 -0
  1506. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/inc_binary_seq.hpp +78 -0
  1507. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/is_binary.hpp +31 -0
  1508. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/is_nullary.hpp +32 -0
  1509. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/no_perfect_forwarding_begin.hpp +165 -0
  1510. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/no_perfect_forwarding_end.hpp +24 -0
  1511. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/nullptr.hpp +18 -0
  1512. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/overloads.hpp +92 -0
  1513. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/qualifier.hpp +88 -0
  1514. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/seq_enum.hpp +26 -0
  1515. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/seq_merge.hpp +1807 -0
  1516. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/result_of0.hpp +46 -29
  1517. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/set.hpp +94 -42
  1518. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/tag.hpp +156 -34
  1519. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/tagged_argument.hpp +874 -159
  1520. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/tagged_argument_fwd.hpp +38 -0
  1521. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/template_keyword.hpp +76 -34
  1522. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/unwrap_cv_reference.hpp +161 -78
  1523. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/use_default.hpp +17 -0
  1524. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/use_default_tag.hpp +29 -0
  1525. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/void.hpp +26 -17
  1526. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/yesno.hpp +30 -14
  1527. data/src/cxx_supportlib/vendor-modified/boost/parameter/binding.hpp +158 -74
  1528. data/src/cxx_supportlib/vendor-modified/boost/parameter/compose.hpp +210 -0
  1529. data/src/cxx_supportlib/vendor-modified/boost/parameter/config.hpp +75 -6
  1530. data/src/cxx_supportlib/vendor-modified/boost/parameter/deduced.hpp +132 -0
  1531. data/src/cxx_supportlib/vendor-modified/boost/parameter/is_argument_pack.hpp +29 -0
  1532. data/src/cxx_supportlib/vendor-modified/boost/parameter/keyword.hpp +724 -102
  1533. data/src/cxx_supportlib/vendor-modified/boost/parameter/keyword_fwd.hpp +23 -0
  1534. data/src/cxx_supportlib/vendor-modified/boost/parameter/macros.hpp +205 -72
  1535. data/src/cxx_supportlib/vendor-modified/boost/parameter/match.hpp +37 -44
  1536. data/src/cxx_supportlib/vendor-modified/boost/parameter/name.hpp +100 -126
  1537. data/src/cxx_supportlib/vendor-modified/boost/parameter/nested_keyword.hpp +111 -0
  1538. data/src/cxx_supportlib/vendor-modified/boost/parameter/optional.hpp +67 -0
  1539. data/src/cxx_supportlib/vendor-modified/boost/parameter/parameters.hpp +556 -887
  1540. data/src/cxx_supportlib/vendor-modified/boost/parameter/preprocessor.hpp +156 -1016
  1541. data/src/cxx_supportlib/vendor-modified/boost/parameter/preprocessor_no_spec.hpp +74 -0
  1542. data/src/cxx_supportlib/vendor-modified/boost/parameter/required.hpp +66 -0
  1543. data/src/cxx_supportlib/vendor-modified/boost/parameter/template_keyword.hpp +87 -0
  1544. data/src/cxx_supportlib/vendor-modified/boost/parameter/value_type.hpp +156 -74
  1545. data/src/cxx_supportlib/vendor-modified/boost/pool/object_pool.hpp +2 -2
  1546. data/src/cxx_supportlib/vendor-modified/boost/pool/pool.hpp +22 -9
  1547. data/src/cxx_supportlib/vendor-modified/boost/pool/pool_alloc.hpp +1 -1
  1548. data/src/cxx_supportlib/vendor-modified/boost/pool/simple_segregated_storage.hpp +13 -0
  1549. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/alpha.h +19 -13
  1550. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/arm.h +96 -32
  1551. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/blackfin.h +16 -10
  1552. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/convex.h +19 -13
  1553. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/e2k.h +54 -0
  1554. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ia64.h +19 -13
  1555. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/loongarch.h +41 -0
  1556. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/m68k.h +33 -27
  1557. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/mips.h +31 -20
  1558. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/parisc.h +24 -18
  1559. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ppc.h +82 -30
  1560. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ptx.h +15 -9
  1561. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/pyramid.h +13 -7
  1562. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/riscv.h +48 -0
  1563. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/rs6k.h +23 -12
  1564. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sparc.h +26 -13
  1565. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/superh.h +29 -15
  1566. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sys370.h +15 -9
  1567. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sys390.h +15 -9
  1568. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/x86/32.h +31 -25
  1569. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/x86/64.h +19 -13
  1570. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/x86.h +4 -4
  1571. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/z.h +14 -8
  1572. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture.h +3 -1
  1573. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/borland.h +12 -11
  1574. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/clang.h +10 -9
  1575. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/comeau.h +10 -9
  1576. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/compaq.h +12 -11
  1577. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/diab.h +10 -9
  1578. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/digitalmars.h +10 -9
  1579. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/dignus.h +10 -9
  1580. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/edg.h +10 -9
  1581. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/ekopath.h +10 -9
  1582. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/gcc.h +11 -10
  1583. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/gcc_xml.h +9 -8
  1584. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/greenhills.h +12 -11
  1585. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/hp_acc.h +10 -9
  1586. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/iar.h +10 -9
  1587. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/ibm.h +15 -14
  1588. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/intel.h +18 -17
  1589. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/kai.h +10 -9
  1590. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/llvm.h +9 -8
  1591. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/metaware.h +9 -8
  1592. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/metrowerks.h +14 -13
  1593. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/microtec.h +9 -8
  1594. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/mpw.h +12 -11
  1595. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/nvcc.h +10 -9
  1596. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/palm.h +10 -9
  1597. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/pgi.h +10 -9
  1598. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/sgi_mipspro.h +12 -11
  1599. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/sunpro.h +14 -13
  1600. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/tendra.h +9 -8
  1601. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/visualc.h +13 -12
  1602. data/src/cxx_supportlib/vendor-modified/boost/predef/compiler/watcom.h +10 -9
  1603. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/arm/versions.h +16 -10
  1604. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/arm.h +21 -19
  1605. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/ppc/versions.h +27 -21
  1606. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/ppc.h +21 -19
  1607. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/x86/versions.h +73 -67
  1608. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/x86.h +39 -37
  1609. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/x86_amd/versions.h +24 -19
  1610. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd/x86_amd.h +25 -23
  1611. data/src/cxx_supportlib/vendor-modified/boost/predef/hardware/simd.h +95 -46
  1612. data/src/cxx_supportlib/vendor-modified/boost/predef/language/cuda.h +11 -10
  1613. data/src/cxx_supportlib/vendor-modified/boost/predef/language/objc.h +9 -8
  1614. data/src/cxx_supportlib/vendor-modified/boost/predef/language/stdc.h +11 -10
  1615. data/src/cxx_supportlib/vendor-modified/boost/predef/language/stdcpp.h +41 -34
  1616. data/src/cxx_supportlib/vendor-modified/boost/predef/library/c/cloudabi.h +10 -9
  1617. data/src/cxx_supportlib/vendor-modified/boost/predef/library/c/gnu.h +12 -11
  1618. data/src/cxx_supportlib/vendor-modified/boost/predef/library/c/uc.h +10 -9
  1619. data/src/cxx_supportlib/vendor-modified/boost/predef/library/c/vms.h +9 -8
  1620. data/src/cxx_supportlib/vendor-modified/boost/predef/library/c/zos.h +10 -9
  1621. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/cxx.h +11 -10
  1622. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/dinkumware.h +11 -10
  1623. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/libcomo.h +10 -9
  1624. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/modena.h +10 -9
  1625. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/msl.h +12 -11
  1626. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/msvc.h +53 -0
  1627. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/roguewave.h +11 -10
  1628. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/sgi.h +10 -9
  1629. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/stdcpp3.h +12 -11
  1630. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/stlport.h +13 -12
  1631. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/vacpp.h +9 -8
  1632. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std.h +1 -0
  1633. data/src/cxx_supportlib/vendor-modified/boost/predef/make.h +105 -35
  1634. data/src/cxx_supportlib/vendor-modified/boost/predef/os/aix.h +14 -13
  1635. data/src/cxx_supportlib/vendor-modified/boost/predef/os/amigaos.h +10 -9
  1636. data/src/cxx_supportlib/vendor-modified/boost/predef/os/beos.h +9 -8
  1637. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/bsdi.h +10 -8
  1638. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/dragonfly.h +10 -8
  1639. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/free.h +11 -9
  1640. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/net.h +17 -15
  1641. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/open.h +60 -58
  1642. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd.h +22 -23
  1643. data/src/cxx_supportlib/vendor-modified/boost/predef/os/cygwin.h +10 -9
  1644. data/src/cxx_supportlib/vendor-modified/boost/predef/os/haiku.h +9 -8
  1645. data/src/cxx_supportlib/vendor-modified/boost/predef/os/hpux.h +11 -10
  1646. data/src/cxx_supportlib/vendor-modified/boost/predef/os/ios.h +12 -11
  1647. data/src/cxx_supportlib/vendor-modified/boost/predef/os/irix.h +10 -9
  1648. data/src/cxx_supportlib/vendor-modified/boost/predef/os/linux.h +14 -10
  1649. data/src/cxx_supportlib/vendor-modified/boost/predef/os/macos.h +14 -13
  1650. data/src/cxx_supportlib/vendor-modified/boost/predef/os/os400.h +9 -8
  1651. data/src/cxx_supportlib/vendor-modified/boost/predef/os/qnxnto.h +12 -11
  1652. data/src/cxx_supportlib/vendor-modified/boost/predef/os/solaris.h +10 -9
  1653. data/src/cxx_supportlib/vendor-modified/boost/predef/os/unix.h +24 -22
  1654. data/src/cxx_supportlib/vendor-modified/boost/predef/os/vms.h +11 -10
  1655. data/src/cxx_supportlib/vendor-modified/boost/predef/os/windows.h +16 -15
  1656. data/src/cxx_supportlib/vendor-modified/boost/predef/os.h +0 -1
  1657. data/src/cxx_supportlib/vendor-modified/boost/predef/other/endian.h +18 -19
  1658. data/src/cxx_supportlib/vendor-modified/boost/predef/other/wordsize.h +73 -0
  1659. data/src/cxx_supportlib/vendor-modified/boost/predef/other/workaround.h +22 -14
  1660. data/src/cxx_supportlib/vendor-modified/boost/predef/other.h +3 -2
  1661. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/android.h +44 -0
  1662. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/cloudabi.h +9 -8
  1663. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/ios.h +14 -9
  1664. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/mingw.h +12 -11
  1665. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/mingw32.h +10 -9
  1666. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/mingw64.h +10 -9
  1667. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/windows_desktop.h +10 -9
  1668. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/windows_phone.h +9 -8
  1669. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/windows_runtime.h +10 -9
  1670. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/windows_server.h +9 -8
  1671. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/windows_store.h +10 -9
  1672. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/windows_system.h +9 -8
  1673. data/src/cxx_supportlib/vendor-modified/boost/predef/platform/windows_uwp.h +12 -11
  1674. data/src/cxx_supportlib/vendor-modified/boost/predef/platform.h +1 -1
  1675. data/src/cxx_supportlib/vendor-modified/boost/predef/version.h +1 -1
  1676. data/src/cxx_supportlib/vendor-modified/boost/predef/version_number.h +16 -14
  1677. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/add.hpp +54 -1
  1678. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/dec.hpp +33 -0
  1679. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_1_number.hpp +21 -0
  1680. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_maximum_number.hpp +22 -0
  1681. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_minimum_number.hpp +21 -0
  1682. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/maximum_number.hpp +19 -0
  1683. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/div.hpp +37 -1
  1684. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/inc.hpp +33 -0
  1685. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_1024.hpp +531 -0
  1686. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_256.hpp +276 -0
  1687. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_512.hpp +275 -0
  1688. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_1024.hpp +536 -0
  1689. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_256.hpp +275 -0
  1690. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_512.hpp +280 -0
  1691. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/mod.hpp +37 -1
  1692. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/mul.hpp +60 -1
  1693. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/sub.hpp +51 -1
  1694. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/detail/get_data.hpp +21 -21
  1695. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/enum.hpp +17 -1
  1696. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/insert.hpp +71 -0
  1697. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/remove.hpp +66 -0
  1698. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/replace.hpp +58 -0
  1699. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/to_list.hpp +7 -7
  1700. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/to_seq.hpp +7 -7
  1701. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/to_tuple.hpp +7 -7
  1702. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_1024.hpp +1044 -0
  1703. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_256.hpp +793 -0
  1704. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_512.hpp +532 -0
  1705. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/not_equal.hpp +44 -1
  1706. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/config/config.hpp +16 -33
  1707. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/config/limits.hpp +136 -3
  1708. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/deduce_d.hpp +27 -0
  1709. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/dmc/while.hpp +2 -3
  1710. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_1024.hpp +1044 -0
  1711. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_256.hpp +533 -0
  1712. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_512.hpp +532 -0
  1713. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/while.hpp +27 -0
  1714. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_1024.hpp +1044 -0
  1715. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_256.hpp +533 -0
  1716. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_512.hpp +532 -0
  1717. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/while.hpp +27 -0
  1718. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_1024.hpp +531 -0
  1719. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_256.hpp +275 -0
  1720. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_512.hpp +275 -0
  1721. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/while.hpp +75 -0
  1722. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/auto_rec.hpp +41 -0
  1723. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/dmc/auto_rec.hpp +2 -2
  1724. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_1024.hpp +532 -0
  1725. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_256.hpp +280 -0
  1726. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_512.hpp +276 -0
  1727. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/check_empty.hpp +19 -0
  1728. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/detail/is_empty.hpp +3 -3
  1729. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/intercept.hpp +29 -0
  1730. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/is_empty.hpp +0 -37
  1731. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/is_empty_variadic.hpp +28 -5
  1732. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_1024.hpp +530 -0
  1733. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_256.hpp +273 -0
  1734. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_512.hpp +274 -0
  1735. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/overload.hpp +1 -3
  1736. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/va_opt.hpp +34 -0
  1737. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities.hpp +2 -0
  1738. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward1.hpp +27 -0
  1739. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward2.hpp +27 -0
  1740. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward3.hpp +27 -0
  1741. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward4.hpp +27 -0
  1742. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward5.hpp +27 -0
  1743. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_1024.hpp +2573 -0
  1744. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_256.hpp +1296 -0
  1745. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_512.hpp +1293 -0
  1746. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_1024.hpp +2573 -0
  1747. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_256.hpp +1296 -0
  1748. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_512.hpp +1293 -0
  1749. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_1024.hpp +2573 -0
  1750. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_256.hpp +1296 -0
  1751. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_512.hpp +1293 -0
  1752. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_1024.hpp +2573 -0
  1753. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_256.hpp +1296 -0
  1754. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_512.hpp +1293 -0
  1755. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_1024.hpp +2573 -0
  1756. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_256.hpp +1296 -0
  1757. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_512.hpp +1293 -0
  1758. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_1024.hpp +2571 -0
  1759. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_256.hpp +1296 -0
  1760. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_512.hpp +1291 -0
  1761. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_1024.hpp +2571 -0
  1762. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_256.hpp +1296 -0
  1763. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_512.hpp +1293 -0
  1764. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_1024.hpp +2571 -0
  1765. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_256.hpp +1296 -0
  1766. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_512.hpp +1293 -0
  1767. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_1024.hpp +2571 -0
  1768. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_256.hpp +1296 -0
  1769. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_512.hpp +1293 -0
  1770. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_1024.hpp +2571 -0
  1771. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_256.hpp +1296 -0
  1772. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_512.hpp +1293 -0
  1773. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse1.hpp +25 -0
  1774. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse2.hpp +25 -0
  1775. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse3.hpp +25 -0
  1776. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse4.hpp +25 -0
  1777. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse5.hpp +25 -0
  1778. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_1024.hpp +1549 -0
  1779. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_256.hpp +782 -0
  1780. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_512.hpp +781 -0
  1781. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_1024.hpp +1549 -0
  1782. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_256.hpp +782 -0
  1783. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_512.hpp +781 -0
  1784. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/local.hpp +27 -0
  1785. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/rlocal.hpp +25 -0
  1786. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/dmc/fold_left.hpp +3 -2
  1787. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/fold_left.hpp +28 -0
  1788. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/fold_right.hpp +29 -0
  1789. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_1024.hpp +1044 -0
  1790. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_256.hpp +533 -0
  1791. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_512.hpp +532 -0
  1792. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_1024.hpp +1557 -0
  1793. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_256.hpp +791 -0
  1794. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_512.hpp +789 -0
  1795. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/fold_left.hpp +28 -0
  1796. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/fold_right.hpp +26 -0
  1797. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_1024.hpp +532 -0
  1798. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_256.hpp +275 -0
  1799. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_512.hpp +276 -0
  1800. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_1024.hpp +532 -0
  1801. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_256.hpp +275 -0
  1802. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_512.hpp +276 -0
  1803. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/enum.hpp +13 -1
  1804. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/fold_left.hpp +60 -0
  1805. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/fold_right.hpp +44 -0
  1806. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/for_each_product.hpp +25 -6
  1807. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_1024.hpp +531 -0
  1808. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_256.hpp +275 -0
  1809. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_512.hpp +275 -0
  1810. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/reverse.hpp +35 -0
  1811. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/size.hpp +56 -1
  1812. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/to_array.hpp +21 -88
  1813. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/to_tuple.hpp +14 -14
  1814. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/bool.hpp +22 -0
  1815. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_1024.hpp +531 -0
  1816. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_256.hpp +275 -0
  1817. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_512.hpp +275 -0
  1818. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/punctuation/is_begin_parens.hpp +1 -5
  1819. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/punctuation/remove_parens.hpp +0 -4
  1820. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/deduce_r.hpp +27 -0
  1821. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/dmc/for.hpp +3 -2
  1822. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/for.hpp +26 -0
  1823. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_1024.hpp +1044 -0
  1824. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_256.hpp +533 -0
  1825. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_512.hpp +532 -0
  1826. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/for.hpp +28 -0
  1827. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_1024.hpp +1044 -0
  1828. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_256.hpp +533 -0
  1829. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_512.hpp +532 -0
  1830. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/msvc/for.hpp +1 -0
  1831. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/for.hpp +121 -7
  1832. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_1024.hpp +531 -0
  1833. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_256.hpp +275 -0
  1834. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_512.hpp +275 -0
  1835. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_1024.hpp +1557 -0
  1836. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_256.hpp +791 -0
  1837. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_512.hpp +789 -0
  1838. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/repeat.hpp +22 -0
  1839. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/repeat_from_to.hpp +27 -0
  1840. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/binary_transform.hpp +6 -11
  1841. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/is_empty.hpp +11 -11
  1842. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_1024.hpp +530 -0
  1843. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_256.hpp +272 -0
  1844. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_512.hpp +274 -0
  1845. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/split.hpp +23 -0
  1846. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/elem.hpp +23 -0
  1847. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/enum.hpp +23 -0
  1848. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/fold_left.hpp +52 -0
  1849. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/fold_right.hpp +37 -0
  1850. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/for_each.hpp +27 -27
  1851. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/for_each_i.hpp +28 -28
  1852. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_1024.hpp +530 -0
  1853. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_256.hpp +272 -0
  1854. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_512.hpp +274 -0
  1855. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_1024.hpp +530 -0
  1856. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_256.hpp +272 -0
  1857. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_512.hpp +274 -0
  1858. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_1024.hpp +1556 -0
  1859. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_256.hpp +1053 -0
  1860. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_512.hpp +788 -0
  1861. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_1024.hpp +530 -0
  1862. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_256.hpp +273 -0
  1863. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_512.hpp +274 -0
  1864. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_1024.hpp +1043 -0
  1865. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_256.hpp +532 -0
  1866. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_512.hpp +531 -0
  1867. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/replace.hpp +7 -7
  1868. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/rest_n.hpp +16 -10
  1869. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/size.hpp +23 -0
  1870. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/variadic_seq_to_seq.hpp +0 -2
  1871. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/stringize.hpp +0 -4
  1872. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/detail/is_single_return.hpp +5 -5
  1873. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/eat.hpp +4 -18
  1874. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/elem.hpp +11 -157
  1875. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/insert.hpp +2 -7
  1876. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_128.hpp +403 -0
  1877. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_256.hpp +1171 -0
  1878. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_64.hpp +83 -0
  1879. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_128.hpp +595 -0
  1880. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_256.hpp +1747 -0
  1881. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_64.hpp +83 -0
  1882. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_128.hpp +403 -0
  1883. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_256.hpp +1171 -0
  1884. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_64.hpp +84 -0
  1885. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/pop_back.hpp +16 -21
  1886. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/pop_front.hpp +16 -21
  1887. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/push_back.hpp +1 -6
  1888. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/push_front.hpp +1 -7
  1889. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/rem.hpp +21 -43
  1890. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/remove.hpp +16 -21
  1891. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/replace.hpp +2 -7
  1892. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/reverse.hpp +38 -25
  1893. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/size.hpp +13 -6
  1894. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_array.hpp +15 -12
  1895. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_list.hpp +37 -25
  1896. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_seq.hpp +38 -24
  1897. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/detail/has_opt.hpp +39 -0
  1898. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/detail/is_single_return.hpp +5 -5
  1899. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/elem.hpp +93 -71
  1900. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/has_opt.hpp +34 -0
  1901. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_128.hpp +275 -0
  1902. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_256.hpp +723 -0
  1903. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_64.hpp +81 -0
  1904. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_128.hpp +47 -0
  1905. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_256.hpp +53 -0
  1906. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_64.hpp +23 -0
  1907. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/size.hpp +39 -4
  1908. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_array.hpp +15 -9
  1909. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_list.hpp +9 -2
  1910. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_seq.hpp +1 -3
  1911. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_tuple.hpp +1 -3
  1912. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic.hpp +1 -0
  1913. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/wstringize.hpp +0 -4
  1914. data/src/cxx_supportlib/vendor-modified/boost/random/additive_combine.hpp +2 -2
  1915. data/src/cxx_supportlib/vendor-modified/boost/random/detail/gray_coded_qrng.hpp +29 -5
  1916. data/src/cxx_supportlib/vendor-modified/boost/random/detail/int_float_pair.hpp +3 -4
  1917. data/src/cxx_supportlib/vendor-modified/boost/random/detail/integer_log2.hpp +1 -1
  1918. data/src/cxx_supportlib/vendor-modified/boost/random/detail/mixmax_skip_N17.ipp +287 -0
  1919. data/src/cxx_supportlib/vendor-modified/boost/random/detail/niederreiter_base2_table.hpp +1 -0
  1920. data/src/cxx_supportlib/vendor-modified/boost/random/detail/operators.hpp +1 -1
  1921. data/src/cxx_supportlib/vendor-modified/boost/random/detail/qrng_base.hpp +5 -5
  1922. data/src/cxx_supportlib/vendor-modified/boost/random/detail/seed.hpp +9 -11
  1923. data/src/cxx_supportlib/vendor-modified/boost/random/detail/seed_impl.hpp +13 -14
  1924. data/src/cxx_supportlib/vendor-modified/boost/random/detail/sobol_table.hpp +1 -0
  1925. data/src/cxx_supportlib/vendor-modified/boost/random/discard_block.hpp +2 -2
  1926. data/src/cxx_supportlib/vendor-modified/boost/random/discrete_distribution.hpp +4 -0
  1927. data/src/cxx_supportlib/vendor-modified/boost/random/generate_canonical.hpp +2 -3
  1928. data/src/cxx_supportlib/vendor-modified/boost/random/hyperexponential_distribution.hpp +3 -3
  1929. data/src/cxx_supportlib/vendor-modified/boost/random/independent_bits.hpp +3 -3
  1930. data/src/cxx_supportlib/vendor-modified/boost/random/inversive_congruential.hpp +3 -4
  1931. data/src/cxx_supportlib/vendor-modified/boost/random/lagged_fibonacci.hpp +4 -4
  1932. data/src/cxx_supportlib/vendor-modified/boost/random/linear_congruential.hpp +5 -7
  1933. data/src/cxx_supportlib/vendor-modified/boost/random/linear_feedback_shift.hpp +3 -3
  1934. data/src/cxx_supportlib/vendor-modified/boost/random/mersenne_twister.hpp +2 -2
  1935. data/src/cxx_supportlib/vendor-modified/boost/random/mixmax.hpp +313 -0
  1936. data/src/cxx_supportlib/vendor-modified/boost/random/niederreiter_base2.hpp +2 -2
  1937. data/src/cxx_supportlib/vendor-modified/boost/random/random_device.hpp +2 -2
  1938. data/src/cxx_supportlib/vendor-modified/boost/random/shuffle_order.hpp +2 -2
  1939. data/src/cxx_supportlib/vendor-modified/boost/random/sobol.hpp +3 -2
  1940. data/src/cxx_supportlib/vendor-modified/boost/random/splitmix64.hpp +203 -0
  1941. data/src/cxx_supportlib/vendor-modified/boost/random/subtract_with_carry.hpp +18 -18
  1942. data/src/cxx_supportlib/vendor-modified/boost/random/traits.hpp +3 -3
  1943. data/src/cxx_supportlib/vendor-modified/boost/random/uniform_int_distribution.hpp +7 -7
  1944. data/src/cxx_supportlib/vendor-modified/boost/random/uniform_real_distribution.hpp +4 -5
  1945. data/src/cxx_supportlib/vendor-modified/boost/random/uniform_smallint.hpp +4 -5
  1946. data/src/cxx_supportlib/vendor-modified/boost/random/xor_combine.hpp +4 -2
  1947. data/src/cxx_supportlib/vendor-modified/boost/random.hpp +2 -0
  1948. data/src/cxx_supportlib/vendor-modified/boost/range/as_literal.hpp +0 -6
  1949. data/src/cxx_supportlib/vendor-modified/boost/range/begin.hpp +4 -10
  1950. data/src/cxx_supportlib/vendor-modified/boost/range/concepts.hpp +1 -1
  1951. data/src/cxx_supportlib/vendor-modified/boost/range/config.hpp +1 -1
  1952. data/src/cxx_supportlib/vendor-modified/boost/range/end.hpp +4 -10
  1953. data/src/cxx_supportlib/vendor-modified/boost/range/iterator_range_core.hpp +0 -32
  1954. data/src/cxx_supportlib/vendor-modified/boost/range/rbegin.hpp +0 -13
  1955. data/src/cxx_supportlib/vendor-modified/boost/range/rend.hpp +0 -13
  1956. data/src/cxx_supportlib/vendor-modified/boost/range/size.hpp +1 -1
  1957. data/src/cxx_supportlib/vendor-modified/boost/ratio/config.hpp +4 -82
  1958. data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/gcd_lcm.hpp +53 -0
  1959. data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/is_evenly_divisible_by.hpp +32 -0
  1960. data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/is_ratio.hpp +28 -0
  1961. data/src/cxx_supportlib/vendor-modified/boost/ratio/include.hpp +1 -3
  1962. data/src/cxx_supportlib/vendor-modified/boost/ratio/ratio.hpp +5 -249
  1963. data/src/cxx_supportlib/vendor-modified/boost/ratio/ratio_fwd.hpp +30 -56
  1964. data/src/cxx_supportlib/vendor-modified/boost/ratio/ratio_io.hpp +0 -533
  1965. data/src/cxx_supportlib/vendor-modified/boost/rational.hpp +40 -14
  1966. data/src/cxx_supportlib/vendor-modified/boost/regex/concepts.hpp +79 -74
  1967. data/src/cxx_supportlib/vendor-modified/boost/regex/config/borland.hpp +1 -1
  1968. data/src/cxx_supportlib/vendor-modified/boost/regex/config.hpp +104 -111
  1969. data/src/cxx_supportlib/vendor-modified/boost/regex/pattern_except.hpp +4 -72
  1970. data/src/cxx_supportlib/vendor-modified/boost/regex/pending/object_cache.hpp +4 -140
  1971. data/src/cxx_supportlib/vendor-modified/boost/regex/pending/unicode_iterator.hpp +8 -761
  1972. data/src/cxx_supportlib/vendor-modified/boost/regex/regex_traits.hpp +4 -0
  1973. data/src/cxx_supportlib/vendor-modified/boost/regex/user.hpp +2 -0
  1974. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex.hpp +25 -15
  1975. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex_creator.hpp +47 -24
  1976. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex_parser.hpp +59 -28
  1977. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/c_regex_traits.hpp +342 -42
  1978. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/cpp_regex_traits.hpp +111 -28
  1979. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/cregex.hpp +0 -117
  1980. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/icu.hpp +1516 -0
  1981. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/indexed_bit_flag.hpp +54 -0
  1982. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/match_flags.hpp +18 -6
  1983. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/match_results.hpp +9 -9
  1984. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/mem_block_cache.hpp +39 -1
  1985. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/object_cache.hpp +171 -0
  1986. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/pattern_except.hpp +128 -0
  1987. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher.hpp +39 -20
  1988. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_common.hpp +17 -7
  1989. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_non_recursive.hpp +51 -52
  1990. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_recursive.hpp +12 -12
  1991. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/primary_transform.hpp +1 -1
  1992. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/protected_call.hpp +3 -1
  1993. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex.hpp +0 -36
  1994. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_format.hpp +10 -3
  1995. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_iterator.hpp +2 -0
  1996. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_raw_buffer.hpp +35 -4
  1997. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_token_iterator.hpp +9 -7
  1998. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_traits.hpp +1 -1
  1999. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_traits_defaults.hpp +641 -25
  2000. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_workaround.hpp +7 -7
  2001. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/states.hpp +1 -1
  2002. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/sub_match.hpp +1 -1
  2003. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/u32regex_token_iterator.hpp +1 -1
  2004. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/unicode_iterator.hpp +871 -0
  2005. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/w32_regex_traits.hpp +524 -40
  2006. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex.hpp +734 -0
  2007. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex_creator.hpp +1576 -0
  2008. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex_parser.hpp +3130 -0
  2009. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/c_regex_traits.hpp +474 -0
  2010. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/char_regex_traits.hpp +59 -0
  2011. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/cpp_regex_traits.hpp +1040 -0
  2012. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/cregex.hpp +195 -0
  2013. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/error_type.hpp +59 -0
  2014. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/icu.hpp +1402 -0
  2015. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/iterator_category.hpp +84 -0
  2016. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/iterator_traits.hpp +32 -0
  2017. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/match_flags.hpp +156 -0
  2018. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/match_results.hpp +667 -0
  2019. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/mem_block_cache.hpp +173 -0
  2020. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/object_cache.hpp +160 -0
  2021. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/pattern_except.hpp +106 -0
  2022. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher.hpp +576 -0
  2023. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher_common.hpp +921 -0
  2024. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher_non_recursive.hpp +1874 -0
  2025. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/primary_transform.hpp +120 -0
  2026. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regbase.hpp +158 -0
  2027. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex.hpp +106 -0
  2028. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_format.hpp +1124 -0
  2029. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_fwd.hpp +73 -0
  2030. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_grep.hpp +98 -0
  2031. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_iterator.hpp +173 -0
  2032. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_match.hpp +92 -0
  2033. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_merge.hpp +71 -0
  2034. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_raw_buffer.hpp +213 -0
  2035. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_replace.hpp +77 -0
  2036. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_search.hpp +103 -0
  2037. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_split.hpp +152 -0
  2038. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_token_iterator.hpp +255 -0
  2039. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_traits.hpp +130 -0
  2040. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_traits_defaults.hpp +996 -0
  2041. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_workaround.hpp +159 -0
  2042. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/states.hpp +299 -0
  2043. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/sub_match.hpp +382 -0
  2044. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/syntax_type.hpp +105 -0
  2045. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/u32regex_iterator.hpp +177 -0
  2046. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/u32regex_token_iterator.hpp +312 -0
  2047. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/unicode_iterator.hpp +862 -0
  2048. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/w32_regex_traits.hpp +1311 -0
  2049. data/src/cxx_supportlib/vendor-modified/boost/regex.hpp +4 -0
  2050. data/src/cxx_supportlib/vendor-modified/boost/regex_fwd.hpp +4 -0
  2051. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/allocate_shared_array.hpp +93 -388
  2052. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/bad_weak_ptr.hpp +5 -5
  2053. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count.hpp +8 -4
  2054. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_gcc.hpp +7 -0
  2055. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_gcc_atomic.hpp +63 -0
  2056. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_gcc_x86.hpp +11 -0
  2057. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_nt.hpp +7 -0
  2058. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_pt.hpp +7 -0
  2059. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_spin.hpp +7 -0
  2060. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_std_atomic.hpp +8 -1
  2061. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_sync.hpp +13 -2
  2062. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/local_counted_base.hpp +6 -6
  2063. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/local_sp_deleter.hpp +3 -3
  2064. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/requires_cxx11.hpp +23 -0
  2065. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/shared_count.hpp +88 -48
  2066. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_convertible.hpp +1 -1
  2067. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base.hpp +12 -16
  2068. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_acc_ia64.hpp +13 -3
  2069. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_aix.hpp +10 -3
  2070. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp +15 -3
  2071. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_gcc_atomic.hpp +148 -0
  2072. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_gcc_ia64.hpp +13 -3
  2073. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp +13 -3
  2074. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_gcc_ppc.hpp +13 -3
  2075. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp +13 -3
  2076. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp +13 -3
  2077. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_nt.hpp +25 -16
  2078. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_pt.hpp +16 -8
  2079. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_snc_ps3.hpp +14 -4
  2080. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_spin.hpp +10 -3
  2081. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp +25 -17
  2082. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_sync.hpp +10 -3
  2083. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_vacpp_ppc.hpp +13 -3
  2084. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_impl.hpp +45 -28
  2085. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_has_gcc_intrinsics.hpp +27 -0
  2086. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_has_sync_intrinsics.hpp +69 -0
  2087. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_typeinfo_.hpp +58 -0
  2088. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock.hpp +7 -9
  2089. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_gcc_arm.hpp +7 -0
  2090. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp +94 -0
  2091. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_nt.hpp +7 -0
  2092. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_pt.hpp +7 -0
  2093. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_std_atomic.hpp +13 -5
  2094. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_sync.hpp +8 -1
  2095. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/yield_k.hpp +13 -147
  2096. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/enable_shared_from_this.hpp +1 -0
  2097. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ptr.hpp +49 -12
  2098. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared.hpp +1 -0
  2099. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp +23 -22
  2100. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_object.hpp +2 -1
  2101. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_unique.hpp +70 -0
  2102. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/scoped_array.hpp +3 -2
  2103. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/scoped_ptr.hpp +3 -2
  2104. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_array.hpp +6 -4
  2105. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_ptr.hpp +120 -40
  2106. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/weak_ptr.hpp +80 -8
  2107. data/src/cxx_supportlib/vendor-modified/boost/static_assert.hpp +5 -4
  2108. data/src/cxx_supportlib/vendor-modified/boost/system/detail/append_int.hpp +32 -0
  2109. data/src/cxx_supportlib/vendor-modified/boost/system/detail/cerrno.hpp +329 -0
  2110. data/src/cxx_supportlib/vendor-modified/boost/system/detail/config.hpp +44 -18
  2111. data/src/cxx_supportlib/vendor-modified/boost/system/detail/enable_if.hpp +23 -0
  2112. data/src/cxx_supportlib/vendor-modified/boost/system/detail/errc.hpp +126 -0
  2113. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category.hpp +183 -0
  2114. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category_impl.hpp +166 -0
  2115. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_code.hpp +659 -0
  2116. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_condition.hpp +326 -0
  2117. data/src/cxx_supportlib/vendor-modified/boost/system/detail/generic_category.hpp +80 -58
  2118. data/src/cxx_supportlib/vendor-modified/boost/system/detail/generic_category_message.hpp +108 -0
  2119. data/src/cxx_supportlib/vendor-modified/boost/system/detail/interop_category.hpp +107 -0
  2120. data/src/cxx_supportlib/vendor-modified/boost/system/detail/is_same.hpp +23 -0
  2121. data/src/cxx_supportlib/vendor-modified/boost/system/detail/mutex.hpp +128 -0
  2122. data/src/cxx_supportlib/vendor-modified/boost/system/detail/snprintf.hpp +28 -0
  2123. data/src/cxx_supportlib/vendor-modified/boost/system/detail/std_category.hpp +84 -0
  2124. data/src/cxx_supportlib/vendor-modified/boost/system/detail/std_category_impl.hpp +97 -0
  2125. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category.hpp +110 -0
  2126. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_impl.hpp +61 -0
  2127. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_message.hpp +71 -0
  2128. data/src/cxx_supportlib/vendor-modified/boost/system/detail/throws.hpp +59 -0
  2129. data/src/cxx_supportlib/vendor-modified/boost/system/errc.hpp +57 -0
  2130. data/src/cxx_supportlib/vendor-modified/boost/system/error_category.hpp +13 -0
  2131. data/src/cxx_supportlib/vendor-modified/boost/system/error_code.hpp +7 -942
  2132. data/src/cxx_supportlib/vendor-modified/boost/system/error_condition.hpp +13 -0
  2133. data/src/cxx_supportlib/vendor-modified/boost/system/generic_category.hpp +13 -0
  2134. data/src/cxx_supportlib/vendor-modified/boost/system/is_error_code_enum.hpp +30 -0
  2135. data/src/cxx_supportlib/vendor-modified/boost/system/is_error_condition_enum.hpp +30 -0
  2136. data/src/cxx_supportlib/vendor-modified/boost/system/system_category.hpp +14 -0
  2137. data/src/cxx_supportlib/vendor-modified/boost/system/system_error.hpp +30 -59
  2138. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/deque_adaptor.hpp +1 -1
  2139. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/deque_base.hpp +1 -1
  2140. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/detail/sync_deque_base.hpp +9 -21
  2141. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/detail/sync_queue_base.hpp +9 -21
  2142. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/queue_adaptor.hpp +1 -1
  2143. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/queue_base.hpp +1 -1
  2144. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/queue_op_status.hpp +3 -1
  2145. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/sync_bounded_queue.hpp +1 -1
  2146. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/sync_deque.hpp +3 -3
  2147. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/sync_priority_queue.hpp +4 -4
  2148. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/sync_queue.hpp +3 -3
  2149. data/src/cxx_supportlib/vendor-modified/boost/thread/concurrent_queues/sync_timed_queue.hpp +80 -14
  2150. data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/deque.hpp +1 -24
  2151. data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/functional.hpp +1 -14
  2152. data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/list.hpp +1 -14
  2153. data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/allocator_arg.hpp +2 -12
  2154. data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/allocator_traits.hpp +0 -11
  2155. data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/config.hpp +0 -2
  2156. data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/default_delete.hpp +0 -16
  2157. data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/pointer_traits.hpp +0 -11
  2158. data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/scoped_allocator.hpp +0 -11
  2159. data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/shared_ptr.hpp +0 -19
  2160. data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/unique_ptr.hpp +4 -6
  2161. data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/queue.hpp +1 -24
  2162. data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/tuple.hpp +1 -18
  2163. data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/vector.hpp +1 -14
  2164. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/config.hpp +12 -3
  2165. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/invoke.hpp +27 -21
  2166. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/platform_time.hpp +8 -8
  2167. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/string_to_unsigned.hpp +55 -0
  2168. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/string_trim.hpp +29 -0
  2169. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/thread.hpp +30 -11
  2170. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/basic_thread_pool.hpp +3 -0
  2171. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/executor.hpp +2 -0
  2172. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/executor_adaptor.hpp +2 -0
  2173. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/generic_executor_ref.hpp +2 -0
  2174. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/inline_executor.hpp +8 -0
  2175. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/loop_executor.hpp +4 -0
  2176. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/scheduled_thread_pool.hpp +4 -0
  2177. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/scheduler.hpp +2 -0
  2178. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/scheduling_adaptor.hpp +3 -0
  2179. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/serial_executor.hpp +4 -0
  2180. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/serial_executor_cont.hpp +9 -2
  2181. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/thread_executor.hpp +6 -0
  2182. data/src/cxx_supportlib/vendor-modified/boost/thread/executors/work.hpp +3 -1
  2183. data/src/cxx_supportlib/vendor-modified/boost/thread/experimental/parallel/v2/task_region.hpp +6 -2
  2184. data/src/cxx_supportlib/vendor-modified/boost/thread/externally_locked.hpp +6 -5
  2185. data/src/cxx_supportlib/vendor-modified/boost/thread/future.hpp +2 -2
  2186. data/src/cxx_supportlib/vendor-modified/boost/thread/futures/wait_for_any.hpp +4 -2
  2187. data/src/cxx_supportlib/vendor-modified/boost/thread/interruption.hpp +22 -0
  2188. data/src/cxx_supportlib/vendor-modified/boost/thread/poly_lockable.hpp +7 -2
  2189. data/src/cxx_supportlib/vendor-modified/boost/thread/poly_shared_lockable.hpp +16 -12
  2190. data/src/cxx_supportlib/vendor-modified/boost/thread/poly_shared_lockable_adapter.hpp +3 -4
  2191. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/condition_variable.hpp +18 -24
  2192. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/condition_variable_fwd.hpp +6 -13
  2193. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/mutex.hpp +11 -37
  2194. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/once.hpp +29 -28
  2195. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/once_atomic.hpp +1 -1
  2196. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_helpers.hpp +163 -18
  2197. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_mutex_scoped_lock.hpp +1 -69
  2198. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/recursive_mutex.hpp +19 -19
  2199. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/shared_mutex.hpp +1 -1
  2200. data/src/cxx_supportlib/vendor-modified/boost/thread/pthread/thread_data.hpp +10 -7
  2201. data/src/cxx_supportlib/vendor-modified/boost/thread/scoped_thread.hpp +9 -0
  2202. data/src/cxx_supportlib/vendor-modified/boost/thread/synchronized_value.hpp +4 -4
  2203. data/src/cxx_supportlib/vendor-modified/boost/thread/thread_guard.hpp +5 -0
  2204. data/src/cxx_supportlib/vendor-modified/boost/thread/tss.hpp +23 -41
  2205. data/src/cxx_supportlib/vendor-modified/boost/thread/user_scheduler.hpp +3 -0
  2206. data/src/cxx_supportlib/vendor-modified/boost/thread/v2/shared_mutex.hpp +1 -1
  2207. data/src/cxx_supportlib/vendor-modified/boost/throw_exception.hpp +231 -56
  2208. data/src/cxx_supportlib/vendor-modified/boost/token_functions.hpp +2 -2
  2209. data/src/cxx_supportlib/vendor-modified/boost/tuple/detail/tuple_basic.hpp +35 -30
  2210. data/src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp +52 -1
  2211. data/src/cxx_supportlib/vendor-modified/boost/type_traits/add_pointer.hpp +1 -1
  2212. data/src/cxx_supportlib/vendor-modified/boost/type_traits/aligned_storage.hpp +1 -1
  2213. data/src/cxx_supportlib/vendor-modified/boost/type_traits/alignment_of.hpp +3 -3
  2214. data/src/cxx_supportlib/vendor-modified/boost/type_traits/conjunction.hpp +40 -0
  2215. data/src/cxx_supportlib/vendor-modified/boost/type_traits/copy_cv_ref.hpp +31 -0
  2216. data/src/cxx_supportlib/vendor-modified/boost/type_traits/copy_reference.hpp +35 -0
  2217. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/config.hpp +29 -5
  2218. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/has_binary_operator.hpp +6 -6
  2219. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/has_postfix_operator.hpp +6 -6
  2220. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/has_prefix_operator.hpp +6 -6
  2221. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_cxx_03.hpp +3 -3
  2222. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_cxx_11.hpp +276 -101
  2223. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_ptr_helper.hpp +27 -27
  2224. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_ptr_tester.hpp +415 -255
  2225. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_likely_lambda.hpp +2 -1
  2226. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp +27 -27
  2227. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp +1345 -1542
  2228. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_member_function_pointer_cxx_03.hpp +4 -4
  2229. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp +288 -148
  2230. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_swappable_cxx_11.hpp +70 -0
  2231. data/src/cxx_supportlib/vendor-modified/boost/type_traits/disjunction.hpp +40 -0
  2232. data/src/cxx_supportlib/vendor-modified/boost/type_traits/extent.hpp +2 -2
  2233. data/src/cxx_supportlib/vendor-modified/boost/type_traits/has_minus.hpp +6 -6
  2234. data/src/cxx_supportlib/vendor-modified/boost/type_traits/has_minus_assign.hpp +6 -6
  2235. data/src/cxx_supportlib/vendor-modified/boost/type_traits/has_nothrow_copy.hpp +1 -1
  2236. data/src/cxx_supportlib/vendor-modified/boost/type_traits/has_plus_assign.hpp +6 -6
  2237. data/src/cxx_supportlib/vendor-modified/boost/type_traits/integral_constant.hpp +1 -1
  2238. data/src/cxx_supportlib/vendor-modified/boost/type_traits/integral_promotion.hpp +2 -2
  2239. data/src/cxx_supportlib/vendor-modified/boost/type_traits/intrinsics.hpp +23 -9
  2240. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_array.hpp +2 -2
  2241. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_base_and_derived.hpp +2 -2
  2242. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_bounded_array.hpp +42 -0
  2243. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_complete.hpp +3 -2
  2244. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_compound.hpp +1 -1
  2245. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_const.hpp +1 -1
  2246. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_constructible.hpp +1 -1
  2247. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_convertible.hpp +4 -4
  2248. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_default_constructible.hpp +1 -1
  2249. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_destructible.hpp +1 -1
  2250. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_empty.hpp +4 -4
  2251. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_enum.hpp +4 -4
  2252. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_floating_point.hpp +22 -0
  2253. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_function.hpp +1 -1
  2254. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_fundamental.hpp +1 -1
  2255. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_integral.hpp +6 -3
  2256. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_lvalue_reference.hpp +1 -1
  2257. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_member_function_pointer.hpp +1 -1
  2258. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_member_pointer.hpp +1 -1
  2259. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_nothrow_swappable.hpp +4 -24
  2260. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_pointer.hpp +1 -1
  2261. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_same.hpp +1 -1
  2262. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_scoped_enum.hpp +26 -0
  2263. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_signed.hpp +2 -2
  2264. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_swappable.hpp +92 -0
  2265. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_trivially_copyable.hpp +31 -0
  2266. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_unbounded_array.hpp +41 -0
  2267. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_unscoped_enum.hpp +25 -0
  2268. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_unsigned.hpp +2 -2
  2269. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_virtual_base_of.hpp +2 -2
  2270. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_volatile.hpp +1 -1
  2271. data/src/cxx_supportlib/vendor-modified/boost/type_traits/negation.hpp +23 -0
  2272. data/src/cxx_supportlib/vendor-modified/boost/type_traits/rank.hpp +4 -4
  2273. data/src/cxx_supportlib/vendor-modified/boost/type_traits/remove_all_extents.hpp +1 -1
  2274. data/src/cxx_supportlib/vendor-modified/boost/type_traits/remove_const.hpp +1 -1
  2275. data/src/cxx_supportlib/vendor-modified/boost/type_traits/remove_cv.hpp +1 -1
  2276. data/src/cxx_supportlib/vendor-modified/boost/type_traits/remove_extent.hpp +1 -1
  2277. data/src/cxx_supportlib/vendor-modified/boost/type_traits/remove_volatile.hpp +1 -1
  2278. data/src/cxx_supportlib/vendor-modified/boost/type_traits/type_with_alignment.hpp +3 -3
  2279. data/src/cxx_supportlib/vendor-modified/boost/typeof/decltype.hpp +2 -3
  2280. data/src/cxx_supportlib/vendor-modified/boost/typeof/incr_registration_group.hpp +1 -10
  2281. data/src/cxx_supportlib/vendor-modified/boost/typeof/msvc/typeof_impl.hpp +5 -6
  2282. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/bitset.hpp +2 -4
  2283. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/complex.hpp +2 -4
  2284. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/deque.hpp +2 -5
  2285. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/fstream.hpp +2 -15
  2286. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/functional.hpp +4 -51
  2287. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/iostream.hpp +2 -6
  2288. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/istream.hpp +2 -9
  2289. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/iterator.hpp +2 -46
  2290. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/list.hpp +2 -5
  2291. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/locale.hpp +2 -29
  2292. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/map.hpp +2 -9
  2293. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/memory.hpp +4 -9
  2294. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/ostream.hpp +2 -6
  2295. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/queue.hpp +2 -5
  2296. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/set.hpp +2 -9
  2297. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/sstream.hpp +2 -19
  2298. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/stack.hpp +2 -5
  2299. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/streambuf.hpp +2 -5
  2300. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/string.hpp +2 -12
  2301. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/utility.hpp +2 -4
  2302. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/valarray.hpp +2 -10
  2303. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/vector.hpp +2 -5
  2304. data/src/cxx_supportlib/vendor-modified/boost/typeof/typeof.hpp +8 -202
  2305. data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_map.hpp +860 -0
  2306. data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_map_fwd.hpp +51 -0
  2307. data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_set.hpp +716 -0
  2308. data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_set_fwd.hpp +52 -0
  2309. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/allocator_constructed.hpp +59 -0
  2310. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/archive_constructed.hpp +71 -0
  2311. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/bad_archive_exception.hpp +27 -0
  2312. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/concurrent_static_asserts.hpp +105 -0
  2313. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/fca.hpp +884 -0
  2314. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/concurrent_table.hpp +1764 -0
  2315. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/core.hpp +2271 -0
  2316. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/element_type.hpp +64 -0
  2317. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/flat_map_types.hpp +86 -0
  2318. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/flat_set_types.hpp +44 -0
  2319. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/ignore_wshadow.hpp +35 -0
  2320. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_handle.hpp +204 -0
  2321. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_map_types.hpp +139 -0
  2322. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_set_types.hpp +92 -0
  2323. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/reentrancy_check.hpp +138 -0
  2324. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/restore_wshadow.hpp +11 -0
  2325. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/rw_spinlock.hpp +179 -0
  2326. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/table.hpp +651 -0
  2327. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/tuple_rotate_right.hpp +52 -0
  2328. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/implementation.hpp +1462 -3502
  2329. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/map.hpp +10 -14
  2330. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/mulx.hpp +129 -0
  2331. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/narrow_cast.hpp +44 -0
  2332. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/opt_storage.hpp +30 -0
  2333. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/prime_fmod.hpp +214 -0
  2334. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/serialization_version.hpp +74 -0
  2335. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/serialize_container.hpp +204 -0
  2336. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/serialize_fca_container.hpp +156 -0
  2337. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/serialize_tracked_address.hpp +104 -0
  2338. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/set.hpp +8 -13
  2339. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/static_assert.hpp +16 -0
  2340. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/throw_exception.hpp +30 -0
  2341. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/type_traits.hpp +226 -0
  2342. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/xmx.hpp +75 -0
  2343. data/src/cxx_supportlib/vendor-modified/boost/unordered/hash_traits.hpp +44 -0
  2344. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map.hpp +800 -0
  2345. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map_fwd.hpp +44 -0
  2346. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set.hpp +610 -0
  2347. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set_fwd.hpp +44 -0
  2348. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map.hpp +768 -1002
  2349. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map_fwd.hpp +16 -13
  2350. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_map.hpp +895 -0
  2351. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_map_fwd.hpp +44 -0
  2352. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_set.hpp +699 -0
  2353. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_set_fwd.hpp +44 -0
  2354. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set.hpp +547 -672
  2355. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set_fwd.hpp +18 -15
  2356. data/src/cxx_supportlib/vendor-modified/boost/utility/base_from_member.hpp +2 -1
  2357. data/src/cxx_supportlib/vendor-modified/boost/utility/binary.hpp +3 -2
  2358. data/src/cxx_supportlib/vendor-modified/boost/utility/detail/result_of_iterate.hpp +3 -3
  2359. data/src/cxx_supportlib/vendor-modified/boost/utility/detail/result_of_variadic.hpp +190 -0
  2360. data/src/cxx_supportlib/vendor-modified/boost/utility/in_place_factory.hpp +6 -0
  2361. data/src/cxx_supportlib/vendor-modified/boost/utility/result_of.hpp +33 -11
  2362. data/src/cxx_supportlib/vendor-modified/boost/utility/string_ref.hpp +9 -44
  2363. data/src/cxx_supportlib/vendor-modified/boost/utility/string_view.hpp +31 -47
  2364. data/src/cxx_supportlib/vendor-modified/boost/utility/swap.hpp +4 -1
  2365. data/src/cxx_supportlib/vendor-modified/boost/utility/typed_in_place_factory.hpp +6 -1
  2366. data/src/cxx_supportlib/vendor-modified/boost/utility/value_init.hpp +41 -75
  2367. data/src/cxx_supportlib/vendor-modified/boost/version.hpp +2 -2
  2368. data/src/cxx_supportlib/vendor-modified/jsoncpp/jsoncpp.cpp +2 -9
  2369. data/src/cxx_supportlib/vendor-modified/modp_b64_data.h +0 -4
  2370. data/src/cxx_supportlib/vendor-modified/modp_b64_strict_aliasing.cpp +5 -1
  2371. data/src/cxx_supportlib/vendor-modified/websocketpp/changelog.md +444 -0
  2372. data/src/cxx_supportlib/vendor-modified/websocketpp/readme.md +49 -0
  2373. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/close.hpp +353 -0
  2374. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/asio.hpp +141 -0
  2375. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/functional.hpp +100 -0
  2376. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/md5.hpp +448 -0
  2377. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/memory.hpp +88 -0
  2378. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/thread.hpp +88 -0
  2379. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/core.hpp +297 -0
  2380. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/connection.hpp +1642 -0
  2381. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/endpoint.hpp +700 -0
  2382. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/extensions/permessage_deflate/disabled.hpp +129 -0
  2383. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/extensions/permessage_deflate/enabled.hpp +817 -0
  2384. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/frame.hpp +853 -0
  2385. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/impl/parser.hpp +200 -0
  2386. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/parser.hpp +629 -0
  2387. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/impl/connection_impl.hpp +2375 -0
  2388. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/impl/endpoint_impl.hpp +269 -0
  2389. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/base.hpp +299 -0
  2390. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/hybi13.hpp +1072 -0
  2391. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/roles/client_endpoint.hpp +173 -0
  2392. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/roles/server_endpoint.hpp +195 -0
  2393. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/sha1/sha1.hpp +189 -0
  2394. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/connection.hpp +1197 -0
  2395. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/endpoint.hpp +1182 -0
  2396. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/security/none.hpp +372 -0
  2397. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/security/tls.hpp +474 -0
  2398. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/base/endpoint.hpp +77 -0
  2399. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/debug/connection.hpp +412 -0
  2400. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/debug/endpoint.hpp +140 -0
  2401. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/iostream/connection.hpp +714 -0
  2402. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/iostream/endpoint.hpp +222 -0
  2403. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/stub/connection.hpp +286 -0
  2404. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/uri.hpp +356 -0
  2405. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/utilities.hpp +180 -0
  2406. data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/version.hpp +61 -0
  2407. data/src/helper-scripts/node-loader.js +1 -1
  2408. data/src/helper-scripts/wsgi-loader.py +34 -17
  2409. data/src/nginx_module/ConfigGeneral/AutoGeneratedDefinitions.c +24 -0
  2410. data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c +19 -0
  2411. data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c +36 -0
  2412. data/src/nginx_module/ConfigGeneral/ManifestGeneration.c +2 -2
  2413. data/src/nginx_module/Configuration.c +4 -4
  2414. data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c +16 -0
  2415. data/src/nginx_module/LocationConfig/AutoGeneratedHeaderSerialization.c +54 -0
  2416. data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c +40 -0
  2417. data/src/nginx_module/LocationConfig/AutoGeneratedMergeFunction.c +9 -0
  2418. data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h +12 -0
  2419. data/src/nginx_module/config +2 -0
  2420. data/src/nginx_module/ngx_http_passenger_module.c +3 -2
  2421. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/common.js +50 -29
  2422. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config/cli-config.js +20 -20
  2423. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config/npm-config.js +11 -11
  2424. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config/syslog-config.js +3 -3
  2425. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/config.js +8 -2
  2426. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/container.js +2 -1
  2427. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/logger.js +174 -146
  2428. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/console.js +4 -2
  2429. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/file.js +15 -5
  2430. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/http.js +14 -4
  2431. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports.js +26 -24
  2432. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston.js +5 -5
  2433. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/async/package.json +4 -13
  2434. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/package.json +19 -33
  2435. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/cycle/package.json +11 -29
  2436. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/eyes/package.json +12 -40
  2437. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/isstream/package.json +3 -12
  2438. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/stack-trace/lib/stack-trace.js +49 -24
  2439. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/stack-trace/package.json +4 -16
  2440. data/src/nodejs_supportlib/vendor-copy/winston/package.json +11 -55
  2441. data/src/ruby_native_extension/extconf.rb +1 -1
  2442. data/src/ruby_supportlib/phusion_passenger/admin_tools/instance_registry.rb +5 -1
  2443. data/src/ruby_supportlib/phusion_passenger/admin_tools/memory_stats.rb +1 -1
  2444. data/src/ruby_supportlib/phusion_passenger/admin_tools.rb +1 -1
  2445. data/src/ruby_supportlib/phusion_passenger/apache2/config_options.rb +12 -0
  2446. data/src/ruby_supportlib/phusion_passenger/common_library.rb +17 -4
  2447. data/src/ruby_supportlib/phusion_passenger/config/download_agent_command.rb +1 -1
  2448. data/src/ruby_supportlib/phusion_passenger/config/download_nginx_engine_command.rb +1 -1
  2449. data/src/ruby_supportlib/phusion_passenger/config/nginx_engine_compiler.rb +4 -3
  2450. data/src/ruby_supportlib/phusion_passenger/config/restart_app_command.rb +16 -12
  2451. data/src/ruby_supportlib/phusion_passenger/console_text_template.rb +7 -2
  2452. data/src/ruby_supportlib/phusion_passenger/constants.rb +3 -2
  2453. data/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb +28 -7
  2454. data/src/ruby_supportlib/phusion_passenger/native_support.rb +10 -5
  2455. data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +18 -0
  2456. data/src/ruby_supportlib/phusion_passenger/packaging.rb +3 -1
  2457. data/src/ruby_supportlib/phusion_passenger/platform_info/apache.rb +10 -13
  2458. data/src/ruby_supportlib/phusion_passenger/platform_info/binary_compatibility.rb +23 -19
  2459. data/src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb +14 -0
  2460. data/src/ruby_supportlib/phusion_passenger/platform_info/curl.rb +3 -0
  2461. data/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb +8 -2
  2462. data/src/ruby_supportlib/phusion_passenger/platform_info/depcheck_specs/libs.rb +10 -6
  2463. data/src/ruby_supportlib/phusion_passenger/platform_info/linux.rb +2 -1
  2464. data/src/ruby_supportlib/phusion_passenger/platform_info/openssl.rb +5 -0
  2465. data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +47 -28
  2466. data/src/ruby_supportlib/phusion_passenger/platform_info/pcre.rb +64 -0
  2467. data/src/ruby_supportlib/phusion_passenger/platform_info/ruby.rb +2 -2
  2468. data/src/ruby_supportlib/phusion_passenger/public_api.rb +3 -0
  2469. data/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb +12 -1
  2470. data/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb +18 -18
  2471. data/src/ruby_supportlib/phusion_passenger/request_handler.rb +11 -7
  2472. data/src/ruby_supportlib/phusion_passenger/ruby_core_enhancements.rb +5 -0
  2473. data/src/ruby_supportlib/phusion_passenger/standalone/config_options_list.rb +14 -1
  2474. data/src/ruby_supportlib/phusion_passenger/standalone/start_command/builtin_engine.rb +3 -2
  2475. data/src/ruby_supportlib/phusion_passenger/standalone/start_command/nginx_engine.rb +28 -17
  2476. data/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb +1 -1
  2477. data/src/ruby_supportlib/phusion_passenger/utils.rb +1 -0
  2478. data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/app.rb +1 -1
  2479. data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/gdb_controller.rb +4 -0
  2480. data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/lldb_controller.rb +5 -1
  2481. data/src/ruby_supportlib/phusion_passenger.rb +9 -9
  2482. metadata +863 -303
  2483. data/src/cxx_supportlib/ServerKit/http_parser.cpp +0 -2265
  2484. data/src/cxx_supportlib/ServerKit/http_parser.h +0 -330
  2485. data/src/cxx_supportlib/vendor-copy/websocketpp/changelog.md +0 -342
  2486. data/src/cxx_supportlib/vendor-copy/websocketpp/readme.md +0 -49
  2487. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/close.hpp +0 -342
  2488. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/asio.hpp +0 -131
  2489. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/functional.hpp +0 -105
  2490. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/md5.hpp +0 -448
  2491. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/memory.hpp +0 -89
  2492. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/thread.hpp +0 -84
  2493. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/config/core.hpp +0 -285
  2494. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/connection.hpp +0 -1651
  2495. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/endpoint.hpp +0 -700
  2496. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/extensions/permessage_deflate/disabled.hpp +0 -128
  2497. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/extensions/permessage_deflate/enabled.hpp +0 -752
  2498. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/frame.hpp +0 -861
  2499. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/http/impl/parser.hpp +0 -196
  2500. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/http/parser.hpp +0 -619
  2501. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/impl/connection_impl.hpp +0 -2372
  2502. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/impl/endpoint_impl.hpp +0 -269
  2503. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/processors/base.hpp +0 -299
  2504. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/processors/hybi13.hpp +0 -1056
  2505. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/roles/client_endpoint.hpp +0 -173
  2506. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/roles/server_endpoint.hpp +0 -190
  2507. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/sha1/sha1.hpp +0 -189
  2508. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/asio/connection.hpp +0 -1204
  2509. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/asio/endpoint.hpp +0 -1147
  2510. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/asio/security/none.hpp +0 -370
  2511. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/asio/security/tls.hpp +0 -484
  2512. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/base/endpoint.hpp +0 -77
  2513. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/debug/connection.hpp +0 -412
  2514. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/debug/endpoint.hpp +0 -140
  2515. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/iostream/connection.hpp +0 -714
  2516. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/iostream/endpoint.hpp +0 -222
  2517. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/stub/connection.hpp +0 -286
  2518. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/uri.hpp +0 -355
  2519. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/utilities.hpp +0 -182
  2520. data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/version.hpp +0 -61
  2521. data/src/cxx_supportlib/vendor-modified/boost/array.hpp +0 -457
  2522. data/src/cxx_supportlib/vendor-modified/boost/asio/datagram_socket_service.hpp +0 -468
  2523. data/src/cxx_supportlib/vendor-modified/boost/asio/deadline_timer_service.hpp +0 -175
  2524. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_arm_fenced_block.hpp +0 -93
  2525. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_hppa_fenced_block.hpp +0 -70
  2526. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_sync_fenced_block.hpp +0 -67
  2527. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_x86_fenced_block.hpp +0 -101
  2528. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_invoke_helpers.hpp +0 -57
  2529. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_serial_port_service.ipp +0 -154
  2530. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/macos_fenced_block.hpp +0 -64
  2531. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/old_win_sdk_compat.hpp +0 -216
  2532. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_serial_port_service.hpp +0 -238
  2533. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_fwd.hpp +0 -42
  2534. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/solaris_fenced_block.hpp +0 -64
  2535. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/variadic_templates.hpp +0 -119
  2536. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detached.hpp +0 -67
  2537. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/co_spawn.hpp +0 -878
  2538. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/detached.hpp +0 -93
  2539. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/redirect_error.hpp +0 -296
  2540. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/redirect_error.hpp +0 -69
  2541. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental.hpp +0 -22
  2542. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_alloc_hook.hpp +0 -83
  2543. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_invoke_hook.hpp +0 -87
  2544. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_type.hpp +0 -52
  2545. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/defer.hpp +0 -79
  2546. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/dispatch.hpp +0 -80
  2547. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/handler_alloc_hook.ipp +0 -54
  2548. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/post.hpp +0 -79
  2549. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.cpp +0 -25
  2550. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_service.hpp +0 -202
  2551. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/stream_descriptor_service.hpp +0 -281
  2552. data/src/cxx_supportlib/vendor-modified/boost/asio/raw_socket_service.hpp +0 -468
  2553. data/src/cxx_supportlib/vendor-modified/boost/asio/seq_packet_socket_service.hpp +0 -418
  2554. data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port_service.hpp +0 -251
  2555. data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set_service.hpp +0 -144
  2556. data/src/cxx_supportlib/vendor-modified/boost/asio/socket_acceptor_service.hpp +0 -374
  2557. data/src/cxx_supportlib/vendor-modified/boost/asio/stream_socket_service.hpp +0 -414
  2558. data/src/cxx_supportlib/vendor-modified/boost/asio/waitable_timer_service.hpp +0 -212
  2559. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_handle.hpp +0 -275
  2560. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_object_handle.hpp +0 -184
  2561. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_random_access_handle.hpp +0 -378
  2562. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_stream_handle.hpp +0 -361
  2563. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/object_handle.hpp +0 -383
  2564. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/object_handle_service.hpp +0 -185
  2565. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/overlapped_handle.hpp +0 -333
  2566. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/overlapped_ptr.hpp +0 -118
  2567. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/random_access_handle.hpp +0 -380
  2568. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/random_access_handle_service.hpp +0 -216
  2569. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/stream_handle.hpp +0 -364
  2570. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/stream_handle_service.hpp +0 -212
  2571. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/atomic_flag.hpp +0 -71
  2572. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/atomic_template.hpp +0 -1248
  2573. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_alpha.hpp +0 -34
  2574. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_arm.hpp +0 -39
  2575. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_ppc.hpp +0 -37
  2576. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sparc.hpp +0 -34
  2577. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_x86.hpp +0 -40
  2578. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_msvc_arm.hpp +0 -34
  2579. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_msvc_x86.hpp +0 -55
  2580. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/hwcaps_gcc_arm.hpp +0 -67
  2581. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/hwcaps_gcc_ppc.hpp +0 -42
  2582. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/hwcaps_gcc_x86.hpp +0 -58
  2583. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/integral_extend.hpp +0 -105
  2584. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/lockpool.hpp +0 -51
  2585. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/operations.hpp +0 -24
  2586. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/operations_fwd.hpp +0 -35
  2587. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/operations_lockfree.hpp +0 -30
  2588. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_cas_based.hpp +0 -107
  2589. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_emulated.hpp +0 -162
  2590. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_extending_cas_based.hpp +0 -69
  2591. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_alpha.hpp +0 -876
  2592. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_arm.hpp +0 -1397
  2593. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_atomic.hpp +0 -392
  2594. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_ppc.hpp +0 -1232
  2595. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_sparc.hpp +0 -240
  2596. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_sync.hpp +0 -240
  2597. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_x86.hpp +0 -563
  2598. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_gcc_x86_dcas.hpp +0 -556
  2599. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_linux_arm.hpp +0 -180
  2600. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_msvc_arm.hpp +0 -824
  2601. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/ops_msvc_x86.hpp +0 -908
  2602. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/storage_type.hpp +0 -207
  2603. data/src/cxx_supportlib/vendor-modified/boost/bind/bind_cc.hpp +0 -117
  2604. data/src/cxx_supportlib/vendor-modified/boost/bind/bind_mf2_cc.hpp +0 -228
  2605. data/src/cxx_supportlib/vendor-modified/boost/bind/bind_mf_cc.hpp +0 -441
  2606. data/src/cxx_supportlib/vendor-modified/boost/bind/bind_template.hpp +0 -345
  2607. data/src/cxx_supportlib/vendor-modified/boost/bind/mem_fn_cc.hpp +0 -103
  2608. data/src/cxx_supportlib/vendor-modified/boost/bind/mem_fn_template.hpp +0 -1047
  2609. data/src/cxx_supportlib/vendor-modified/boost/bind/mem_fn_vw.hpp +0 -130
  2610. data/src/cxx_supportlib/vendor-modified/boost/bind/storage.hpp +0 -475
  2611. data/src/cxx_supportlib/vendor-modified/boost/bind.hpp +0 -41
  2612. data/src/cxx_supportlib/vendor-modified/boost/checked_delete.hpp +0 -17
  2613. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/allocators.hpp +0 -89
  2614. data/src/cxx_supportlib/vendor-modified/boost/config/platform/cygwin.hpp +0 -68
  2615. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/float_functions.hpp +0 -336
  2616. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_float.hpp +0 -271
  2617. data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/limits.hpp +0 -62
  2618. data/src/cxx_supportlib/vendor-modified/boost/container_hash/extensions.hpp +0 -414
  2619. data/src/cxx_supportlib/vendor-modified/boost/detail/atomic_count.hpp +0 -21
  2620. data/src/cxx_supportlib/vendor-modified/boost/detail/container_fwd.hpp +0 -157
  2621. data/src/cxx_supportlib/vendor-modified/boost/detail/endian.hpp +0 -11
  2622. data/src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp +0 -39
  2623. data/src/cxx_supportlib/vendor-modified/boost/detail/sp_typeinfo.hpp +0 -36
  2624. data/src/cxx_supportlib/vendor-modified/boost/function/detail/function_iterate.hpp +0 -16
  2625. data/src/cxx_supportlib/vendor-modified/boost/function/detail/gen_maybe_include.pl +0 -39
  2626. data/src/cxx_supportlib/vendor-modified/boost/function/detail/maybe_include.hpp +0 -369
  2627. data/src/cxx_supportlib/vendor-modified/boost/function/detail/prologue.hpp +0 -26
  2628. data/src/cxx_supportlib/vendor-modified/boost/function/gen_function_N.pl +0 -26
  2629. data/src/cxx_supportlib/vendor-modified/boost/functional/hash_fwd.hpp +0 -6
  2630. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/c_regex_traits.cpp +0 -206
  2631. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/cpp_regex_traits.cpp +0 -117
  2632. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/cregex.cpp +0 -660
  2633. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/instances.cpp +0 -32
  2634. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/regex_raw_buffer.cpp +0 -72
  2635. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/regex_traits_defaults.cpp +0 -692
  2636. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/wc_regex_traits.cpp +0 -314
  2637. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/winstances.cpp +0 -35
  2638. data/src/cxx_supportlib/vendor-modified/boost/math/policies/policy.hpp +0 -1040
  2639. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/detail/fp_traits.hpp +0 -581
  2640. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/detail/round_fwd.hpp +0 -93
  2641. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/fpclassify.hpp +0 -640
  2642. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/math_fwd.hpp +0 -1678
  2643. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/sign.hpp +0 -194
  2644. data/src/cxx_supportlib/vendor-modified/boost/math/tools/config.hpp +0 -469
  2645. data/src/cxx_supportlib/vendor-modified/boost/math/tools/promotion.hpp +0 -182
  2646. data/src/cxx_supportlib/vendor-modified/boost/math/tools/real_cast.hpp +0 -31
  2647. data/src/cxx_supportlib/vendor-modified/boost/math/tools/user.hpp +0 -105
  2648. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/overloads.hpp +0 -88
  2649. data/src/cxx_supportlib/vendor-modified/boost/pointer_to_other.hpp +0 -55
  2650. data/src/cxx_supportlib/vendor-modified/boost/predef/detail/endian_compat.h +0 -28
  2651. data/src/cxx_supportlib/vendor-modified/boost/predef/os/android.h +0 -45
  2652. data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/mpl/abs.hpp +0 -89
  2653. data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/mpl/gcd.hpp +0 -124
  2654. data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/mpl/lcm.hpp +0 -126
  2655. data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/mpl/sign.hpp +0 -89
  2656. data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/overflow_helpers.hpp +0 -367
  2657. data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/ratio_io.hpp +0 -1342
  2658. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/abs.hpp +0 -30
  2659. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/arithmetic.hpp +0 -22
  2660. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/comparison.hpp +0 -19
  2661. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/divides.hpp +0 -30
  2662. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/equal_to.hpp +0 -30
  2663. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/gcd.hpp +0 -30
  2664. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/greater.hpp +0 -30
  2665. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/greater_equal.hpp +0 -30
  2666. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/lcm.hpp +0 -30
  2667. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/less.hpp +0 -30
  2668. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/less_equal.hpp +0 -30
  2669. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/minus.hpp +0 -30
  2670. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/negate.hpp +0 -30
  2671. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/not_equal_to.hpp +0 -30
  2672. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp +0 -31
  2673. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/plus.hpp +0 -30
  2674. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/rational_c_tag.hpp +0 -25
  2675. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/rational_constant.hpp +0 -15
  2676. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/sign.hpp +0 -30
  2677. data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/times.hpp +0 -30
  2678. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/fileiter.hpp +0 -452
  2679. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/instances.hpp +0 -236
  2680. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count_solaris.hpp +0 -59
  2681. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_clang.hpp +0 -151
  2682. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_cw_x86.hpp +0 -161
  2683. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_solaris.hpp +0 -116
  2684. data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_has_sync.hpp +0 -69
  2685. data/src/cxx_supportlib/vendor-modified/boost/swap.hpp +0 -17
  2686. data/src/cxx_supportlib/vendor-modified/boost/system/detail/std_interoperability.hpp +0 -141
  2687. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_posix.hpp +0 -132
  2688. data/src/cxx_supportlib/vendor-modified/boost/type_index/stl_type_index.hpp +0 -278
  2689. data/src/cxx_supportlib/vendor-modified/boost/type_index/type_index_facade.hpp +0 -297
  2690. data/src/cxx_supportlib/vendor-modified/boost/type_index.hpp +0 -265
  2691. data/src/cxx_supportlib/vendor-modified/boost/typeof/dmc/typeof_impl.hpp +0 -100
  2692. data/src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode.hpp +0 -58
  2693. data/src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp +0 -34
  2694. data/src/cxx_supportlib/vendor-modified/boost/typeof/int_encoding.hpp +0 -117
  2695. data/src/cxx_supportlib/vendor-modified/boost/typeof/integral_template_param.hpp +0 -80
  2696. data/src/cxx_supportlib/vendor-modified/boost/typeof/message.hpp +0 -8
  2697. data/src/cxx_supportlib/vendor-modified/boost/typeof/modifiers.hpp +0 -121
  2698. data/src/cxx_supportlib/vendor-modified/boost/typeof/native.hpp +0 -60
  2699. data/src/cxx_supportlib/vendor-modified/boost/typeof/pointers_data_members.hpp +0 -38
  2700. data/src/cxx_supportlib/vendor-modified/boost/typeof/register_functions.hpp +0 -50
  2701. data/src/cxx_supportlib/vendor-modified/boost/typeof/register_functions_iterate.hpp +0 -135
  2702. data/src/cxx_supportlib/vendor-modified/boost/typeof/register_fundamental.hpp +0 -61
  2703. data/src/cxx_supportlib/vendor-modified/boost/typeof/register_mem_functions.hpp +0 -32
  2704. data/src/cxx_supportlib/vendor-modified/boost/typeof/template_encoding.hpp +0 -160
  2705. data/src/cxx_supportlib/vendor-modified/boost/typeof/template_template_param.hpp +0 -149
  2706. data/src/cxx_supportlib/vendor-modified/boost/typeof/type_encoding.hpp +0 -27
  2707. data/src/cxx_supportlib/vendor-modified/boost/typeof/type_template_param.hpp +0 -37
  2708. data/src/cxx_supportlib/vendor-modified/boost/typeof/typeof_impl.hpp +0 -186
  2709. data/src/cxx_supportlib/vendor-modified/boost/typeof/unsupported.hpp +0 -29
  2710. data/src/cxx_supportlib/vendor-modified/boost/typeof/vector.hpp +0 -166
  2711. data/src/cxx_supportlib/vendor-modified/boost/typeof/vector100.hpp +0 -321
  2712. data/src/cxx_supportlib/vendor-modified/boost/typeof/vector150.hpp +0 -471
  2713. data/src/cxx_supportlib/vendor-modified/boost/typeof/vector200.hpp +0 -621
  2714. data/src/cxx_supportlib/vendor-modified/boost/typeof/vector50.hpp +0 -171
  2715. data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/fwd.hpp +0 -63
  2716. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/daily-rotate-file.js +0 -601
  2717. data/src/nodejs_supportlib/vendor-copy/winston/lib/winston/transports/webhook.js +0 -146
  2718. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/pkginfo/LICENSE +0 -19
  2719. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/pkginfo/lib/pkginfo.js +0 -136
  2720. data/src/nodejs_supportlib/vendor-copy/winston/node_modules/pkginfo/package.json +0 -56
  2721. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/COPYING +0 -0
  2722. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/base64/base64.hpp +0 -0
  2723. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/client.hpp +0 -0
  2724. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/asio_ssl.hpp +0 -0
  2725. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/chrono.hpp +0 -0
  2726. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/connection_hdl.hpp +0 -0
  2727. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/cpp11.hpp +0 -0
  2728. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/network.hpp +0 -0
  2729. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/platforms.hpp +0 -0
  2730. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/random.hpp +0 -0
  2731. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/regex.hpp +0 -0
  2732. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/stdint.hpp +0 -0
  2733. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/system_error.hpp +0 -0
  2734. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/time.hpp +0 -0
  2735. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/common/type_traits.hpp +0 -0
  2736. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/concurrency/basic.hpp +0 -0
  2737. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/concurrency/none.hpp +0 -0
  2738. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio.hpp +0 -0
  2739. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio_client.hpp +0 -0
  2740. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio_no_tls.hpp +0 -0
  2741. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/asio_no_tls_client.hpp +0 -0
  2742. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/boost_config.hpp +0 -0
  2743. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/core_client.hpp +0 -0
  2744. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/debug.hpp +0 -0
  2745. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/debug_asio.hpp +0 -0
  2746. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/debug_asio_no_tls.hpp +0 -0
  2747. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/minimal_client.hpp +0 -0
  2748. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/config/minimal_server.hpp +0 -0
  2749. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/connection_base.hpp +0 -0
  2750. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/endpoint_base.hpp +0 -0
  2751. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/error.hpp +0 -0
  2752. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/extensions/extension.hpp +0 -0
  2753. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/constants.hpp +0 -0
  2754. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/impl/request.hpp +0 -0
  2755. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/impl/response.hpp +0 -0
  2756. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/request.hpp +0 -0
  2757. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/http/response.hpp +0 -0
  2758. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/impl/utilities_impl.hpp +0 -0
  2759. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/basic.hpp +0 -0
  2760. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/levels.hpp +0 -0
  2761. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/stub.hpp +0 -0
  2762. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/logger/syslog.hpp +0 -0
  2763. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/message_buffer/alloc.hpp +0 -0
  2764. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/message_buffer/message.hpp +0 -0
  2765. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/message_buffer/pool.hpp +0 -0
  2766. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi00.hpp +0 -0
  2767. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi07.hpp +0 -0
  2768. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/hybi08.hpp +0 -0
  2769. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/processors/processor.hpp +0 -0
  2770. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/random/none.hpp +0 -0
  2771. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/random/random_device.hpp +0 -0
  2772. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/server.hpp +0 -0
  2773. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/base.hpp +0 -0
  2774. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/asio/security/base.hpp +0 -0
  2775. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/base/connection.hpp +0 -0
  2776. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/debug/base.hpp +0 -0
  2777. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/iostream/base.hpp +0 -0
  2778. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/stub/base.hpp +0 -0
  2779. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/transport/stub/endpoint.hpp +0 -0
  2780. /data/src/cxx_supportlib/{vendor-copy → vendor-modified}/websocketpp/websocketpp/utf8_validator.hpp +0 -0
@@ -62,7 +62,6 @@
62
62
  #include <boost/move/algo/predicate.hpp>
63
63
  #include <boost/move/algo/detail/set_difference.hpp>
64
64
  // other
65
- #include <boost/core/no_exceptions_support.hpp>
66
65
  #include <boost/assert.hpp>
67
66
  #include <boost/cstdint.hpp>
68
67
 
@@ -82,8 +81,21 @@ class vec_iterator
82
81
  {
83
82
  public:
84
83
  typedef std::random_access_iterator_tag iterator_category;
84
+ #ifdef BOOST_MOVE_CONTIGUOUS_ITERATOR_TAG
85
+ typedef std::contiguous_iterator_tag iterator_concept;
86
+ #endif
85
87
  typedef typename boost::intrusive::pointer_traits<Pointer>::element_type value_type;
88
+
89
+ //Defining element_type to make libstdc++'s std::pointer_traits well-formed leads to ambiguity
90
+ //due to LWG3446. So we need to specialize std::pointer_traits. See
91
+ //https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96416 for details. Many thanks to Jonathan Wakely
92
+ //for explaining the issue.
93
+ #ifndef BOOST_GNU_STDLIB
94
+ //Define element_
95
+ typedef typename boost::intrusive::pointer_traits<Pointer>::element_type element_type;
96
+ #endif
86
97
  typedef typename boost::intrusive::pointer_traits<Pointer>::difference_type difference_type;
98
+ typedef typename boost::intrusive::pointer_traits<Pointer>::size_type size_type;
87
99
  typedef typename dtl::if_c
88
100
  < IsConst
89
101
  , typename boost::intrusive::pointer_traits<Pointer>::template
@@ -97,14 +109,26 @@ class vec_iterator
97
109
  private:
98
110
  Pointer m_ptr;
99
111
 
112
+ class nat
113
+ {
114
+ public:
115
+ Pointer get_ptr() const
116
+ { return Pointer(); }
117
+ };
118
+ typedef typename dtl::if_c< IsConst
119
+ , vec_iterator<Pointer, false>
120
+ , nat>::type nonconst_iterator;
121
+
100
122
  public:
101
- BOOST_CONTAINER_FORCEINLINE const Pointer &get_ptr() const BOOST_NOEXCEPT_OR_NOTHROW
123
+ inline
124
+ const Pointer &get_ptr() const BOOST_NOEXCEPT_OR_NOTHROW
102
125
  { return m_ptr; }
103
126
 
104
- BOOST_CONTAINER_FORCEINLINE Pointer &get_ptr() BOOST_NOEXCEPT_OR_NOTHROW
127
+ inline
128
+ Pointer &get_ptr() BOOST_NOEXCEPT_OR_NOTHROW
105
129
  { return m_ptr; }
106
130
 
107
- BOOST_CONTAINER_FORCEINLINE explicit vec_iterator(Pointer ptr) BOOST_NOEXCEPT_OR_NOTHROW
131
+ inline explicit vec_iterator(Pointer ptr) BOOST_NOEXCEPT_OR_NOTHROW
108
132
  : m_ptr(ptr)
109
133
  {}
110
134
  #endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
@@ -112,73 +136,94 @@ class vec_iterator
112
136
  public:
113
137
 
114
138
  //Constructors
115
- BOOST_CONTAINER_FORCEINLINE vec_iterator() BOOST_NOEXCEPT_OR_NOTHROW
139
+ inline vec_iterator() BOOST_NOEXCEPT_OR_NOTHROW
116
140
  : m_ptr() //Value initialization to achieve "null iterators" (N3644)
117
141
  {}
118
142
 
119
- BOOST_CONTAINER_FORCEINLINE vec_iterator(vec_iterator<Pointer, false> const& other) BOOST_NOEXCEPT_OR_NOTHROW
143
+ inline vec_iterator(const vec_iterator& other) BOOST_NOEXCEPT_OR_NOTHROW
120
144
  : m_ptr(other.get_ptr())
121
145
  {}
122
146
 
147
+ inline vec_iterator(const nonconst_iterator &other) BOOST_NOEXCEPT_OR_NOTHROW
148
+ : m_ptr(other.get_ptr())
149
+ {}
150
+
151
+ inline vec_iterator & operator=(const vec_iterator& other) BOOST_NOEXCEPT_OR_NOTHROW
152
+ { m_ptr = other.get_ptr(); return *this; }
153
+
123
154
  //Pointer like operators
124
- BOOST_CONTAINER_FORCEINLINE reference operator*() const BOOST_NOEXCEPT_OR_NOTHROW
155
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
156
+ reference operator*() const BOOST_NOEXCEPT_OR_NOTHROW
125
157
  { BOOST_ASSERT(!!m_ptr); return *m_ptr; }
126
158
 
127
- BOOST_CONTAINER_FORCEINLINE pointer operator->() const BOOST_NOEXCEPT_OR_NOTHROW
159
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
160
+ pointer operator->() const BOOST_NOEXCEPT_OR_NOTHROW
128
161
  { return m_ptr; }
129
162
 
130
- BOOST_CONTAINER_FORCEINLINE reference operator[](difference_type off) const BOOST_NOEXCEPT_OR_NOTHROW
163
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
164
+ reference operator[](difference_type off) const BOOST_NOEXCEPT_OR_NOTHROW
131
165
  { BOOST_ASSERT(!!m_ptr); return m_ptr[off]; }
132
166
 
133
167
  //Increment / Decrement
134
- BOOST_CONTAINER_FORCEINLINE vec_iterator& operator++() BOOST_NOEXCEPT_OR_NOTHROW
168
+ inline vec_iterator& operator++() BOOST_NOEXCEPT_OR_NOTHROW
135
169
  { BOOST_ASSERT(!!m_ptr); ++m_ptr; return *this; }
136
170
 
137
- BOOST_CONTAINER_FORCEINLINE vec_iterator operator++(int) BOOST_NOEXCEPT_OR_NOTHROW
171
+ inline vec_iterator operator++(int) BOOST_NOEXCEPT_OR_NOTHROW
138
172
  { BOOST_ASSERT(!!m_ptr); return vec_iterator(m_ptr++); }
139
173
 
140
- BOOST_CONTAINER_FORCEINLINE vec_iterator& operator--() BOOST_NOEXCEPT_OR_NOTHROW
174
+ inline vec_iterator& operator--() BOOST_NOEXCEPT_OR_NOTHROW
141
175
  { BOOST_ASSERT(!!m_ptr); --m_ptr; return *this; }
142
176
 
143
- BOOST_CONTAINER_FORCEINLINE vec_iterator operator--(int) BOOST_NOEXCEPT_OR_NOTHROW
177
+ inline vec_iterator operator--(int) BOOST_NOEXCEPT_OR_NOTHROW
144
178
  { BOOST_ASSERT(!!m_ptr); return vec_iterator(m_ptr--); }
145
179
 
146
180
  //Arithmetic
147
- BOOST_CONTAINER_FORCEINLINE vec_iterator& operator+=(difference_type off) BOOST_NOEXCEPT_OR_NOTHROW
181
+ inline vec_iterator& operator+=(difference_type off) BOOST_NOEXCEPT_OR_NOTHROW
148
182
  { BOOST_ASSERT(m_ptr || !off); m_ptr += off; return *this; }
149
183
 
150
- BOOST_CONTAINER_FORCEINLINE vec_iterator& operator-=(difference_type off) BOOST_NOEXCEPT_OR_NOTHROW
184
+ inline vec_iterator& operator-=(difference_type off) BOOST_NOEXCEPT_OR_NOTHROW
151
185
  { BOOST_ASSERT(m_ptr || !off); m_ptr -= off; return *this; }
152
186
 
153
- BOOST_CONTAINER_FORCEINLINE friend vec_iterator operator+(const vec_iterator &x, difference_type off) BOOST_NOEXCEPT_OR_NOTHROW
187
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
188
+ friend vec_iterator operator+(const vec_iterator &x, difference_type off) BOOST_NOEXCEPT_OR_NOTHROW
154
189
  { BOOST_ASSERT(x.m_ptr || !off); return vec_iterator(x.m_ptr+off); }
155
190
 
156
- BOOST_CONTAINER_FORCEINLINE friend vec_iterator operator+(difference_type off, vec_iterator right) BOOST_NOEXCEPT_OR_NOTHROW
191
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
192
+ friend vec_iterator operator+(difference_type off, vec_iterator right) BOOST_NOEXCEPT_OR_NOTHROW
157
193
  { BOOST_ASSERT(right.m_ptr || !off); right.m_ptr += off; return right; }
158
194
 
159
- BOOST_CONTAINER_FORCEINLINE friend vec_iterator operator-(vec_iterator left, difference_type off) BOOST_NOEXCEPT_OR_NOTHROW
195
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
196
+ friend vec_iterator operator-(vec_iterator left, difference_type off) BOOST_NOEXCEPT_OR_NOTHROW
160
197
  { BOOST_ASSERT(left.m_ptr || !off); left.m_ptr -= off; return left; }
161
198
 
162
- BOOST_CONTAINER_FORCEINLINE friend difference_type operator-(const vec_iterator &left, const vec_iterator& right) BOOST_NOEXCEPT_OR_NOTHROW
199
+ //Difference
200
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
201
+ friend difference_type operator-(const vec_iterator &left, const vec_iterator& right) BOOST_NOEXCEPT_OR_NOTHROW
163
202
  { return left.m_ptr - right.m_ptr; }
164
203
 
165
204
  //Comparison operators
166
- BOOST_CONTAINER_FORCEINLINE friend bool operator== (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
205
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
206
+ friend bool operator== (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
167
207
  { return l.m_ptr == r.m_ptr; }
168
208
 
169
- BOOST_CONTAINER_FORCEINLINE friend bool operator!= (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
209
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
210
+ friend bool operator!= (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
170
211
  { return l.m_ptr != r.m_ptr; }
171
212
 
172
- BOOST_CONTAINER_FORCEINLINE friend bool operator< (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
213
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
214
+ friend bool operator< (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
173
215
  { return l.m_ptr < r.m_ptr; }
174
216
 
175
- BOOST_CONTAINER_FORCEINLINE friend bool operator<= (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
217
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
218
+ friend bool operator<= (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
176
219
  { return l.m_ptr <= r.m_ptr; }
177
220
 
178
- BOOST_CONTAINER_FORCEINLINE friend bool operator> (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
221
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
222
+ friend bool operator> (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
179
223
  { return l.m_ptr > r.m_ptr; }
180
224
 
181
- BOOST_CONTAINER_FORCEINLINE friend bool operator>= (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
225
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
226
+ friend bool operator>= (const vec_iterator& l, const vec_iterator& r) BOOST_NOEXCEPT_OR_NOTHROW
182
227
  { return l.m_ptr >= r.m_ptr; }
183
228
  };
184
229
 
@@ -188,7 +233,7 @@ struct vector_insert_ordered_cursor
188
233
  typedef typename iterator_traits<BiDirPosConstIt>::value_type size_type;
189
234
  typedef typename iterator_traits<BiDirValueIt>::reference reference;
190
235
 
191
- BOOST_CONTAINER_FORCEINLINE vector_insert_ordered_cursor(BiDirPosConstIt posit, BiDirValueIt valueit)
236
+ inline vector_insert_ordered_cursor(BiDirPosConstIt posit, BiDirValueIt valueit)
192
237
  : last_position_it(posit), last_value_it(valueit)
193
238
  {}
194
239
 
@@ -202,41 +247,38 @@ struct vector_insert_ordered_cursor
202
247
  }
203
248
  }
204
249
 
205
- BOOST_CONTAINER_FORCEINLINE size_type get_pos() const
250
+ inline size_type get_pos() const
206
251
  { return *last_position_it; }
207
252
 
208
- BOOST_CONTAINER_FORCEINLINE reference get_val()
253
+ inline reference get_val()
209
254
  { return *last_value_it; }
210
255
 
211
256
  BiDirPosConstIt last_position_it;
212
257
  BiDirValueIt last_value_it;
213
258
  };
214
259
 
215
- struct initial_capacity_t{};
216
-
217
260
  template<class Pointer, bool IsConst>
218
- BOOST_CONTAINER_FORCEINLINE const Pointer &vector_iterator_get_ptr(const vec_iterator<Pointer, IsConst> &it) BOOST_NOEXCEPT_OR_NOTHROW
261
+ inline const Pointer &vector_iterator_get_ptr(const vec_iterator<Pointer, IsConst> &it) BOOST_NOEXCEPT_OR_NOTHROW
219
262
  { return it.get_ptr(); }
220
263
 
221
264
  template<class Pointer, bool IsConst>
222
- BOOST_CONTAINER_FORCEINLINE Pointer &get_ptr(vec_iterator<Pointer, IsConst> &it) BOOST_NOEXCEPT_OR_NOTHROW
265
+ inline Pointer &get_ptr(vec_iterator<Pointer, IsConst> &it) BOOST_NOEXCEPT_OR_NOTHROW
223
266
  { return it.get_ptr(); }
224
267
 
268
+ struct initial_capacity_t {};
269
+
225
270
  struct vector_uninitialized_size_t {};
226
271
  static const vector_uninitialized_size_t vector_uninitialized_size = vector_uninitialized_size_t();
227
272
 
273
+ struct maybe_initial_capacity_t {};
274
+
228
275
  template <class T>
229
276
  struct vector_value_traits_base
230
277
  {
231
278
  static const bool trivial_dctr = dtl::is_trivially_destructible<T>::value;
232
279
  static const bool trivial_dctr_after_move = has_trivial_destructor_after_move<T>::value;
233
- static const bool trivial_copy = dtl::is_trivially_copy_constructible<T>::value;
234
- static const bool nothrow_copy = dtl::is_nothrow_copy_constructible<T>::value || trivial_copy;
235
- static const bool trivial_assign = dtl::is_trivially_copy_assignable<T>::value;
236
- static const bool nothrow_assign = dtl::is_nothrow_copy_assignable<T>::value || trivial_assign;
237
280
  };
238
281
 
239
-
240
282
  template <class Allocator>
241
283
  struct vector_value_traits
242
284
  : public vector_value_traits_base<typename Allocator::value_type>
@@ -265,22 +307,62 @@ struct vector_alloc_holder
265
307
  BOOST_MOVABLE_BUT_NOT_COPYABLE(vector_alloc_holder)
266
308
 
267
309
  public:
268
- typedef Allocator allocator_type;
269
- typedef StoredSizeType stored_size_type;
270
- typedef boost::container::allocator_traits<Allocator> allocator_traits_type;
271
- typedef typename allocator_traits_type::pointer pointer;
272
- typedef typename allocator_traits_type::size_type size_type;
273
- typedef typename allocator_traits_type::value_type value_type;
310
+ typedef Allocator allocator_type;
311
+ typedef StoredSizeType stored_size_type;
312
+ typedef boost::container::allocator_traits<allocator_type> allocator_traits_type;
313
+ typedef typename allocator_traits_type::pointer pointer;
314
+ typedef typename allocator_traits_type::size_type size_type;
315
+ typedef typename allocator_traits_type::value_type value_type;
316
+
274
317
 
275
- static bool is_propagable_from(const allocator_type &from_alloc, pointer p, const allocator_type &to_alloc, bool const propagate_allocator)
318
+ private:
319
+
320
+ template<class SizeType>
321
+ void do_initial_capacity(SizeType initial_capacity)
322
+ {
323
+ if (BOOST_UNLIKELY(initial_capacity > size_type(-1))) {
324
+ boost::container::throw_length_error("get_next_capacity, allocator's max size reached");
325
+ }
326
+ else if (initial_capacity) {
327
+ pointer reuse = pointer();
328
+ size_type final_cap = static_cast<size_type>(initial_capacity);
329
+ m_start = this->allocation_command(allocate_new, final_cap, final_cap, reuse);
330
+ this->set_stored_capacity(final_cap);
331
+ }
332
+ }
333
+
334
+ template<class SizeType>
335
+ void do_maybe_initial_capacity(pointer p, SizeType initial_capacity)
336
+ {
337
+ if (BOOST_UNLIKELY(initial_capacity > size_type(-1))) {
338
+ boost::container::throw_length_error("get_next_capacity, allocator's max size reached");
339
+ }
340
+ else if (p) {
341
+ m_start = p;
342
+ }
343
+ else {
344
+ BOOST_ASSERT(initial_capacity > 0);
345
+ pointer reuse = pointer();
346
+ size_type final_cap = static_cast<size_type>(initial_capacity);
347
+ m_start = this->allocation_command(allocate_new, final_cap, final_cap, reuse);
348
+ this->set_stored_capacity(final_cap);
349
+ }
350
+ }
351
+
352
+ public:
353
+
354
+ inline
355
+ static bool is_propagable_from(const allocator_type &from_alloc, pointer p, const allocator_type &to_alloc, bool const propagate_allocator)
276
356
  {
277
357
  (void)propagate_allocator; (void)p; (void)to_alloc; (void)from_alloc;
278
358
  const bool all_storage_propagable = !allocator_traits_type::is_partially_propagable::value ||
279
359
  !allocator_traits_type::storage_is_unpropagable(from_alloc, p);
280
- return all_storage_propagable && (propagate_allocator || allocator_traits_type::equal(from_alloc, to_alloc));
360
+ return all_storage_propagable &&
361
+ (propagate_allocator || allocator_traits_type::is_always_equal::value || allocator_traits_type::equal(from_alloc, to_alloc));
281
362
  }
282
363
 
283
- static bool are_swap_propagable(const allocator_type &l_a, pointer l_p, const allocator_type &r_a, pointer r_p, bool const propagate_allocator)
364
+ inline
365
+ static bool are_swap_propagable(const allocator_type &l_a, pointer l_p, const allocator_type &r_a, pointer r_p, bool const propagate_allocator)
284
366
  {
285
367
  (void)propagate_allocator; (void)l_p; (void)r_p; (void)l_a; (void)r_a;
286
368
  const bool all_storage_propagable = !allocator_traits_type::is_partially_propagable::value ||
@@ -290,91 +372,38 @@ struct vector_alloc_holder
290
372
 
291
373
  //Constructor, does not throw
292
374
  vector_alloc_holder()
293
- BOOST_NOEXCEPT_IF(dtl::is_nothrow_default_constructible<Allocator>::value)
294
- : Allocator(), m_start(), m_size(), m_capacity()
375
+ BOOST_NOEXCEPT_IF(dtl::is_nothrow_default_constructible<allocator_type>::value)
376
+ : allocator_type(), m_start(), m_size(), m_capacity()
295
377
  {}
296
378
 
297
379
  //Constructor, does not throw
298
380
  template<class AllocConvertible>
299
381
  explicit vector_alloc_holder(BOOST_FWD_REF(AllocConvertible) a) BOOST_NOEXCEPT_OR_NOTHROW
300
- : Allocator(boost::forward<AllocConvertible>(a)), m_start(), m_size(), m_capacity()
382
+ : allocator_type(boost::forward<AllocConvertible>(a)), m_start(), m_size(), m_capacity()
301
383
  {}
302
384
 
303
- //Constructor, does not throw
304
- template<class AllocConvertible>
305
- vector_alloc_holder(vector_uninitialized_size_t, BOOST_FWD_REF(AllocConvertible) a, size_type initial_size)
306
- : Allocator(boost::forward<AllocConvertible>(a))
385
+
386
+ template<class AllocConvertible, class SizeType>
387
+ vector_alloc_holder(vector_uninitialized_size_t, BOOST_FWD_REF(AllocConvertible) a, SizeType initial_size)
388
+ : allocator_type(boost::forward<AllocConvertible>(a))
307
389
  , m_start()
308
390
  //Size is initialized here so vector should only call uninitialized_xxx after this
309
391
  , m_size(static_cast<stored_size_type>(initial_size))
310
392
  , m_capacity()
311
- {
312
- if(initial_size){
313
- pointer reuse = pointer();
314
- size_type final_cap = initial_size;
315
- m_start = this->allocation_command(allocate_new, initial_size, final_cap, reuse);
316
- m_capacity = static_cast<stored_size_type>(final_cap);
317
- }
318
- }
393
+ { this->do_initial_capacity(initial_size); }
319
394
 
320
- //Constructor, does not throw
321
- vector_alloc_holder(vector_uninitialized_size_t, size_type initial_size)
322
- : Allocator()
395
+ template<class SizeType>
396
+ vector_alloc_holder(vector_uninitialized_size_t, SizeType initial_size)
397
+ : allocator_type()
323
398
  , m_start()
324
399
  //Size is initialized here so vector should only call uninitialized_xxx after this
325
400
  , m_size(static_cast<stored_size_type>(initial_size))
326
401
  , m_capacity()
327
- {
328
- if(initial_size){
329
- pointer reuse = pointer();
330
- size_type final_cap = initial_size;
331
- m_start = this->allocation_command(allocate_new, initial_size, final_cap, reuse);
332
- m_capacity = static_cast<stored_size_type>(final_cap);
333
- }
334
- }
335
-
336
- vector_alloc_holder(BOOST_RV_REF(vector_alloc_holder) holder) BOOST_NOEXCEPT_OR_NOTHROW
337
- : Allocator(BOOST_MOVE_BASE(Allocator, holder))
338
- , m_start(holder.m_start)
339
- , m_size(holder.m_size)
340
- , m_capacity(holder.m_capacity)
341
- {
342
- holder.m_start = pointer();
343
- holder.m_size = holder.m_capacity = 0;
344
- }
345
-
346
- vector_alloc_holder(initial_capacity_t, pointer p, size_type capacity, BOOST_RV_REF(vector_alloc_holder) holder)
347
- : Allocator(BOOST_MOVE_BASE(Allocator, holder))
348
- , m_start(p)
349
- , m_size(holder.m_size)
350
- , m_capacity(static_cast<stored_size_type>(capacity))
351
- {
352
- allocator_type &this_alloc = this->alloc();
353
- allocator_type &x_alloc = holder.alloc();
354
- if(this->is_propagable_from(x_alloc, holder.start(), this_alloc, true)){
355
- if(this->m_capacity){
356
- this->deallocate(this->m_start, this->m_capacity);
357
- }
358
- m_start = holder.m_start;
359
- m_capacity = holder.m_capacity;
360
- holder.m_start = pointer();
361
- holder.m_capacity = holder.m_size = 0;
362
- }
363
- else if(this->m_capacity < holder.m_size){
364
- size_type const n = holder.m_size;
365
- pointer reuse = pointer();
366
- size_type final_cap = n;
367
- m_start = this->allocation_command(allocate_new, n, final_cap, reuse);
368
- m_capacity = static_cast<stored_size_type>(final_cap);
369
- #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
370
- this->num_alloc += n != 0;
371
- #endif
372
- }
373
- }
402
+ { this->do_initial_capacity(initial_size); }
374
403
 
375
404
  vector_alloc_holder(initial_capacity_t, pointer p, size_type n)
376
- BOOST_NOEXCEPT_IF(dtl::is_nothrow_default_constructible<Allocator>::value)
377
- : Allocator()
405
+ BOOST_NOEXCEPT_IF(dtl::is_nothrow_default_constructible<allocator_type>::value)
406
+ : allocator_type()
378
407
  , m_start(p)
379
408
  , m_size()
380
409
  //n is guaranteed to fit into stored_size_type
@@ -383,37 +412,77 @@ struct vector_alloc_holder
383
412
 
384
413
  template<class AllocFwd>
385
414
  vector_alloc_holder(initial_capacity_t, pointer p, size_type n, BOOST_FWD_REF(AllocFwd) a)
386
- : Allocator(::boost::forward<AllocFwd>(a))
415
+ : allocator_type(::boost::forward<AllocFwd>(a))
387
416
  , m_start(p)
388
417
  , m_size()
389
418
  , m_capacity(n)
390
419
  {}
391
420
 
392
- BOOST_CONTAINER_FORCEINLINE ~vector_alloc_holder() BOOST_NOEXCEPT_OR_NOTHROW
421
+ template<class AllocConvertible, class SizeType>
422
+ vector_alloc_holder(maybe_initial_capacity_t, pointer p, SizeType initial_capacity, BOOST_FWD_REF(AllocConvertible) a)
423
+ : allocator_type(boost::forward<AllocConvertible>(a))
424
+ //, m_start()
425
+ //Size is initialized here so vector should only call uninitialized_xxx after this
426
+ , m_size()
427
+ , m_capacity(static_cast<stored_size_type>(initial_capacity))
428
+ { this->do_maybe_initial_capacity(p, initial_capacity); }
429
+
430
+ template<class SizeType>
431
+ vector_alloc_holder(maybe_initial_capacity_t, pointer p, SizeType initial_capacity)
432
+ : allocator_type()
433
+ //, m_start()
434
+ //Size is initialized here so vector should only call uninitialized_xxx after this
435
+ , m_size()
436
+ , m_capacity(static_cast<stored_size_type>(initial_capacity))
437
+ { this->do_maybe_initial_capacity(p, initial_capacity); }
438
+
439
+ vector_alloc_holder(BOOST_RV_REF(vector_alloc_holder) holder) BOOST_NOEXCEPT_OR_NOTHROW
440
+ : allocator_type(BOOST_MOVE_BASE(allocator_type, holder))
441
+ , m_start(holder.m_start)
442
+ , m_size(holder.m_size)
443
+ , m_capacity(holder.m_capacity)
444
+ {
445
+ holder.m_start = pointer();
446
+ holder.m_size = holder.m_capacity = 0;
447
+ }
448
+
449
+ inline ~vector_alloc_holder() BOOST_NOEXCEPT_OR_NOTHROW
393
450
  {
394
451
  if(this->m_capacity){
395
452
  this->deallocate(this->m_start, this->m_capacity);
396
453
  }
397
454
  }
398
455
 
399
- BOOST_CONTAINER_FORCEINLINE pointer allocation_command(boost::container::allocation_type command,
400
- size_type limit_size, size_type &prefer_in_recvd_out_size, pointer &reuse)
456
+ inline void set_stored_size(size_type s) BOOST_NOEXCEPT_OR_NOTHROW
457
+ { this->m_size = static_cast<stored_size_type>(s); }
458
+
459
+ inline void dec_stored_size(size_type s) BOOST_NOEXCEPT_OR_NOTHROW
460
+ { this->m_size = static_cast<stored_size_type>(this->m_size - s); }
461
+
462
+ inline void inc_stored_size(size_type s) BOOST_NOEXCEPT_OR_NOTHROW
463
+ { this->m_size = static_cast<stored_size_type>(this->m_size + s); }
464
+
465
+ inline void set_stored_capacity(size_type c) BOOST_NOEXCEPT_OR_NOTHROW
466
+ { this->m_capacity = static_cast<stored_size_type>(c); }
467
+
468
+ inline pointer allocation_command(boost::container::allocation_type command,
469
+ size_type limit_size, size_type &prefer_in_recvd_out_size, pointer &reuse)
401
470
  {
402
- typedef typename dtl::version<Allocator>::type alloc_version;
471
+ typedef typename dtl::version<allocator_type>::type alloc_version;
403
472
  return this->priv_allocation_command(alloc_version(), command, limit_size, prefer_in_recvd_out_size, reuse);
404
473
  }
405
474
 
406
- BOOST_CONTAINER_FORCEINLINE pointer allocate(size_type n)
475
+ inline pointer allocate(size_type n)
407
476
  {
408
477
  const size_type max_alloc = allocator_traits_type::max_size(this->alloc());
409
478
  const size_type max = max_alloc <= stored_size_type(-1) ? max_alloc : stored_size_type(-1);
410
- if ( max < n )
479
+ if (BOOST_UNLIKELY(max < n) )
411
480
  boost::container::throw_length_error("get_next_capacity, allocator's max size reached");
412
481
 
413
482
  return allocator_traits_type::allocate(this->alloc(), n);
414
483
  }
415
484
 
416
- BOOST_CONTAINER_FORCEINLINE void deallocate(const pointer &p, size_type n)
485
+ inline void deallocate(const pointer &p, size_type n)
417
486
  {
418
487
  allocator_traits_type::deallocate(this->alloc(), p, n);
419
488
  }
@@ -421,7 +490,7 @@ struct vector_alloc_holder
421
490
  bool try_expand_fwd(size_type at_least)
422
491
  {
423
492
  //There is not enough memory, try to expand the old one
424
- const size_type new_cap = this->capacity() + at_least;
493
+ const size_type new_cap = size_type(this->capacity() + at_least);
425
494
  size_type real_cap = new_cap;
426
495
  pointer reuse = this->start();
427
496
  bool const success = !!this->allocation_command(expand_fwd, new_cap, real_cap, reuse);
@@ -440,9 +509,9 @@ struct vector_alloc_holder
440
509
  {
441
510
  BOOST_ASSERT(additional_objects > size_type(this->m_capacity - this->m_size));
442
511
  size_type max = allocator_traits_type::max_size(this->alloc());
443
- (clamp_by_stored_size_type)(max, stored_size_type());
444
- const size_type remaining_cap = max - size_type(this->m_capacity);
445
- const size_type min_additional_cap = additional_objects - size_type(this->m_capacity - this->m_size);
512
+ (clamp_by_stored_size_type<size_type>)(max, stored_size_type());
513
+ const size_type remaining_cap = size_type(max - size_type(this->m_capacity));
514
+ const size_type min_additional_cap = size_type(additional_objects - size_type(this->m_capacity - this->m_size));
446
515
 
447
516
  if ( remaining_cap < min_additional_cap )
448
517
  boost::container::throw_length_error("get_next_capacity, allocator's max size reached");
@@ -470,20 +539,23 @@ struct vector_alloc_holder
470
539
  x.m_size = x.m_capacity = 0;
471
540
  }
472
541
 
473
- BOOST_CONTAINER_FORCEINLINE Allocator &alloc() BOOST_NOEXCEPT_OR_NOTHROW
542
+ inline allocator_type &alloc() BOOST_NOEXCEPT_OR_NOTHROW
474
543
  { return *this; }
475
544
 
476
- BOOST_CONTAINER_FORCEINLINE const Allocator &alloc() const BOOST_NOEXCEPT_OR_NOTHROW
545
+ inline const allocator_type &alloc() const BOOST_NOEXCEPT_OR_NOTHROW
477
546
  { return *this; }
478
547
 
479
- BOOST_CONTAINER_FORCEINLINE const pointer &start() const BOOST_NOEXCEPT_OR_NOTHROW
548
+ inline const pointer &start() const BOOST_NOEXCEPT_OR_NOTHROW
480
549
  { return m_start; }
481
- BOOST_CONTAINER_FORCEINLINE size_type capacity() const BOOST_NOEXCEPT_OR_NOTHROW
550
+ inline size_type capacity() const BOOST_NOEXCEPT_OR_NOTHROW
482
551
  { return m_capacity; }
483
- BOOST_CONTAINER_FORCEINLINE void start(const pointer &p) BOOST_NOEXCEPT_OR_NOTHROW
552
+ inline void start(const pointer &p) BOOST_NOEXCEPT_OR_NOTHROW
484
553
  { m_start = p; }
485
- BOOST_CONTAINER_FORCEINLINE void capacity(const size_type &c) BOOST_NOEXCEPT_OR_NOTHROW
486
- { BOOST_ASSERT( c <= stored_size_type(-1)); m_capacity = c; }
554
+ inline void capacity(const size_type &c) BOOST_NOEXCEPT_OR_NOTHROW
555
+ { BOOST_ASSERT( c <= stored_size_type(-1)); this->set_stored_capacity(c); }
556
+
557
+ static inline void on_capacity_overflow()
558
+ { }
487
559
 
488
560
  private:
489
561
  void priv_first_allocation(size_type cap)
@@ -498,17 +570,7 @@ struct vector_alloc_holder
498
570
  }
499
571
  }
500
572
 
501
- BOOST_CONTAINER_FORCEINLINE static void clamp_by_stored_size_type(size_type &, size_type)
502
- {}
503
-
504
- template<class SomeStoredSizeType>
505
- BOOST_CONTAINER_FORCEINLINE static void clamp_by_stored_size_type(size_type &s, SomeStoredSizeType)
506
- {
507
- if (s >= SomeStoredSizeType(-1) )
508
- s = SomeStoredSizeType(-1);
509
- }
510
-
511
- BOOST_CONTAINER_FORCEINLINE pointer priv_allocation_command(version_1, boost::container::allocation_type command,
573
+ pointer priv_allocation_command(version_1, boost::container::allocation_type command,
512
574
  size_type limit_size,
513
575
  size_type &prefer_in_recvd_out_size,
514
576
  pointer &reuse)
@@ -517,10 +579,10 @@ struct vector_alloc_holder
517
579
  BOOST_ASSERT( (command & allocate_new));
518
580
  BOOST_ASSERT(!(command & nothrow_allocation));
519
581
  //First detect overflow on smaller stored_size_types
520
- if (limit_size > stored_size_type(-1)){
582
+ if (BOOST_UNLIKELY(limit_size > stored_size_type(-1))){
521
583
  boost::container::throw_length_error("get_next_capacity, allocator's max size reached");
522
584
  }
523
- (clamp_by_stored_size_type)(prefer_in_recvd_out_size, stored_size_type());
585
+ (clamp_by_stored_size_type<size_type>)(prefer_in_recvd_out_size, stored_size_type());
524
586
  pointer const p = this->allocate(prefer_in_recvd_out_size);
525
587
  reuse = pointer();
526
588
  return p;
@@ -532,14 +594,14 @@ struct vector_alloc_holder
532
594
  pointer &reuse)
533
595
  {
534
596
  //First detect overflow on smaller stored_size_types
535
- if (limit_size > stored_size_type(-1)){
597
+ if (BOOST_UNLIKELY(limit_size > stored_size_type(-1))){
536
598
  boost::container::throw_length_error("get_next_capacity, allocator's max size reached");
537
599
  }
538
- (clamp_by_stored_size_type)(prefer_in_recvd_out_size, stored_size_type());
600
+ (clamp_by_stored_size_type<size_type>)(prefer_in_recvd_out_size, stored_size_type());
539
601
  //Allocate memory
540
602
  pointer p = this->alloc().allocation_command(command, limit_size, prefer_in_recvd_out_size, reuse);
541
603
  //If after allocation prefer_in_recvd_out_size is not representable by stored_size_type, truncate it.
542
- (clamp_by_stored_size_type)(prefer_in_recvd_out_size, stored_size_type());
604
+ (clamp_by_stored_size_type<size_type>)(prefer_in_recvd_out_size, stored_size_type());
543
605
  return p;
544
606
  }
545
607
  };
@@ -553,31 +615,33 @@ struct vector_alloc_holder<Allocator, StoredSizeType, version_0>
553
615
  BOOST_MOVABLE_BUT_NOT_COPYABLE(vector_alloc_holder)
554
616
 
555
617
  public:
556
- typedef boost::container::allocator_traits<Allocator> allocator_traits_type;
618
+ typedef Allocator allocator_type;
619
+ typedef boost::container::
620
+ allocator_traits<allocator_type> allocator_traits_type;
557
621
  typedef typename allocator_traits_type::pointer pointer;
558
622
  typedef typename allocator_traits_type::size_type size_type;
559
623
  typedef typename allocator_traits_type::value_type value_type;
560
624
  typedef StoredSizeType stored_size_type;
561
-
625
+
562
626
  template <class OtherAllocator, class OtherStoredSizeType, class OtherAllocatorVersion>
563
627
  friend struct vector_alloc_holder;
564
628
 
565
629
  //Constructor, does not throw
566
630
  vector_alloc_holder()
567
- BOOST_NOEXCEPT_IF(dtl::is_nothrow_default_constructible<Allocator>::value)
568
- : Allocator(), m_size()
631
+ BOOST_NOEXCEPT_IF(dtl::is_nothrow_default_constructible<allocator_type>::value)
632
+ : allocator_type(), m_size()
569
633
  {}
570
634
 
571
635
  //Constructor, does not throw
572
636
  template<class AllocConvertible>
573
637
  explicit vector_alloc_holder(BOOST_FWD_REF(AllocConvertible) a) BOOST_NOEXCEPT_OR_NOTHROW
574
- : Allocator(boost::forward<AllocConvertible>(a)), m_size()
638
+ : allocator_type(boost::forward<AllocConvertible>(a)), m_size()
575
639
  {}
576
640
 
577
641
  //Constructor, does not throw
578
642
  template<class AllocConvertible>
579
643
  vector_alloc_holder(vector_uninitialized_size_t, BOOST_FWD_REF(AllocConvertible) a, size_type initial_size)
580
- : Allocator(boost::forward<AllocConvertible>(a))
644
+ : allocator_type(boost::forward<AllocConvertible>(a))
581
645
  , m_size(initial_size) //Size is initialized here...
582
646
  {
583
647
  //... and capacity here, so vector, must call uninitialized_xxx in the derived constructor
@@ -586,7 +650,7 @@ struct vector_alloc_holder<Allocator, StoredSizeType, version_0>
586
650
 
587
651
  //Constructor, does not throw
588
652
  vector_alloc_holder(vector_uninitialized_size_t, size_type initial_size)
589
- : Allocator()
653
+ : allocator_type()
590
654
  , m_size(initial_size) //Size is initialized here...
591
655
  {
592
656
  //... and capacity here, so vector, must call uninitialized_xxx in the derived constructor
@@ -594,16 +658,19 @@ struct vector_alloc_holder<Allocator, StoredSizeType, version_0>
594
658
  }
595
659
 
596
660
  vector_alloc_holder(BOOST_RV_REF(vector_alloc_holder) holder)
597
- : Allocator(BOOST_MOVE_BASE(Allocator, holder))
661
+ : allocator_type(BOOST_MOVE_BASE(allocator_type, holder))
598
662
  , m_size(holder.m_size) //Size is initialized here so vector should only call uninitialized_xxx after this
599
663
  {
600
664
  ::boost::container::uninitialized_move_alloc_n
601
665
  (this->alloc(), boost::movelib::to_raw_pointer(holder.start()), m_size, boost::movelib::to_raw_pointer(this->start()));
666
+ ::boost::container::destroy_alloc_n
667
+ (this->alloc(), boost::movelib::to_raw_pointer(holder.start()), m_size);
668
+ holder.m_size = 0;
602
669
  }
603
670
 
604
671
  template<class OtherAllocator, class OtherStoredSizeType, class OtherAllocatorVersion>
605
672
  vector_alloc_holder(BOOST_RV_REF_BEG vector_alloc_holder<OtherAllocator, OtherStoredSizeType, OtherAllocatorVersion> BOOST_RV_REF_END holder)
606
- : Allocator()
673
+ : allocator_type()
607
674
  , m_size(holder.m_size) //Initialize it to m_size as first_allocation can only succeed or abort
608
675
  {
609
676
  //Different allocator type so we must check we have enough storage
@@ -613,49 +680,63 @@ struct vector_alloc_holder<Allocator, StoredSizeType, version_0>
613
680
  (this->alloc(), boost::movelib::to_raw_pointer(holder.start()), n, boost::movelib::to_raw_pointer(this->start()));
614
681
  }
615
682
 
616
- BOOST_CONTAINER_FORCEINLINE void priv_first_allocation(size_type cap)
683
+ static inline void on_capacity_overflow()
684
+ { allocator_type::on_capacity_overflow(); }
685
+
686
+ inline void set_stored_size(size_type s) BOOST_NOEXCEPT_OR_NOTHROW
687
+ { this->m_size = static_cast<stored_size_type>(s); }
688
+
689
+ inline void dec_stored_size(size_type s) BOOST_NOEXCEPT_OR_NOTHROW
690
+ { this->m_size = static_cast<stored_size_type>(this->m_size - s); }
691
+
692
+ inline void inc_stored_size(size_type s) BOOST_NOEXCEPT_OR_NOTHROW
693
+ { this->m_size = static_cast<stored_size_type>(this->m_size + s); }
694
+
695
+ inline void priv_first_allocation(size_type cap)
617
696
  {
618
- if(cap > Allocator::internal_capacity){
619
- throw_bad_alloc();
697
+ if(cap > allocator_type::internal_capacity){
698
+ on_capacity_overflow();
620
699
  }
621
700
  }
622
701
 
623
- BOOST_CONTAINER_FORCEINLINE void deep_swap(vector_alloc_holder &x)
624
- {
625
- this->priv_deep_swap(x);
626
- }
702
+ inline void deep_swap(vector_alloc_holder &x)
703
+ { this->priv_deep_swap(x); }
627
704
 
628
705
  template<class OtherAllocator, class OtherStoredSizeType, class OtherAllocatorVersion>
629
706
  void deep_swap(vector_alloc_holder<OtherAllocator, OtherStoredSizeType, OtherAllocatorVersion> &x)
630
707
  {
631
- if(this->m_size > OtherAllocator::internal_capacity || x.m_size > Allocator::internal_capacity){
632
- throw_bad_alloc();
708
+ typedef typename real_allocator<value_type, OtherAllocator>::type other_allocator_type;
709
+ if(this->m_size > other_allocator_type::internal_capacity || x.m_size > allocator_type::internal_capacity){
710
+ on_capacity_overflow();
633
711
  }
634
712
  this->priv_deep_swap(x);
635
713
  }
636
714
 
637
- BOOST_CONTAINER_FORCEINLINE void swap_resources(vector_alloc_holder &) BOOST_NOEXCEPT_OR_NOTHROW
715
+ inline void swap_resources(vector_alloc_holder &) BOOST_NOEXCEPT_OR_NOTHROW
638
716
  { //Containers with version 0 allocators can't be moved without moving elements one by one
639
- throw_bad_alloc();
717
+ on_capacity_overflow();
640
718
  }
641
719
 
642
-
643
- BOOST_CONTAINER_FORCEINLINE void steal_resources(vector_alloc_holder &)
720
+ inline void steal_resources(vector_alloc_holder &)
644
721
  { //Containers with version 0 allocators can't be moved without moving elements one by one
645
- throw_bad_alloc();
722
+ on_capacity_overflow();
646
723
  }
647
724
 
648
- BOOST_CONTAINER_FORCEINLINE Allocator &alloc() BOOST_NOEXCEPT_OR_NOTHROW
725
+ inline allocator_type &alloc() BOOST_NOEXCEPT_OR_NOTHROW
649
726
  { return *this; }
650
727
 
651
- BOOST_CONTAINER_FORCEINLINE const Allocator &alloc() const BOOST_NOEXCEPT_OR_NOTHROW
728
+ inline const allocator_type &alloc() const BOOST_NOEXCEPT_OR_NOTHROW
652
729
  { return *this; }
653
730
 
654
- BOOST_CONTAINER_FORCEINLINE bool try_expand_fwd(size_type at_least)
731
+ inline bool try_expand_fwd(size_type at_least)
655
732
  { return !at_least; }
656
733
 
657
- BOOST_CONTAINER_FORCEINLINE pointer start() const BOOST_NOEXCEPT_OR_NOTHROW { return Allocator::internal_storage(); }
658
- BOOST_CONTAINER_FORCEINLINE size_type capacity() const BOOST_NOEXCEPT_OR_NOTHROW { return Allocator::internal_capacity; }
734
+ inline pointer start() const BOOST_NOEXCEPT_OR_NOTHROW
735
+ { return allocator_type::internal_storage(); }
736
+
737
+ inline size_type capacity() const BOOST_NOEXCEPT_OR_NOTHROW
738
+ { return allocator_type::internal_capacity; }
739
+
659
740
  stored_size_type m_size;
660
741
 
661
742
  private:
@@ -663,7 +744,7 @@ struct vector_alloc_holder<Allocator, StoredSizeType, version_0>
663
744
  template<class OtherAllocator, class OtherStoredSizeType, class OtherAllocatorVersion>
664
745
  void priv_deep_swap(vector_alloc_holder<OtherAllocator, OtherStoredSizeType, OtherAllocatorVersion> &x)
665
746
  {
666
- const size_type MaxTmpStorage = sizeof(value_type)*Allocator::internal_capacity;
747
+ const size_type MaxTmpStorage = sizeof(value_type)*allocator_type::internal_capacity;
667
748
  value_type *const first_this = boost::movelib::to_raw_pointer(this->start());
668
749
  value_type *const first_x = boost::movelib::to_raw_pointer(x.start());
669
750
 
@@ -678,18 +759,7 @@ struct vector_alloc_holder<Allocator, StoredSizeType, version_0>
678
759
  };
679
760
 
680
761
  struct growth_factor_60;
681
-
682
- template<class T, class Default>
683
- struct default_if_void
684
- {
685
- typedef T type;
686
- };
687
-
688
- template<class Default>
689
- struct default_if_void<void, Default>
690
- {
691
- typedef Default type;
692
- };
762
+ struct growth_factor_100;
693
763
 
694
764
  template<class Options, class AllocatorSizeType>
695
765
  struct get_vector_opt
@@ -705,7 +775,6 @@ struct get_vector_opt<void, AllocatorSizeType>
705
775
  typedef vector_opt<growth_factor_60, AllocatorSizeType> type;
706
776
  };
707
777
 
708
-
709
778
  #endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
710
779
 
711
780
  //! A vector is a sequence that supports random access to elements, constant
@@ -714,84 +783,119 @@ struct get_vector_opt<void, AllocatorSizeType>
714
783
  //! elements in a vector may vary dynamically; memory management is automatic.
715
784
  //!
716
785
  //! \tparam T The type of object that is stored in the vector
717
- //! \tparam Allocator The allocator used for all internal memory management
786
+ //! \tparam A The allocator used for all internal memory management, use void
787
+ //! for the default allocator
718
788
  //! \tparam Options A type produced from \c boost::container::vector_options.
719
- template <class T, class Allocator BOOST_CONTAINER_DOCONLY(= new_allocator<T>), class Options BOOST_CONTAINER_DOCONLY(= void) >
789
+ template <class T, class A BOOST_CONTAINER_DOCONLY(= void), class Options BOOST_CONTAINER_DOCONLY(= void) >
720
790
  class vector
721
791
  {
722
- #ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
792
+ public:
793
+ //////////////////////////////////////////////
794
+ //
795
+ // types
796
+ //
797
+ //////////////////////////////////////////////
798
+ typedef T value_type;
799
+ typedef BOOST_CONTAINER_IMPDEF
800
+ (typename real_allocator<T BOOST_MOVE_I A>::type) allocator_type;
801
+ typedef ::boost::container::allocator_traits<allocator_type> allocator_traits_t;
802
+ typedef typename allocator_traits<allocator_type>::pointer pointer;
803
+ typedef typename allocator_traits<allocator_type>::const_pointer const_pointer;
804
+ typedef typename allocator_traits<allocator_type>::reference reference;
805
+ typedef typename allocator_traits<allocator_type>::const_reference const_reference;
806
+ typedef typename allocator_traits<allocator_type>::size_type size_type;
807
+ typedef typename allocator_traits<allocator_type>::difference_type difference_type;
808
+ typedef allocator_type stored_allocator_type;
809
+ typedef BOOST_CONTAINER_IMPDEF(vec_iterator<pointer BOOST_MOVE_I false>) iterator;
810
+ typedef BOOST_CONTAINER_IMPDEF(vec_iterator<pointer BOOST_MOVE_I true >) const_iterator;
811
+ typedef BOOST_CONTAINER_IMPDEF(boost::container::reverse_iterator<iterator>) reverse_iterator;
812
+ typedef BOOST_CONTAINER_IMPDEF(boost::container::reverse_iterator<const_iterator>) const_reverse_iterator;
723
813
 
724
- typedef typename boost::container::allocator_traits<Allocator>::size_type alloc_size_type;
814
+ private:
815
+
816
+ #ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
817
+ typedef typename boost::container::
818
+ allocator_traits<allocator_type>::size_type alloc_size_type;
725
819
  typedef typename get_vector_opt<Options, alloc_size_type>::type options_type;
726
820
  typedef typename options_type::growth_factor_type growth_factor_type;
727
821
  typedef typename options_type::stored_size_type stored_size_type;
728
822
  typedef value_less<T> value_less_t;
729
823
 
730
824
  //If provided the stored_size option must specify a type that is equal or a type that is smaller.
731
- BOOST_STATIC_ASSERT( (sizeof(stored_size_type) < sizeof(alloc_size_type) ||
825
+ BOOST_CONTAINER_STATIC_ASSERT( (sizeof(stored_size_type) < sizeof(alloc_size_type) ||
732
826
  dtl::is_same<stored_size_type, alloc_size_type>::value) );
733
827
 
734
- typedef typename dtl::version<Allocator>::type alloc_version;
735
- typedef boost::container::vector_alloc_holder<Allocator, stored_size_type> alloc_holder_t;
828
+ typedef typename dtl::version<allocator_type>::type alloc_version;
829
+ typedef boost::container::vector_alloc_holder
830
+ <allocator_type, stored_size_type> alloc_holder_t;
831
+
736
832
  alloc_holder_t m_holder;
737
- typedef allocator_traits<Allocator> allocator_traits_type;
738
- template <class U, class UAllocator, class UOptions>
833
+
834
+ typedef allocator_traits<allocator_type> allocator_traits_type;
835
+ template <class U, class UA, class UOptions>
739
836
  friend class vector;
740
837
 
741
- typedef typename allocator_traits_type::pointer pointer_impl;
742
- typedef vec_iterator<pointer_impl, false> iterator_impl;
743
- typedef vec_iterator<pointer_impl, true > const_iterator_impl;
744
838
 
745
839
  protected:
746
- static bool is_propagable_from(const Allocator &from_alloc, pointer_impl p, const Allocator &to_alloc, bool const propagate_allocator)
840
+ inline
841
+ static bool is_propagable_from(const allocator_type &from_alloc, pointer p, const allocator_type &to_alloc, bool const propagate_allocator)
747
842
  { return alloc_holder_t::is_propagable_from(from_alloc, p, to_alloc, propagate_allocator); }
748
843
 
749
- static bool are_swap_propagable( const Allocator &l_a, pointer_impl l_p
750
- , const Allocator &r_a, pointer_impl r_p, bool const propagate_allocator)
844
+ inline
845
+ static bool are_swap_propagable( const allocator_type &l_a, pointer l_p
846
+ , const allocator_type &r_a, pointer r_p, bool const propagate_allocator)
751
847
  { return alloc_holder_t::are_swap_propagable(l_a, l_p, r_a, r_p, propagate_allocator); }
752
848
 
753
849
  #endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
754
- public:
755
- //////////////////////////////////////////////
756
- //
757
- // types
758
- //
759
- //////////////////////////////////////////////
760
-
761
- typedef T value_type;
762
- typedef typename ::boost::container::allocator_traits<Allocator>::pointer pointer;
763
- typedef typename ::boost::container::allocator_traits<Allocator>::const_pointer const_pointer;
764
- typedef typename ::boost::container::allocator_traits<Allocator>::reference reference;
765
- typedef typename ::boost::container::allocator_traits<Allocator>::const_reference const_reference;
766
- typedef typename ::boost::container::allocator_traits<Allocator>::size_type size_type;
767
- typedef typename ::boost::container::allocator_traits<Allocator>::difference_type difference_type;
768
- typedef Allocator allocator_type;
769
- typedef Allocator stored_allocator_type;
770
- typedef BOOST_CONTAINER_IMPDEF(iterator_impl) iterator;
771
- typedef BOOST_CONTAINER_IMPDEF(const_iterator_impl) const_iterator;
772
- typedef BOOST_CONTAINER_IMPDEF(boost::container::reverse_iterator<iterator>) reverse_iterator;
773
- typedef BOOST_CONTAINER_IMPDEF(boost::container::reverse_iterator<const_iterator>) const_reverse_iterator;
774
-
775
850
  #ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
776
851
  private:
777
852
  BOOST_COPYABLE_AND_MOVABLE(vector)
778
- typedef vector_value_traits<Allocator> value_traits;
779
- typedef constant_iterator<T, difference_type> cvalue_iterator;
853
+ typedef vector_value_traits<allocator_type> value_traits;
854
+ typedef constant_iterator<T> cvalue_iterator;
780
855
 
781
856
  protected:
782
857
 
783
- BOOST_CONTAINER_FORCEINLINE void steal_resources(vector &x)
858
+ inline void steal_resources(vector &x)
784
859
  { return this->m_holder.steal_resources(x.m_holder); }
785
860
 
861
+ inline void protected_set_size(size_type n)
862
+ { this->m_holder.m_size = static_cast<stored_size_type>(n); }
863
+
786
864
  template<class AllocFwd>
787
- BOOST_CONTAINER_FORCEINLINE vector(initial_capacity_t, pointer initial_memory, size_type capacity, BOOST_FWD_REF(AllocFwd) a)
788
- : m_holder(initial_capacity_t(), initial_memory, capacity, ::boost::forward<AllocFwd>(a))
865
+ inline vector(initial_capacity_t, pointer initial_memory, size_type cap, BOOST_FWD_REF(AllocFwd) a)
866
+ : m_holder(initial_capacity_t(), initial_memory, cap, ::boost::forward<AllocFwd>(a))
789
867
  {}
790
868
 
791
- BOOST_CONTAINER_FORCEINLINE vector(initial_capacity_t, pointer initial_memory, size_type capacity)
792
- : m_holder(initial_capacity_t(), initial_memory, capacity)
869
+ inline vector(initial_capacity_t, pointer initial_memory, size_type cap)
870
+ : m_holder(initial_capacity_t(), initial_memory, cap)
793
871
  {}
794
872
 
873
+ template<class SizeType, class AllocFwd>
874
+ inline vector(maybe_initial_capacity_t, pointer p, SizeType initial_capacity, BOOST_FWD_REF(AllocFwd) a)
875
+ : m_holder(maybe_initial_capacity_t(), p, initial_capacity, ::boost::forward<AllocFwd>(a))
876
+ {
877
+ #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
878
+ this->num_alloc += size_type(p != pointer());
879
+ #endif
880
+ }
881
+
882
+ template<class SizeType>
883
+ inline vector(maybe_initial_capacity_t, pointer p, SizeType initial_capacity)
884
+ : m_holder(maybe_initial_capacity_t(), p, initial_capacity)
885
+ {
886
+ #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
887
+ this->num_alloc += size_type(p != pointer());
888
+ #endif
889
+ }
890
+
891
+ template <class U>
892
+ void protected_init_n(const size_type new_size, const U& u)
893
+ {
894
+ BOOST_ASSERT(this->empty());
895
+ this->priv_resize_proxy(u).uninitialized_copy_n_and_update(this->m_holder.alloc(), this->priv_raw_begin(), new_size);
896
+ this->m_holder.set_stored_size(new_size);
897
+ }
898
+
795
899
  #endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
796
900
 
797
901
  public:
@@ -806,7 +910,7 @@ class vector
806
910
  //! <b>Throws</b>: Nothing.
807
911
  //!
808
912
  //! <b>Complexity</b>: Constant.
809
- vector() BOOST_NOEXCEPT_IF(dtl::is_nothrow_default_constructible<Allocator>::value)
913
+ vector() BOOST_NOEXCEPT_IF(dtl::is_nothrow_default_constructible<allocator_type>::value)
810
914
  : m_holder()
811
915
  {}
812
916
 
@@ -953,12 +1057,6 @@ class vector
953
1057
  //! throws or T's constructor taking a dereferenced InIt throws.
954
1058
  //!
955
1059
  //! <b>Complexity</b>: Linear to the range [first, last).
956
- // template <class InIt>
957
- // vector(InIt first, InIt last, const allocator_type& a
958
- // BOOST_CONTAINER_DOCIGN(BOOST_MOVE_I typename dtl::disable_if_c
959
- // < dtl::is_convertible<InIt BOOST_MOVE_I size_type>::value
960
- // BOOST_MOVE_I dtl::nat >::type * = 0)
961
- // ) -> vector<typename iterator_traits<InIt>::value_type, new_allocator<typename iterator_traits<InIt>::value_type>>;
962
1060
  template <class InIt>
963
1061
  vector(InIt first, InIt last, const allocator_type& a
964
1062
  BOOST_CONTAINER_DOCIGN(BOOST_MOVE_I typename dtl::disable_if_c
@@ -996,7 +1094,7 @@ class vector
996
1094
  //! <b>Complexity</b>: Constant.
997
1095
  vector(BOOST_RV_REF(vector) x) BOOST_NOEXCEPT_OR_NOTHROW
998
1096
  : m_holder(boost::move(x.m_holder))
999
- { BOOST_STATIC_ASSERT((!allocator_traits_type::is_partially_propagable::value)); }
1097
+ { BOOST_CONTAINER_STATIC_ASSERT((!allocator_traits_type::is_partially_propagable::value)); }
1000
1098
 
1001
1099
  #if !defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST)
1002
1100
  //! <b>Effects</b>: Constructs a vector that will use a copy of allocator a
@@ -1006,9 +1104,14 @@ class vector
1006
1104
  //!
1007
1105
  //! <b>Complexity</b>: Linear to the range [il.begin(), il.end()).
1008
1106
  vector(std::initializer_list<value_type> il, const allocator_type& a = allocator_type())
1009
- : m_holder(a)
1107
+ : m_holder(vector_uninitialized_size, a, il.size())
1010
1108
  {
1011
- this->assign(il.begin(), il.end());
1109
+ #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
1110
+ this->num_alloc += il.size() != 0;
1111
+ #endif
1112
+ ::boost::container::uninitialized_copy_alloc_n_source
1113
+ ( this->m_holder.alloc(), il.begin()
1114
+ , static_cast<size_type>(il.size()), this->priv_raw_begin());
1012
1115
  }
1013
1116
  #endif
1014
1117
 
@@ -1021,15 +1124,15 @@ class vector
1021
1124
  //! <b>Complexity</b>: Linear.
1022
1125
  //!
1023
1126
  //! <b>Note</b>: Non-standard extension to support static_vector
1024
- template<class OtherAllocator>
1025
- vector(BOOST_RV_REF_BEG vector<T, OtherAllocator> BOOST_RV_REF_END x
1127
+ template<class OtherA>
1128
+ vector(BOOST_RV_REF_BEG vector<T, OtherA, Options> BOOST_RV_REF_END x
1026
1129
  , typename dtl::enable_if_c
1027
- < dtl::is_version<OtherAllocator, 0>::value>::type * = 0
1130
+ < dtl::is_version<typename real_allocator<T, OtherA>::type, 0>::value>::type * = 0
1028
1131
  )
1029
1132
  : m_holder(boost::move(x.m_holder))
1030
1133
  {}
1031
1134
 
1032
- #endif //!defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
1135
+ #endif // defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
1033
1136
 
1034
1137
  //! <b>Effects</b>: Copy constructs a vector using the specified allocator.
1035
1138
  //!
@@ -1059,10 +1162,12 @@ class vector
1059
1162
  //! <b>Complexity</b>: Constant if a == x.get_allocator(), linear otherwise.
1060
1163
  vector(BOOST_RV_REF(vector) x, const allocator_type &a)
1061
1164
  : m_holder( vector_uninitialized_size, a
1062
- , is_propagable_from(x.get_stored_allocator(), x.m_holder.start(), a, true) ? 0 : x.size()
1165
+ //In this allocator move constructor the allocator won't be propagated --v
1166
+ , is_propagable_from(x.get_stored_allocator(), x.m_holder.start(), a, false) ? 0 : x.size()
1063
1167
  )
1064
1168
  {
1065
- if(is_propagable_from(x.get_stored_allocator(), x.m_holder.start(), a, true)){
1169
+ //In this allocator move constructor the allocator won't be propagated ---v
1170
+ if(is_propagable_from(x.get_stored_allocator(), x.m_holder.start(), a, false)){
1066
1171
  this->m_holder.steal_resources(x.m_holder);
1067
1172
  }
1068
1173
  else{
@@ -1097,9 +1202,9 @@ class vector
1097
1202
  //! <b>Throws</b>: If memory allocation throws or T's copy/move constructor/assignment throws.
1098
1203
  //!
1099
1204
  //! <b>Complexity</b>: Linear to the number of elements in x.
1100
- BOOST_CONTAINER_FORCEINLINE vector& operator=(BOOST_COPY_ASSIGN_REF(vector) x)
1205
+ inline vector& operator=(BOOST_COPY_ASSIGN_REF(vector) x)
1101
1206
  {
1102
- if (&x != this){
1207
+ if (BOOST_LIKELY(&x != this)){
1103
1208
  this->priv_copy_assign(x);
1104
1209
  }
1105
1210
  return *this;
@@ -1109,7 +1214,7 @@ class vector
1109
1214
  //! <b>Effects</b>: Make *this container contains elements from il.
1110
1215
  //!
1111
1216
  //! <b>Complexity</b>: Linear to the range [il.begin(), il.end()).
1112
- BOOST_CONTAINER_FORCEINLINE vector& operator=(std::initializer_list<value_type> il)
1217
+ inline vector& operator=(std::initializer_list<value_type> il)
1113
1218
  {
1114
1219
  this->assign(il.begin(), il.end());
1115
1220
  return *this;
@@ -1127,11 +1232,13 @@ class vector
1127
1232
  //! <b>Complexity</b>: Constant if allocator_traits_type::
1128
1233
  //! propagate_on_container_move_assignment is true or
1129
1234
  //! this->get>allocator() == x.get_allocator(). Linear otherwise.
1130
- BOOST_CONTAINER_FORCEINLINE vector& operator=(BOOST_RV_REF(vector) x)
1235
+ inline vector& operator=(BOOST_RV_REF(vector) x)
1131
1236
  BOOST_NOEXCEPT_IF(allocator_traits_type::propagate_on_container_move_assignment::value
1132
1237
  || allocator_traits_type::is_always_equal::value)
1133
1238
  {
1134
- this->priv_move_assign(boost::move(x));
1239
+ if (BOOST_LIKELY(&x != this)){
1240
+ this->priv_move_assign(boost::move(x));
1241
+ }
1135
1242
  return *this;
1136
1243
  }
1137
1244
 
@@ -1147,13 +1254,13 @@ class vector
1147
1254
  //! <b>Complexity</b>: Linear.
1148
1255
  //!
1149
1256
  //! <b>Note</b>: Non-standard extension to support static_vector
1150
- template<class OtherAllocator>
1151
- BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_and
1257
+ template<class OtherA>
1258
+ inline typename dtl::enable_if_and
1152
1259
  < vector&
1153
- , dtl::is_version<OtherAllocator, 0>
1154
- , dtl::is_different<OtherAllocator, allocator_type>
1260
+ , dtl::is_version<typename real_allocator<T, OtherA>::type, 0>
1261
+ , dtl::is_different<typename real_allocator<T, OtherA>::type, allocator_type>
1155
1262
  >::type
1156
- operator=(BOOST_RV_REF_BEG vector<value_type, OtherAllocator> BOOST_RV_REF_END x)
1263
+ operator=(BOOST_RV_REF_BEG vector<value_type, OtherA, Options> BOOST_RV_REF_END x)
1157
1264
  {
1158
1265
  this->priv_move_assign(boost::move(x));
1159
1266
  return *this;
@@ -1169,13 +1276,13 @@ class vector
1169
1276
  //! <b>Complexity</b>: Linear.
1170
1277
  //!
1171
1278
  //! <b>Note</b>: Non-standard extension to support static_vector
1172
- template<class OtherAllocator>
1173
- BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_and
1279
+ template<class OtherA>
1280
+ inline typename dtl::enable_if_and
1174
1281
  < vector&
1175
- , dtl::is_version<OtherAllocator, 0>
1176
- , dtl::is_different<OtherAllocator, allocator_type>
1282
+ , dtl::is_version<typename real_allocator<T, OtherA>::type, 0>
1283
+ , dtl::is_different<typename real_allocator<T, OtherA>::type, allocator_type>
1177
1284
  >::type
1178
- operator=(const vector<value_type, OtherAllocator> &x)
1285
+ operator=(const vector<value_type, OtherA, Options> &x)
1179
1286
  {
1180
1287
  this->priv_copy_assign(x);
1181
1288
  return *this;
@@ -1227,7 +1334,7 @@ class vector
1227
1334
  //! <b>Throws</b>: If memory allocation throws or
1228
1335
  //! T's constructor from dereferencing iniializer_list iterator throws.
1229
1336
  //!
1230
- BOOST_CONTAINER_FORCEINLINE void assign(std::initializer_list<T> il)
1337
+ inline void assign(std::initializer_list<T> il)
1231
1338
  {
1232
1339
  this->assign(il.begin(), il.end());
1233
1340
  }
@@ -1250,9 +1357,15 @@ class vector
1250
1357
  >::type * = 0)
1251
1358
  )
1252
1359
  {
1360
+ typedef typename iter_size<FwdIt>::type it_size_type;
1253
1361
  //For Fwd iterators the standard only requires EmplaceConstructible and assignable from *first
1254
1362
  //so we can't do any backwards allocation
1255
- const size_type input_sz = static_cast<size_type>(boost::container::iterator_distance(first, last));
1363
+ const it_size_type sz = boost::container::iterator_udistance(first, last);
1364
+ if (BOOST_UNLIKELY(sz > size_type(-1))){
1365
+ boost::container::throw_length_error("vector::assign, FwdIt's max length reached");
1366
+ }
1367
+
1368
+ const size_type input_sz = static_cast<size_type>(sz);
1256
1369
  const size_type old_capacity = this->capacity();
1257
1370
  if(input_sz > old_capacity){ //If input range is too big, we need to reallocate
1258
1371
  size_type real_cap = 0;
@@ -1283,7 +1396,7 @@ class vector
1283
1396
  }
1284
1397
 
1285
1398
  boost::container::copy_assign_range_alloc_n(this->m_holder.alloc(), first, input_sz, this->priv_raw_begin(), this->size());
1286
- this->m_holder.m_size = input_sz;
1399
+ m_holder.set_stored_size(input_sz);
1287
1400
  }
1288
1401
 
1289
1402
  //! <b>Effects</b>: Assigns the n copies of val to *this.
@@ -1292,7 +1405,7 @@ class vector
1292
1405
  //! T's copy/move constructor/assignment throws.
1293
1406
  //!
1294
1407
  //! <b>Complexity</b>: Linear to n.
1295
- BOOST_CONTAINER_FORCEINLINE void assign(size_type n, const value_type& val)
1408
+ inline void assign(size_type n, const value_type& val)
1296
1409
  { this->assign(cvalue_iterator(val, n), cvalue_iterator()); }
1297
1410
 
1298
1411
  //! <b>Effects</b>: Returns a copy of the internal allocator.
@@ -1300,7 +1413,7 @@ class vector
1300
1413
  //! <b>Throws</b>: If allocator's copy constructor throws.
1301
1414
  //!
1302
1415
  //! <b>Complexity</b>: Constant.
1303
- allocator_type get_allocator() const BOOST_NOEXCEPT_OR_NOTHROW
1416
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline allocator_type get_allocator() const BOOST_NOEXCEPT_OR_NOTHROW
1304
1417
  { return this->m_holder.alloc(); }
1305
1418
 
1306
1419
  //! <b>Effects</b>: Returns a reference to the internal allocator.
@@ -1310,7 +1423,8 @@ class vector
1310
1423
  //! <b>Complexity</b>: Constant.
1311
1424
  //!
1312
1425
  //! <b>Note</b>: Non-standard extension.
1313
- BOOST_CONTAINER_FORCEINLINE stored_allocator_type &get_stored_allocator() BOOST_NOEXCEPT_OR_NOTHROW
1426
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
1427
+ stored_allocator_type &get_stored_allocator() BOOST_NOEXCEPT_OR_NOTHROW
1314
1428
  { return this->m_holder.alloc(); }
1315
1429
 
1316
1430
  //! <b>Effects</b>: Returns a reference to the internal allocator.
@@ -1320,7 +1434,8 @@ class vector
1320
1434
  //! <b>Complexity</b>: Constant.
1321
1435
  //!
1322
1436
  //! <b>Note</b>: Non-standard extension.
1323
- BOOST_CONTAINER_FORCEINLINE const stored_allocator_type &get_stored_allocator() const BOOST_NOEXCEPT_OR_NOTHROW
1437
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
1438
+ const stored_allocator_type &get_stored_allocator() const BOOST_NOEXCEPT_OR_NOTHROW
1324
1439
  { return this->m_holder.alloc(); }
1325
1440
 
1326
1441
  //////////////////////////////////////////////
@@ -1334,7 +1449,7 @@ class vector
1334
1449
  //! <b>Throws</b>: Nothing.
1335
1450
  //!
1336
1451
  //! <b>Complexity</b>: Constant.
1337
- BOOST_CONTAINER_FORCEINLINE iterator begin() BOOST_NOEXCEPT_OR_NOTHROW
1452
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline iterator begin() BOOST_NOEXCEPT_OR_NOTHROW
1338
1453
  { return iterator(this->m_holder.start()); }
1339
1454
 
1340
1455
  //! <b>Effects</b>: Returns a const_iterator to the first element contained in the vector.
@@ -1342,7 +1457,7 @@ class vector
1342
1457
  //! <b>Throws</b>: Nothing.
1343
1458
  //!
1344
1459
  //! <b>Complexity</b>: Constant.
1345
- BOOST_CONTAINER_FORCEINLINE const_iterator begin() const BOOST_NOEXCEPT_OR_NOTHROW
1460
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline const_iterator begin() const BOOST_NOEXCEPT_OR_NOTHROW
1346
1461
  { return const_iterator(this->m_holder.start()); }
1347
1462
 
1348
1463
  //! <b>Effects</b>: Returns an iterator to the end of the vector.
@@ -1350,11 +1465,11 @@ class vector
1350
1465
  //! <b>Throws</b>: Nothing.
1351
1466
  //!
1352
1467
  //! <b>Complexity</b>: Constant.
1353
- BOOST_CONTAINER_FORCEINLINE iterator end() BOOST_NOEXCEPT_OR_NOTHROW
1468
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline iterator end() BOOST_NOEXCEPT_OR_NOTHROW
1354
1469
  {
1355
- pointer const bg = this->m_holder.start();
1356
- size_type const sz = this->m_holder.m_size;
1357
- return iterator(BOOST_LIKELY(sz) ? bg + sz : bg); //Avoid UB on null-pointer arithmetic
1470
+ iterator it (this->m_holder.start());
1471
+ it += difference_type(this->m_holder.m_size);
1472
+ return it; //Adding zero to null pointer is allowed (non-UB)
1358
1473
  }
1359
1474
 
1360
1475
  //! <b>Effects</b>: Returns a const_iterator to the end of the vector.
@@ -1362,7 +1477,7 @@ class vector
1362
1477
  //! <b>Throws</b>: Nothing.
1363
1478
  //!
1364
1479
  //! <b>Complexity</b>: Constant.
1365
- BOOST_CONTAINER_FORCEINLINE const_iterator end() const BOOST_NOEXCEPT_OR_NOTHROW
1480
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline const_iterator end() const BOOST_NOEXCEPT_OR_NOTHROW
1366
1481
  { return this->cend(); }
1367
1482
 
1368
1483
  //! <b>Effects</b>: Returns a reverse_iterator pointing to the beginning
@@ -1371,7 +1486,7 @@ class vector
1371
1486
  //! <b>Throws</b>: Nothing.
1372
1487
  //!
1373
1488
  //! <b>Complexity</b>: Constant.
1374
- BOOST_CONTAINER_FORCEINLINE reverse_iterator rbegin() BOOST_NOEXCEPT_OR_NOTHROW
1489
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline reverse_iterator rbegin() BOOST_NOEXCEPT_OR_NOTHROW
1375
1490
  { return reverse_iterator(this->end()); }
1376
1491
 
1377
1492
  //! <b>Effects</b>: Returns a const_reverse_iterator pointing to the beginning
@@ -1380,7 +1495,7 @@ class vector
1380
1495
  //! <b>Throws</b>: Nothing.
1381
1496
  //!
1382
1497
  //! <b>Complexity</b>: Constant.
1383
- BOOST_CONTAINER_FORCEINLINE const_reverse_iterator rbegin() const BOOST_NOEXCEPT_OR_NOTHROW
1498
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline const_reverse_iterator rbegin() const BOOST_NOEXCEPT_OR_NOTHROW
1384
1499
  { return this->crbegin(); }
1385
1500
 
1386
1501
  //! <b>Effects</b>: Returns a reverse_iterator pointing to the end
@@ -1389,7 +1504,7 @@ class vector
1389
1504
  //! <b>Throws</b>: Nothing.
1390
1505
  //!
1391
1506
  //! <b>Complexity</b>: Constant.
1392
- BOOST_CONTAINER_FORCEINLINE reverse_iterator rend() BOOST_NOEXCEPT_OR_NOTHROW
1507
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline reverse_iterator rend() BOOST_NOEXCEPT_OR_NOTHROW
1393
1508
  { return reverse_iterator(this->begin()); }
1394
1509
 
1395
1510
  //! <b>Effects</b>: Returns a const_reverse_iterator pointing to the end
@@ -1398,7 +1513,7 @@ class vector
1398
1513
  //! <b>Throws</b>: Nothing.
1399
1514
  //!
1400
1515
  //! <b>Complexity</b>: Constant.
1401
- BOOST_CONTAINER_FORCEINLINE const_reverse_iterator rend() const BOOST_NOEXCEPT_OR_NOTHROW
1516
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline const_reverse_iterator rend() const BOOST_NOEXCEPT_OR_NOTHROW
1402
1517
  { return this->crend(); }
1403
1518
 
1404
1519
  //! <b>Effects</b>: Returns a const_iterator to the first element contained in the vector.
@@ -1406,7 +1521,7 @@ class vector
1406
1521
  //! <b>Throws</b>: Nothing.
1407
1522
  //!
1408
1523
  //! <b>Complexity</b>: Constant.
1409
- BOOST_CONTAINER_FORCEINLINE const_iterator cbegin() const BOOST_NOEXCEPT_OR_NOTHROW
1524
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline const_iterator cbegin() const BOOST_NOEXCEPT_OR_NOTHROW
1410
1525
  { return const_iterator(this->m_holder.start()); }
1411
1526
 
1412
1527
  //! <b>Effects</b>: Returns a const_iterator to the end of the vector.
@@ -1414,13 +1529,12 @@ class vector
1414
1529
  //! <b>Throws</b>: Nothing.
1415
1530
  //!
1416
1531
  //! <b>Complexity</b>: Constant.
1417
- BOOST_CONTAINER_FORCEINLINE const_iterator cend() const BOOST_NOEXCEPT_OR_NOTHROW
1532
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline const_iterator cend() const BOOST_NOEXCEPT_OR_NOTHROW
1418
1533
  {
1419
- pointer const bg = this->m_holder.start();
1420
- size_type const sz = this->m_holder.m_size;
1421
- return const_iterator(BOOST_LIKELY(sz) ? bg + sz : bg); //Avoid UB on null-pointer arithmetic
1534
+ const_iterator it (this->m_holder.start());
1535
+ it += difference_type(this->m_holder.m_size);
1536
+ return it; //Adding zero to null pointer is allowed (non-UB)
1422
1537
  }
1423
- //{ return const_iterator(this->m_holder.start() + this->m_holder.m_size); }
1424
1538
 
1425
1539
  //! <b>Effects</b>: Returns a const_reverse_iterator pointing to the beginning
1426
1540
  //! of the reversed vector.
@@ -1428,7 +1542,7 @@ class vector
1428
1542
  //! <b>Throws</b>: Nothing.
1429
1543
  //!
1430
1544
  //! <b>Complexity</b>: Constant.
1431
- BOOST_CONTAINER_FORCEINLINE const_reverse_iterator crbegin() const BOOST_NOEXCEPT_OR_NOTHROW
1545
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline const_reverse_iterator crbegin() const BOOST_NOEXCEPT_OR_NOTHROW
1432
1546
  { return const_reverse_iterator(this->end());}
1433
1547
 
1434
1548
  //! <b>Effects</b>: Returns a const_reverse_iterator pointing to the end
@@ -1437,7 +1551,7 @@ class vector
1437
1551
  //! <b>Throws</b>: Nothing.
1438
1552
  //!
1439
1553
  //! <b>Complexity</b>: Constant.
1440
- BOOST_CONTAINER_FORCEINLINE const_reverse_iterator crend() const BOOST_NOEXCEPT_OR_NOTHROW
1554
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline const_reverse_iterator crend() const BOOST_NOEXCEPT_OR_NOTHROW
1441
1555
  { return const_reverse_iterator(this->begin()); }
1442
1556
 
1443
1557
  //////////////////////////////////////////////
@@ -1451,7 +1565,7 @@ class vector
1451
1565
  //! <b>Throws</b>: Nothing.
1452
1566
  //!
1453
1567
  //! <b>Complexity</b>: Constant.
1454
- BOOST_CONTAINER_FORCEINLINE bool empty() const BOOST_NOEXCEPT_OR_NOTHROW
1568
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline bool empty() const BOOST_NOEXCEPT_OR_NOTHROW
1455
1569
  { return !this->m_holder.m_size; }
1456
1570
 
1457
1571
  //! <b>Effects</b>: Returns the number of the elements contained in the vector.
@@ -1459,7 +1573,7 @@ class vector
1459
1573
  //! <b>Throws</b>: Nothing.
1460
1574
  //!
1461
1575
  //! <b>Complexity</b>: Constant.
1462
- BOOST_CONTAINER_FORCEINLINE size_type size() const BOOST_NOEXCEPT_OR_NOTHROW
1576
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline size_type size() const BOOST_NOEXCEPT_OR_NOTHROW
1463
1577
  { return this->m_holder.m_size; }
1464
1578
 
1465
1579
  //! <b>Effects</b>: Returns the largest possible size of the vector.
@@ -1467,7 +1581,7 @@ class vector
1467
1581
  //! <b>Throws</b>: Nothing.
1468
1582
  //!
1469
1583
  //! <b>Complexity</b>: Constant.
1470
- BOOST_CONTAINER_FORCEINLINE size_type max_size() const BOOST_NOEXCEPT_OR_NOTHROW
1584
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline size_type max_size() const BOOST_NOEXCEPT_OR_NOTHROW
1471
1585
  { return allocator_traits_type::max_size(this->m_holder.alloc()); }
1472
1586
 
1473
1587
  //! <b>Effects</b>: Inserts or erases elements at the end such that
@@ -1476,8 +1590,8 @@ class vector
1476
1590
  //! <b>Throws</b>: If memory allocation throws, or T's copy/move or value initialization throws.
1477
1591
  //!
1478
1592
  //! <b>Complexity</b>: Linear to the difference between size() and new_size.
1479
- void resize(size_type new_size)
1480
- { this->priv_resize(new_size, value_init); }
1593
+ inline void resize(size_type new_size)
1594
+ { this->priv_resize(new_size, value_init, alloc_version()); }
1481
1595
 
1482
1596
  //! <b>Effects</b>: Inserts or erases elements at the end such that
1483
1597
  //! the size becomes n. New elements are default initialized.
@@ -1487,8 +1601,8 @@ class vector
1487
1601
  //! <b>Complexity</b>: Linear to the difference between size() and new_size.
1488
1602
  //!
1489
1603
  //! <b>Note</b>: Non-standard extension
1490
- void resize(size_type new_size, default_init_t)
1491
- { this->priv_resize(new_size, default_init); }
1604
+ inline void resize(size_type new_size, default_init_t)
1605
+ { this->priv_resize(new_size, default_init, alloc_version()); }
1492
1606
 
1493
1607
  //! <b>Effects</b>: Inserts or erases elements at the end such that
1494
1608
  //! the size becomes n. New elements are copy constructed from x.
@@ -1496,8 +1610,8 @@ class vector
1496
1610
  //! <b>Throws</b>: If memory allocation throws, or T's copy/move constructor throws.
1497
1611
  //!
1498
1612
  //! <b>Complexity</b>: Linear to the difference between size() and new_size.
1499
- void resize(size_type new_size, const T& x)
1500
- { this->priv_resize(new_size, x); }
1613
+ inline void resize(size_type new_size, const T& x)
1614
+ { this->priv_resize(new_size, x, alloc_version()); }
1501
1615
 
1502
1616
  //! <b>Effects</b>: Number of elements for which memory has been allocated.
1503
1617
  //! capacity() is always greater than or equal to size().
@@ -1505,7 +1619,7 @@ class vector
1505
1619
  //! <b>Throws</b>: Nothing.
1506
1620
  //!
1507
1621
  //! <b>Complexity</b>: Constant.
1508
- BOOST_CONTAINER_FORCEINLINE size_type capacity() const BOOST_NOEXCEPT_OR_NOTHROW
1622
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline size_type capacity() const BOOST_NOEXCEPT_OR_NOTHROW
1509
1623
  { return this->m_holder.capacity(); }
1510
1624
 
1511
1625
  //! <b>Effects</b>: If n is less than or equal to capacity(), this call has no
@@ -1514,10 +1628,10 @@ class vector
1514
1628
  //! n; otherwise, capacity() is unchanged. In either case, size() is unchanged.
1515
1629
  //!
1516
1630
  //! <b>Throws</b>: If memory allocation allocation throws or T's copy/move constructor throws.
1517
- BOOST_CONTAINER_FORCEINLINE void reserve(size_type new_cap)
1631
+ inline void reserve(size_type new_cap)
1518
1632
  {
1519
1633
  if (this->capacity() < new_cap){
1520
- this->priv_reserve_no_capacity(new_cap, alloc_version());
1634
+ this->priv_move_to_new_buffer(new_cap, alloc_version());
1521
1635
  }
1522
1636
  }
1523
1637
 
@@ -1527,7 +1641,7 @@ class vector
1527
1641
  //! <b>Throws</b>: If memory allocation throws, or T's copy/move constructor throws.
1528
1642
  //!
1529
1643
  //! <b>Complexity</b>: Linear to size().
1530
- BOOST_CONTAINER_FORCEINLINE void shrink_to_fit()
1644
+ inline void shrink_to_fit()
1531
1645
  { this->priv_shrink_to_fit(alloc_version()); }
1532
1646
 
1533
1647
  //////////////////////////////////////////////
@@ -1544,7 +1658,7 @@ class vector
1544
1658
  //! <b>Throws</b>: Nothing.
1545
1659
  //!
1546
1660
  //! <b>Complexity</b>: Constant.
1547
- reference front() BOOST_NOEXCEPT_OR_NOTHROW
1661
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline reference front() BOOST_NOEXCEPT_OR_NOTHROW
1548
1662
  {
1549
1663
  BOOST_ASSERT(!this->empty());
1550
1664
  return *this->m_holder.start();
@@ -1558,7 +1672,7 @@ class vector
1558
1672
  //! <b>Throws</b>: Nothing.
1559
1673
  //!
1560
1674
  //! <b>Complexity</b>: Constant.
1561
- const_reference front() const BOOST_NOEXCEPT_OR_NOTHROW
1675
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline const_reference front() const BOOST_NOEXCEPT_OR_NOTHROW
1562
1676
  {
1563
1677
  BOOST_ASSERT(!this->empty());
1564
1678
  return *this->m_holder.start();
@@ -1572,10 +1686,10 @@ class vector
1572
1686
  //! <b>Throws</b>: Nothing.
1573
1687
  //!
1574
1688
  //! <b>Complexity</b>: Constant.
1575
- reference back() BOOST_NOEXCEPT_OR_NOTHROW
1689
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline reference back() BOOST_NOEXCEPT_OR_NOTHROW
1576
1690
  {
1577
1691
  BOOST_ASSERT(!this->empty());
1578
- return this->m_holder.start()[this->m_holder.m_size - 1];
1692
+ return this->m_holder.start()[difference_type(this->m_holder.m_size - 1u)];
1579
1693
  }
1580
1694
 
1581
1695
  //! <b>Requires</b>: !empty()
@@ -1586,7 +1700,7 @@ class vector
1586
1700
  //! <b>Throws</b>: Nothing.
1587
1701
  //!
1588
1702
  //! <b>Complexity</b>: Constant.
1589
- const_reference back() const BOOST_NOEXCEPT_OR_NOTHROW
1703
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline const_reference back() const BOOST_NOEXCEPT_OR_NOTHROW
1590
1704
  {
1591
1705
  BOOST_ASSERT(!this->empty());
1592
1706
  return this->m_holder.start()[this->m_holder.m_size - 1];
@@ -1600,10 +1714,10 @@ class vector
1600
1714
  //! <b>Throws</b>: Nothing.
1601
1715
  //!
1602
1716
  //! <b>Complexity</b>: Constant.
1603
- reference operator[](size_type n) BOOST_NOEXCEPT_OR_NOTHROW
1717
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline reference operator[](size_type n) BOOST_NOEXCEPT_OR_NOTHROW
1604
1718
  {
1605
1719
  BOOST_ASSERT(this->m_holder.m_size > n);
1606
- return this->m_holder.start()[n];
1720
+ return this->m_holder.start()[difference_type(n)];
1607
1721
  }
1608
1722
 
1609
1723
  //! <b>Requires</b>: size() > n.
@@ -1614,7 +1728,8 @@ class vector
1614
1728
  //! <b>Throws</b>: Nothing.
1615
1729
  //!
1616
1730
  //! <b>Complexity</b>: Constant.
1617
- const_reference operator[](size_type n) const BOOST_NOEXCEPT_OR_NOTHROW
1731
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
1732
+ const_reference operator[](size_type n) const BOOST_NOEXCEPT_OR_NOTHROW
1618
1733
  {
1619
1734
  BOOST_ASSERT(this->m_holder.m_size > n);
1620
1735
  return this->m_holder.start()[n];
@@ -1631,10 +1746,11 @@ class vector
1631
1746
  //! <b>Complexity</b>: Constant.
1632
1747
  //!
1633
1748
  //! <b>Note</b>: Non-standard extension
1634
- iterator nth(size_type n) BOOST_NOEXCEPT_OR_NOTHROW
1749
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
1750
+ iterator nth(size_type n) BOOST_NOEXCEPT_OR_NOTHROW
1635
1751
  {
1636
1752
  BOOST_ASSERT(this->m_holder.m_size >= n);
1637
- return iterator(this->m_holder.start()+n);
1753
+ return iterator(this->m_holder.start()+difference_type(n));
1638
1754
  }
1639
1755
 
1640
1756
  //! <b>Requires</b>: size() >= n.
@@ -1648,10 +1764,11 @@ class vector
1648
1764
  //! <b>Complexity</b>: Constant.
1649
1765
  //!
1650
1766
  //! <b>Note</b>: Non-standard extension
1651
- const_iterator nth(size_type n) const BOOST_NOEXCEPT_OR_NOTHROW
1767
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
1768
+ const_iterator nth(size_type n) const BOOST_NOEXCEPT_OR_NOTHROW
1652
1769
  {
1653
1770
  BOOST_ASSERT(this->m_holder.m_size >= n);
1654
- return const_iterator(this->m_holder.start()+n);
1771
+ return const_iterator(this->m_holder.start()+difference_type(n));
1655
1772
  }
1656
1773
 
1657
1774
  //! <b>Requires</b>: begin() <= p <= end().
@@ -1664,7 +1781,8 @@ class vector
1664
1781
  //! <b>Complexity</b>: Constant.
1665
1782
  //!
1666
1783
  //! <b>Note</b>: Non-standard extension
1667
- size_type index_of(iterator p) BOOST_NOEXCEPT_OR_NOTHROW
1784
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
1785
+ size_type index_of(iterator p) BOOST_NOEXCEPT_OR_NOTHROW
1668
1786
  {
1669
1787
  //Range check assert done in priv_index_of
1670
1788
  return this->priv_index_of(vector_iterator_get_ptr(p));
@@ -1680,7 +1798,8 @@ class vector
1680
1798
  //! <b>Complexity</b>: Constant.
1681
1799
  //!
1682
1800
  //! <b>Note</b>: Non-standard extension
1683
- size_type index_of(const_iterator p) const BOOST_NOEXCEPT_OR_NOTHROW
1801
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline
1802
+ size_type index_of(const_iterator p) const BOOST_NOEXCEPT_OR_NOTHROW
1684
1803
  {
1685
1804
  //Range check assert done in priv_index_of
1686
1805
  return this->priv_index_of(vector_iterator_get_ptr(p));
@@ -1691,13 +1810,13 @@ class vector
1691
1810
  //! <b>Effects</b>: Returns a reference to the nth element
1692
1811
  //! from the beginning of the container.
1693
1812
  //!
1694
- //! <b>Throws</b>: std::range_error if n >= size()
1813
+ //! <b>Throws</b>: range_error if n >= size()
1695
1814
  //!
1696
1815
  //! <b>Complexity</b>: Constant.
1697
- reference at(size_type n)
1816
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline reference at(size_type n)
1698
1817
  {
1699
1818
  this->priv_throw_if_out_of_range(n);
1700
- return this->m_holder.start()[n];
1819
+ return this->m_holder.start()[difference_type(n)];
1701
1820
  }
1702
1821
 
1703
1822
  //! <b>Requires</b>: size() > n.
@@ -1705,10 +1824,10 @@ class vector
1705
1824
  //! <b>Effects</b>: Returns a const reference to the nth element
1706
1825
  //! from the beginning of the container.
1707
1826
  //!
1708
- //! <b>Throws</b>: std::range_error if n >= size()
1827
+ //! <b>Throws</b>: range_error if n >= size()
1709
1828
  //!
1710
1829
  //! <b>Complexity</b>: Constant.
1711
- const_reference at(size_type n) const
1830
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline const_reference at(size_type n) const
1712
1831
  {
1713
1832
  this->priv_throw_if_out_of_range(n);
1714
1833
  return this->m_holder.start()[n];
@@ -1726,7 +1845,7 @@ class vector
1726
1845
  //! <b>Throws</b>: Nothing.
1727
1846
  //!
1728
1847
  //! <b>Complexity</b>: Constant.
1729
- T* data() BOOST_NOEXCEPT_OR_NOTHROW
1848
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline T* data() BOOST_NOEXCEPT_OR_NOTHROW
1730
1849
  { return this->priv_raw_begin(); }
1731
1850
 
1732
1851
  //! <b>Returns</b>: A pointer such that [data(),data() + size()) is a valid range.
@@ -1735,7 +1854,7 @@ class vector
1735
1854
  //! <b>Throws</b>: Nothing.
1736
1855
  //!
1737
1856
  //! <b>Complexity</b>: Constant.
1738
- const T * data() const BOOST_NOEXCEPT_OR_NOTHROW
1857
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline const T * data() const BOOST_NOEXCEPT_OR_NOTHROW
1739
1858
  { return this->priv_raw_begin(); }
1740
1859
 
1741
1860
  //////////////////////////////////////////////
@@ -1755,19 +1874,19 @@ class vector
1755
1874
  //!
1756
1875
  //! <b>Complexity</b>: Amortized constant time.
1757
1876
  template<class ...Args>
1758
- BOOST_CONTAINER_FORCEINLINE reference emplace_back(BOOST_FWD_REF(Args)...args)
1877
+ inline reference emplace_back(BOOST_FWD_REF(Args)...args)
1759
1878
  {
1879
+ T* const p = this->priv_raw_end();
1760
1880
  if (BOOST_LIKELY(this->room_enough())){
1761
1881
  //There is more memory, just construct a new object at the end
1762
- T* const p = this->priv_raw_end();
1763
1882
  allocator_traits_type::construct(this->m_holder.alloc(), p, ::boost::forward<Args>(args)...);
1764
1883
  ++this->m_holder.m_size;
1765
1884
  return *p;
1766
1885
  }
1767
1886
  else{
1768
- typedef dtl::insert_emplace_proxy<Allocator, T*, Args...> type;
1769
- return *this->priv_forward_range_insert_no_capacity
1770
- (this->back_ptr(), 1, type(::boost::forward<Args>(args)...), alloc_version());
1887
+ typedef dtl::insert_emplace_proxy<allocator_type, Args...> proxy_t;
1888
+ return *this->priv_insert_forward_range_no_capacity
1889
+ (p, 1, proxy_t(::boost::forward<Args>(args)...), alloc_version());
1771
1890
  }
1772
1891
  }
1773
1892
 
@@ -1780,7 +1899,7 @@ class vector
1780
1899
  //!
1781
1900
  //! <b>Note</b>: Non-standard extension.
1782
1901
  template<class ...Args>
1783
- BOOST_CONTAINER_FORCEINLINE bool stable_emplace_back(BOOST_FWD_REF(Args)...args)
1902
+ inline bool stable_emplace_back(BOOST_FWD_REF(Args)...args)
1784
1903
  {
1785
1904
  const bool is_room_enough = this->room_enough() || (alloc_version::value == 2 && this->m_holder.try_expand_fwd(1u));
1786
1905
  if (BOOST_LIKELY(is_room_enough)){
@@ -1802,37 +1921,37 @@ class vector
1802
1921
  //! <b>Complexity</b>: If position is end(), amortized constant time
1803
1922
  //! Linear time otherwise.
1804
1923
  template<class ...Args>
1805
- iterator emplace(const_iterator position, BOOST_FWD_REF(Args) ...args)
1924
+ inline iterator emplace(const_iterator position, BOOST_FWD_REF(Args) ...args)
1806
1925
  {
1807
1926
  BOOST_ASSERT(this->priv_in_range_or_end(position));
1808
1927
  //Just call more general insert(pos, size, value) and return iterator
1809
- typedef dtl::insert_emplace_proxy<Allocator, T*, Args...> type;
1810
- return this->priv_forward_range_insert( vector_iterator_get_ptr(position), 1
1811
- , type(::boost::forward<Args>(args)...));
1928
+ typedef dtl::insert_emplace_proxy<allocator_type, Args...> proxy_t;
1929
+ return this->priv_insert_forward_range( vector_iterator_get_ptr(position), 1
1930
+ , proxy_t(::boost::forward<Args>(args)...));
1812
1931
  }
1813
1932
 
1814
1933
  #else // !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
1815
1934
 
1816
1935
  #define BOOST_CONTAINER_VECTOR_EMPLACE_CODE(N) \
1817
1936
  BOOST_MOVE_TMPL_LT##N BOOST_MOVE_CLASS##N BOOST_MOVE_GT##N \
1818
- BOOST_CONTAINER_FORCEINLINE reference emplace_back(BOOST_MOVE_UREF##N)\
1937
+ inline reference emplace_back(BOOST_MOVE_UREF##N)\
1819
1938
  {\
1939
+ T* const p = this->priv_raw_end();\
1820
1940
  if (BOOST_LIKELY(this->room_enough())){\
1821
- T* const p = this->priv_raw_end();\
1822
1941
  allocator_traits_type::construct (this->m_holder.alloc()\
1823
1942
  , this->priv_raw_end() BOOST_MOVE_I##N BOOST_MOVE_FWD##N);\
1824
1943
  ++this->m_holder.m_size;\
1825
1944
  return *p;\
1826
1945
  }\
1827
1946
  else{\
1828
- typedef dtl::insert_emplace_proxy_arg##N<Allocator, T* BOOST_MOVE_I##N BOOST_MOVE_TARG##N> type;\
1829
- return *this->priv_forward_range_insert_no_capacity\
1830
- ( this->back_ptr(), 1, type(BOOST_MOVE_FWD##N), alloc_version());\
1947
+ typedef dtl::insert_emplace_proxy_arg##N<allocator_type BOOST_MOVE_I##N BOOST_MOVE_TARG##N> proxy_t;\
1948
+ return *this->priv_insert_forward_range_no_capacity\
1949
+ ( p, 1, proxy_t(BOOST_MOVE_FWD##N), alloc_version());\
1831
1950
  }\
1832
1951
  }\
1833
1952
  \
1834
1953
  BOOST_MOVE_TMPL_LT##N BOOST_MOVE_CLASS##N BOOST_MOVE_GT##N \
1835
- BOOST_CONTAINER_FORCEINLINE bool stable_emplace_back(BOOST_MOVE_UREF##N)\
1954
+ inline bool stable_emplace_back(BOOST_MOVE_UREF##N)\
1836
1955
  {\
1837
1956
  const bool is_room_enough = this->room_enough() || (alloc_version::value == 2 && this->m_holder.try_expand_fwd(1u));\
1838
1957
  if (BOOST_LIKELY(is_room_enough)){\
@@ -1844,11 +1963,11 @@ class vector
1844
1963
  }\
1845
1964
  \
1846
1965
  BOOST_MOVE_TMPL_LT##N BOOST_MOVE_CLASS##N BOOST_MOVE_GT##N \
1847
- iterator emplace(const_iterator pos BOOST_MOVE_I##N BOOST_MOVE_UREF##N)\
1966
+ inline iterator emplace(const_iterator pos BOOST_MOVE_I##N BOOST_MOVE_UREF##N)\
1848
1967
  {\
1849
1968
  BOOST_ASSERT(this->priv_in_range_or_end(pos));\
1850
- typedef dtl::insert_emplace_proxy_arg##N<Allocator, T* BOOST_MOVE_I##N BOOST_MOVE_TARG##N> type;\
1851
- return this->priv_forward_range_insert(vector_iterator_get_ptr(pos), 1, type(BOOST_MOVE_FWD##N));\
1969
+ typedef dtl::insert_emplace_proxy_arg##N<allocator_type BOOST_MOVE_I##N BOOST_MOVE_TARG##N> proxy_t;\
1970
+ return this->priv_insert_forward_range(vector_iterator_get_ptr(pos), 1, proxy_t(BOOST_MOVE_FWD##N));\
1852
1971
  }\
1853
1972
  //
1854
1973
  BOOST_MOVE_ITERATE_0TO9(BOOST_CONTAINER_VECTOR_EMPLACE_CODE)
@@ -1910,11 +2029,11 @@ class vector
1910
2029
  //! <b>Throws</b>: If memory allocation throws or T's copy/move constructor throws.
1911
2030
  //!
1912
2031
  //! <b>Complexity</b>: Linear to n.
1913
- iterator insert(const_iterator p, size_type n, const T& x)
2032
+ inline iterator insert(const_iterator p, size_type n, const T& x)
1914
2033
  {
1915
2034
  BOOST_ASSERT(this->priv_in_range_or_end(p));
1916
- dtl::insert_n_copies_proxy<Allocator, T*> proxy(x);
1917
- return this->priv_forward_range_insert(vector_iterator_get_ptr(p), n, proxy);
2035
+ dtl::insert_n_copies_proxy<allocator_type> proxy(x);
2036
+ return this->priv_insert_forward_range(vector_iterator_get_ptr(p), n, proxy);
1918
2037
  }
1919
2038
 
1920
2039
  //! <b>Requires</b>: p must be a valid iterator of *this.
@@ -1939,18 +2058,18 @@ class vector
1939
2058
  )
1940
2059
  {
1941
2060
  BOOST_ASSERT(this->priv_in_range_or_end(pos));
1942
- const size_type n_pos = pos - this->cbegin();
2061
+ const size_type n_pos = size_type(pos - this->cbegin());
1943
2062
  iterator it(vector_iterator_get_ptr(pos));
1944
2063
  for(;first != last; ++first){
1945
2064
  it = this->emplace(it, *first);
1946
2065
  ++it;
1947
2066
  }
1948
- return iterator(this->m_holder.start() + n_pos);
2067
+ return iterator(this->m_holder.start() + difference_type(n_pos));
1949
2068
  }
1950
2069
 
1951
2070
  #if !defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
1952
2071
  template <class FwdIt>
1953
- iterator insert(const_iterator pos, FwdIt first, FwdIt last
2072
+ inline iterator insert(const_iterator pos, FwdIt first, FwdIt last
1954
2073
  , typename dtl::disable_if_or
1955
2074
  < void
1956
2075
  , dtl::is_convertible<FwdIt, size_type>
@@ -1958,9 +2077,15 @@ class vector
1958
2077
  >::type * = 0
1959
2078
  )
1960
2079
  {
2080
+ typedef typename iter_size<FwdIt>::type it_size_type;
1961
2081
  BOOST_ASSERT(this->priv_in_range_or_end(pos));
1962
- dtl::insert_range_proxy<Allocator, FwdIt, T*> proxy(first);
1963
- return this->priv_forward_range_insert(vector_iterator_get_ptr(pos), boost::container::iterator_distance(first, last), proxy);
2082
+ const it_size_type sz = boost::container::iterator_udistance(first, last);
2083
+ if (BOOST_UNLIKELY(sz > size_type(-1))){
2084
+ boost::container::throw_length_error("vector::insert, FwdIt's max length reached");
2085
+ }
2086
+
2087
+ dtl::insert_range_proxy<allocator_type, FwdIt> proxy(first);
2088
+ return this->priv_insert_forward_range(vector_iterator_get_ptr(pos), static_cast<size_type>(sz), proxy);
1964
2089
  }
1965
2090
  #endif
1966
2091
 
@@ -1981,14 +2106,14 @@ class vector
1981
2106
  //! a non-standard extension.
1982
2107
  #if !defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
1983
2108
  template <class InIt>
1984
- iterator insert(const_iterator pos, size_type num, InIt first, InIt last)
2109
+ inline iterator insert(const_iterator pos, size_type num, InIt first, InIt last)
1985
2110
  {
1986
2111
  BOOST_ASSERT(this->priv_in_range_or_end(pos));
1987
2112
  BOOST_ASSERT(dtl::is_input_iterator<InIt>::value ||
1988
- num == static_cast<size_type>(boost::container::iterator_distance(first, last)));
2113
+ num == boost::container::iterator_udistance(first, last));
1989
2114
  (void)last;
1990
- dtl::insert_range_proxy<Allocator, InIt, T*> proxy(first);
1991
- return this->priv_forward_range_insert(vector_iterator_get_ptr(pos), num, proxy);
2115
+ dtl::insert_range_proxy<allocator_type, InIt> proxy(first);
2116
+ return this->priv_insert_forward_range(vector_iterator_get_ptr(pos), num, proxy);
1992
2117
  }
1993
2118
  #endif
1994
2119
 
@@ -2000,7 +2125,7 @@ class vector
2000
2125
  //! <b>Returns</b>: an iterator to the first inserted element or position if first == last.
2001
2126
  //!
2002
2127
  //! <b>Complexity</b>: Linear to the range [il.begin(), il.end()).
2003
- iterator insert(const_iterator position, std::initializer_list<value_type> il)
2128
+ inline iterator insert(const_iterator position, std::initializer_list<value_type> il)
2004
2129
  {
2005
2130
  //Assertion done in insert()
2006
2131
  return this->insert(position, il.begin(), il.end());
@@ -2012,11 +2137,12 @@ class vector
2012
2137
  //! <b>Throws</b>: Nothing.
2013
2138
  //!
2014
2139
  //! <b>Complexity</b>: Constant time.
2015
- void pop_back() BOOST_NOEXCEPT_OR_NOTHROW
2140
+ inline void pop_back() BOOST_NOEXCEPT_OR_NOTHROW
2016
2141
  {
2017
2142
  BOOST_ASSERT(!this->empty());
2018
2143
  //Destroy last element
2019
- this->priv_destroy_last();
2144
+ allocator_traits_type::destroy(this->get_stored_allocator(), this->priv_raw_end() - 1);
2145
+ --this->m_holder.m_size;
2020
2146
  }
2021
2147
 
2022
2148
  //! <b>Effects</b>: Erases the element at position pos.
@@ -2030,10 +2156,16 @@ class vector
2030
2156
  BOOST_ASSERT(this->priv_in_range(position));
2031
2157
  const pointer p = vector_iterator_get_ptr(position);
2032
2158
  T *const pos_ptr = boost::movelib::to_raw_pointer(p);
2033
- T *const beg_ptr = this->priv_raw_begin();
2034
- T *const new_end_ptr = ::boost::container::move(pos_ptr + 1, beg_ptr + this->m_holder.m_size, pos_ptr);
2159
+ T *const end_ptr = this->priv_raw_end();
2160
+
2035
2161
  //Move elements forward and destroy last
2036
- this->priv_destroy_last(pos_ptr != new_end_ptr);
2162
+ (void)::boost::container::move(pos_ptr + 1, end_ptr, pos_ptr);
2163
+
2164
+ T *const last_ptr = end_ptr-1;
2165
+ if(!value_traits::trivial_dctr_after_move || pos_ptr == last_ptr){
2166
+ allocator_traits_type::destroy(this->get_stored_allocator(), last_ptr);
2167
+ }
2168
+ --this->m_holder.m_size;
2037
2169
  return iterator(p);
2038
2170
  }
2039
2171
 
@@ -2045,15 +2177,19 @@ class vector
2045
2177
  //! plus linear to the elements between pos and the last element.
2046
2178
  iterator erase(const_iterator first, const_iterator last)
2047
2179
  {
2048
- if (first != last){
2049
- BOOST_ASSERT(this->priv_in_range(first));
2050
- BOOST_ASSERT(this->priv_in_range_or_end(last));
2051
- BOOST_ASSERT(first < last);
2180
+ BOOST_ASSERT(this->priv_in_range_or_end(first));
2181
+ BOOST_ASSERT(this->priv_in_range_or_end(last));
2182
+ BOOST_ASSERT(first <= last);
2183
+ if(first != last){
2052
2184
  T* const old_end_ptr = this->priv_raw_end();
2053
2185
  T* const first_ptr = boost::movelib::to_raw_pointer(vector_iterator_get_ptr(first));
2054
2186
  T* const last_ptr = boost::movelib::to_raw_pointer(vector_iterator_get_ptr(last));
2055
- T* const ptr = boost::movelib::to_raw_pointer(boost::container::move(last_ptr, old_end_ptr, first_ptr));
2056
- this->priv_destroy_last_n(old_end_ptr - ptr);
2187
+ T* const new_last_ptr = boost::movelib::to_raw_pointer(boost::container::move(last_ptr, old_end_ptr, first_ptr));
2188
+ const size_type n = static_cast<size_type>(old_end_ptr - new_last_ptr);
2189
+ if(!value_traits::trivial_dctr_after_move || old_end_ptr == last_ptr){
2190
+ boost::container::destroy_alloc_n(this->get_stored_allocator(), new_last_ptr, n);
2191
+ }
2192
+ this->m_holder.dec_stored_size(n);
2057
2193
  }
2058
2194
  return iterator(vector_iterator_get_ptr(first));
2059
2195
  }
@@ -2063,12 +2199,12 @@ class vector
2063
2199
  //! <b>Throws</b>: Nothing.
2064
2200
  //!
2065
2201
  //! <b>Complexity</b>: Constant.
2066
- BOOST_CONTAINER_FORCEINLINE void swap(vector& x)
2202
+ inline void swap(vector& x)
2067
2203
  BOOST_NOEXCEPT_IF( ((allocator_traits_type::propagate_on_container_swap::value
2068
2204
  || allocator_traits_type::is_always_equal::value) &&
2069
- !dtl::is_version<Allocator, 0>::value))
2205
+ !dtl::is_version<allocator_type, 0>::value))
2070
2206
  {
2071
- this->priv_swap(x, dtl::bool_<dtl::is_version<Allocator, 0>::value>());
2207
+ this->priv_swap(x, dtl::bool_<dtl::is_version<allocator_type, 0>::value>());
2072
2208
  }
2073
2209
 
2074
2210
  #ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
@@ -2080,12 +2216,12 @@ class vector
2080
2216
  //! <b>Complexity</b>: Linear
2081
2217
  //!
2082
2218
  //! <b>Note</b>: Non-standard extension to support static_vector
2083
- template<class OtherAllocator>
2084
- BOOST_CONTAINER_FORCEINLINE void swap(vector<T, OtherAllocator> & x
2219
+ template<class OtherA>
2220
+ inline void swap(vector<T, OtherA, Options> & x
2085
2221
  , typename dtl::enable_if_and
2086
2222
  < void
2087
- , dtl::is_version<OtherAllocator, 0>
2088
- , dtl::is_different<OtherAllocator, allocator_type>
2223
+ , dtl::is_version<typename real_allocator<T, OtherA>::type, 0>
2224
+ , dtl::is_different<typename real_allocator<T, OtherA>::type, allocator_type>
2089
2225
  >::type * = 0
2090
2226
  )
2091
2227
  { this->m_holder.deep_swap(x.m_holder); }
@@ -2097,57 +2233,50 @@ class vector
2097
2233
  //! <b>Throws</b>: Nothing.
2098
2234
  //!
2099
2235
  //! <b>Complexity</b>: Linear to the number of elements in the container.
2100
- BOOST_CONTAINER_FORCEINLINE void clear() BOOST_NOEXCEPT_OR_NOTHROW
2236
+ inline void clear() BOOST_NOEXCEPT_OR_NOTHROW
2101
2237
  { this->priv_destroy_all(); }
2102
2238
 
2103
2239
  //! <b>Effects</b>: Returns true if x and y are equal
2104
2240
  //!
2105
2241
  //! <b>Complexity</b>: Linear to the number of elements in the container.
2106
- BOOST_CONTAINER_FORCEINLINE friend bool operator==(const vector& x, const vector& y)
2242
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline friend bool operator==(const vector& x, const vector& y)
2107
2243
  { return x.size() == y.size() && ::boost::container::algo_equal(x.begin(), x.end(), y.begin()); }
2108
2244
 
2109
2245
  //! <b>Effects</b>: Returns true if x and y are unequal
2110
2246
  //!
2111
2247
  //! <b>Complexity</b>: Linear to the number of elements in the container.
2112
- BOOST_CONTAINER_FORCEINLINE friend bool operator!=(const vector& x, const vector& y)
2248
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline friend bool operator!=(const vector& x, const vector& y)
2113
2249
  { return !(x == y); }
2114
2250
 
2115
2251
  //! <b>Effects</b>: Returns true if x is less than y
2116
2252
  //!
2117
2253
  //! <b>Complexity</b>: Linear to the number of elements in the container.
2118
- friend bool operator<(const vector& x, const vector& y)
2119
- {
2120
- const_iterator first1(x.cbegin()), first2(y.cbegin());
2121
- const const_iterator last1(x.cend()), last2(y.cend());
2122
- for ( ; (first1 != last1) && (first2 != last2); ++first1, ++first2 ) {
2123
- if (*first1 < *first2) return true;
2124
- if (*first2 < *first1) return false;
2125
- }
2126
- return (first1 == last1) && (first2 != last2);
2127
- }
2254
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD friend bool operator<(const vector& x, const vector& y)
2255
+ { return boost::container::algo_lexicographical_compare(x.begin(), x.end(), y.begin(), y.end()); }
2128
2256
 
2129
2257
  //! <b>Effects</b>: Returns true if x is greater than y
2130
2258
  //!
2131
2259
  //! <b>Complexity</b>: Linear to the number of elements in the container.
2132
- BOOST_CONTAINER_FORCEINLINE friend bool operator>(const vector& x, const vector& y)
2260
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline friend bool operator>(const vector& x, const vector& y)
2133
2261
  { return y < x; }
2134
2262
 
2135
2263
  //! <b>Effects</b>: Returns true if x is equal or less than y
2136
2264
  //!
2137
2265
  //! <b>Complexity</b>: Linear to the number of elements in the container.
2138
- BOOST_CONTAINER_FORCEINLINE friend bool operator<=(const vector& x, const vector& y)
2266
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline friend bool operator<=(const vector& x, const vector& y)
2139
2267
  { return !(y < x); }
2140
2268
 
2141
2269
  //! <b>Effects</b>: Returns true if x is equal or greater than y
2142
2270
  //!
2143
2271
  //! <b>Complexity</b>: Linear to the number of elements in the container.
2144
- BOOST_CONTAINER_FORCEINLINE friend bool operator>=(const vector& x, const vector& y)
2272
+ BOOST_CONTAINER_ATTRIBUTE_NODISCARD inline friend bool operator>=(const vector& x, const vector& y)
2145
2273
  { return !(x < y); }
2146
2274
 
2147
2275
  //! <b>Effects</b>: x.swap(y)
2148
2276
  //!
2149
2277
  //! <b>Complexity</b>: Constant.
2150
- BOOST_CONTAINER_FORCEINLINE friend void swap(vector& x, vector& y)
2278
+ inline friend void swap(vector& x, vector& y)
2279
+ BOOST_NOEXCEPT_IF(BOOST_NOEXCEPT(x.swap(y)))
2151
2280
  { x.swap(y); }
2152
2281
 
2153
2282
  #ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
@@ -2163,23 +2292,23 @@ class vector
2163
2292
  bool stable_reserve(size_type new_cap)
2164
2293
  {
2165
2294
  const size_type cp = this->capacity();
2166
- return cp >= new_cap || (alloc_version::value == 2 && this->m_holder.try_expand_fwd(new_cap - cp));
2295
+ return cp >= new_cap || (alloc_version::value == 2 && this->m_holder.try_expand_fwd(size_type(new_cap - cp)));
2167
2296
  }
2168
2297
 
2169
2298
  //Absolutely experimental. This function might change, disappear or simply crash!
2170
2299
  template<class BiDirPosConstIt, class BiDirValueIt>
2171
- BOOST_CONTAINER_FORCEINLINE void insert_ordered_at(const size_type element_count, BiDirPosConstIt last_position_it, BiDirValueIt last_value_it)
2300
+ inline void insert_ordered_at(const size_type element_count, BiDirPosConstIt last_position_it, BiDirValueIt last_value_it)
2172
2301
  {
2173
2302
  typedef vector_insert_ordered_cursor<BiDirPosConstIt, BiDirValueIt> inserter_t;
2174
2303
  return this->priv_insert_ordered_at(element_count, inserter_t(last_position_it, last_value_it));
2175
2304
  }
2176
2305
 
2177
2306
  template<class InputIt>
2178
- BOOST_CONTAINER_FORCEINLINE void merge(InputIt first, InputIt last)
2307
+ inline void merge(InputIt first, InputIt last)
2179
2308
  { this->merge(first, last, value_less_t()); }
2180
2309
 
2181
2310
  template<class InputIt, class Compare>
2182
- BOOST_CONTAINER_FORCEINLINE void merge(InputIt first, InputIt last, Compare comp)
2311
+ inline void merge(InputIt first, InputIt last, Compare comp)
2183
2312
  {
2184
2313
  size_type const s = this->size();
2185
2314
  size_type const c = this->capacity();
@@ -2187,7 +2316,7 @@ class vector
2187
2316
  size_type const free_cap = c - s;
2188
2317
  //If not input iterator and new elements don't fit in the remaining capacity, merge in new buffer
2189
2318
  if(!dtl::is_input_iterator<InputIt>::value &&
2190
- free_cap < (n = static_cast<size_type>(boost::container::iterator_distance(first, last)))){
2319
+ free_cap < (n = boost::container::iterator_udistance(first, last))){
2191
2320
  this->priv_merge_in_new_buffer(first, n, comp, alloc_version());
2192
2321
  }
2193
2322
  else{
@@ -2200,11 +2329,11 @@ class vector
2200
2329
  }
2201
2330
 
2202
2331
  template<class InputIt>
2203
- BOOST_CONTAINER_FORCEINLINE void merge_unique(InputIt first, InputIt last)
2332
+ inline void merge_unique(InputIt first, InputIt last)
2204
2333
  { this->merge_unique(first, last, value_less_t()); }
2205
2334
 
2206
2335
  template<class InputIt, class Compare>
2207
- BOOST_CONTAINER_FORCEINLINE void merge_unique(InputIt first, InputIt last, Compare comp)
2336
+ inline void merge_unique(InputIt first, InputIt last, Compare comp)
2208
2337
  {
2209
2338
  size_type const old_size = this->size();
2210
2339
  this->priv_set_difference_back(first, last, comp);
@@ -2254,14 +2383,14 @@ class vector
2254
2383
  else{
2255
2384
  //Hole was just filled, disable exception rollback and change vector size
2256
2385
  past_hole_values_destroyer.release();
2257
- this->m_holder.m_size += element_count;
2386
+ this->m_holder.inc_stored_size(element_count);
2258
2387
  }
2259
2388
  }
2260
2389
  else{
2261
2390
  if(old_hole_size){
2262
2391
  //Hole was just filled by priv_insert_ordered_at_shift_range, disable exception rollback and change vector size
2263
2392
  past_hole_values_destroyer.release();
2264
- this->m_holder.m_size += element_count;
2393
+ this->m_holder.inc_stored_size(element_count);
2265
2394
  }
2266
2395
  //Insert the new value in the already constructed range
2267
2396
  begin_ptr[pos + insertions_left - 1] = position_value.get_val();
@@ -2307,9 +2436,9 @@ class vector
2307
2436
  }
2308
2437
 
2309
2438
  template<class FwdIt, class Compare>
2310
- BOOST_CONTAINER_FORCEINLINE void priv_merge_in_new_buffer(FwdIt, size_type, Compare, version_0)
2439
+ inline void priv_merge_in_new_buffer(FwdIt, size_type, Compare, version_0)
2311
2440
  {
2312
- throw_bad_alloc();
2441
+ alloc_holder_t::on_capacity_overflow();
2313
2442
  }
2314
2443
 
2315
2444
  template<class FwdIt, class Compare, class Version>
@@ -2359,50 +2488,55 @@ class vector
2359
2488
  pointer const old_p = this->m_holder.start();
2360
2489
  size_type const old_cap = this->m_holder.capacity();
2361
2490
  boost::container::destroy_alloc_n(a, boost::movelib::to_raw_pointer(old_p), old_size);
2362
- this->m_holder.deallocate(old_p, old_cap);
2363
- this->m_holder.m_size = old_size + added;
2491
+ if (old_cap > 0) {
2492
+ this->m_holder.deallocate(old_p, old_cap);
2493
+ }
2494
+ m_holder.set_stored_size(old_size + added);
2364
2495
  this->m_holder.start(new_storage);
2365
2496
  this->m_holder.capacity(new_cap);
2366
2497
  new_buffer_deallocator.release();
2367
2498
  new_values_destroyer.release();
2368
2499
  }
2369
2500
 
2370
- BOOST_CONTAINER_FORCEINLINE bool room_enough() const
2371
- { return this->m_holder.m_size < this->m_holder.capacity(); }
2501
+ inline bool room_enough() const
2502
+ { return this->m_holder.m_size != this->m_holder.capacity(); }
2372
2503
 
2373
- BOOST_CONTAINER_FORCEINLINE pointer back_ptr() const
2374
- { return this->m_holder.start() + this->m_holder.m_size; }
2504
+ inline pointer back_ptr() const
2505
+ { return this->m_holder.start() + difference_type(this->m_holder.m_size); }
2375
2506
 
2376
- size_type priv_index_of(pointer p) const
2507
+ inline size_type priv_index_of(pointer p) const
2377
2508
  {
2378
2509
  BOOST_ASSERT(this->m_holder.start() <= p);
2379
- BOOST_ASSERT(p <= (this->m_holder.start()+this->size()));
2510
+ BOOST_ASSERT(p <= (this->m_holder.start()+difference_type(this->size())));
2380
2511
  return static_cast<size_type>(p - this->m_holder.start());
2381
2512
  }
2382
2513
 
2383
- template<class OtherAllocator>
2384
- void priv_move_assign(BOOST_RV_REF_BEG vector<T, OtherAllocator> BOOST_RV_REF_END x
2514
+ template<class OtherA>
2515
+ void priv_move_assign(BOOST_RV_REF_BEG vector<T, OtherA, Options> BOOST_RV_REF_END x
2385
2516
  , typename dtl::enable_if_c
2386
- < dtl::is_version<OtherAllocator, 0>::value >::type * = 0)
2517
+ < dtl::is_version<typename real_allocator<T, OtherA>::type, 0>::value >::type * = 0)
2387
2518
  {
2388
- if(!dtl::is_same<OtherAllocator, allocator_type>::value &&
2519
+ if(!dtl::is_same<typename real_allocator<T, OtherA>::type, allocator_type>::value &&
2389
2520
  this->capacity() < x.size()){
2390
- throw_bad_alloc();
2521
+ alloc_holder_t::on_capacity_overflow();
2391
2522
  }
2392
2523
  T* const this_start = this->priv_raw_begin();
2393
2524
  T* const other_start = x.priv_raw_begin();
2394
2525
  const size_type this_sz = m_holder.m_size;
2395
2526
  const size_type other_sz = static_cast<size_type>(x.m_holder.m_size);
2396
2527
  boost::container::move_assign_range_alloc_n(this->m_holder.alloc(), other_start, other_sz, this_start, this_sz);
2397
- this->m_holder.m_size = other_sz;
2528
+ m_holder.set_stored_size(other_sz);
2529
+ //Not emptying the source container seems to be confusing for users as drop-in
2530
+ //replacement for non-static vectors, so clear it.
2531
+ x.clear();
2398
2532
  }
2399
2533
 
2400
- template<class OtherAllocator>
2401
- void priv_move_assign(BOOST_RV_REF_BEG vector<T, OtherAllocator> BOOST_RV_REF_END x
2534
+ template<class OtherA>
2535
+ void priv_move_assign(BOOST_RV_REF_BEG vector<T, OtherA, Options> BOOST_RV_REF_END x
2402
2536
  , typename dtl::disable_if_or
2403
2537
  < void
2404
- , dtl::is_version<OtherAllocator, 0>
2405
- , dtl::is_different<OtherAllocator, allocator_type>
2538
+ , dtl::is_version<typename real_allocator<T, OtherA>::type, 0>
2539
+ , dtl::is_different<typename real_allocator<T, OtherA>::type, allocator_type>
2406
2540
  >::type * = 0)
2407
2541
  {
2408
2542
  //for move assignment, no aliasing (&x != this) is assumed.
@@ -2412,6 +2546,7 @@ class vector
2412
2546
  allocator_type &x_alloc = x.m_holder.alloc();
2413
2547
  const bool propagate_alloc = allocator_traits_type::propagate_on_container_move_assignment::value;
2414
2548
 
2549
+ //In this allocator move constructor the allocator maybe will be propagated -----------------------v
2415
2550
  const bool is_propagable_from_x = is_propagable_from(x_alloc, x.m_holder.start(), this_alloc, propagate_alloc);
2416
2551
 
2417
2552
  //Resources can be transferred if both allocators are
@@ -2422,40 +2557,42 @@ class vector
2422
2557
  this->m_holder.deallocate(this->m_holder.m_start, this->m_holder.m_capacity);
2423
2558
  this->m_holder.steal_resources(x.m_holder);
2424
2559
  }
2425
- //Else do a one by one move
2560
+ //Else do a one by one move. Also, clear the source as users find confusing
2561
+ //elements are still alive in the source container.
2426
2562
  else{
2427
2563
  this->assign( boost::make_move_iterator(boost::movelib::iterator_to_raw_pointer(x.begin()))
2428
2564
  , boost::make_move_iterator(boost::movelib::iterator_to_raw_pointer(x.end() ))
2429
2565
  );
2566
+ x.clear();
2430
2567
  }
2431
2568
  //Move allocator if needed
2432
2569
  dtl::move_alloc(this_alloc, x_alloc, dtl::bool_<propagate_alloc>());
2433
2570
  }
2434
2571
 
2435
- template<class OtherAllocator>
2436
- void priv_copy_assign(const vector<T, OtherAllocator> &x
2572
+ template<class OtherA>
2573
+ void priv_copy_assign(const vector<T, OtherA, Options> &x
2437
2574
  , typename dtl::enable_if_c
2438
- < dtl::is_version<OtherAllocator, 0>::value >::type * = 0)
2575
+ < dtl::is_version<typename real_allocator<T, OtherA>::type, 0>::value >::type * = 0)
2439
2576
  {
2440
- if(!dtl::is_same<OtherAllocator, allocator_type>::value &&
2577
+ if(!dtl::is_same<typename real_allocator<T, OtherA>::type, allocator_type>::value &&
2441
2578
  this->capacity() < x.size()){
2442
- throw_bad_alloc();
2579
+ alloc_holder_t::on_capacity_overflow();
2443
2580
  }
2444
2581
  T* const this_start = this->priv_raw_begin();
2445
2582
  T* const other_start = x.priv_raw_begin();
2446
2583
  const size_type this_sz = m_holder.m_size;
2447
2584
  const size_type other_sz = static_cast<size_type>(x.m_holder.m_size);
2448
2585
  boost::container::copy_assign_range_alloc_n(this->m_holder.alloc(), other_start, other_sz, this_start, this_sz);
2449
- this->m_holder.m_size = other_sz;
2586
+ m_holder.set_stored_size(other_sz);
2450
2587
  }
2451
2588
 
2452
- template<class OtherAllocator>
2589
+ template<class OtherA>
2453
2590
  typename dtl::disable_if_or
2454
2591
  < void
2455
- , dtl::is_version<OtherAllocator, 0>
2456
- , dtl::is_different<OtherAllocator, allocator_type>
2592
+ , dtl::is_version<typename real_allocator<T, OtherA>::type, 0>
2593
+ , dtl::is_different<typename real_allocator<T, OtherA>::type, allocator_type>
2457
2594
  >::type
2458
- priv_copy_assign(const vector<T, OtherAllocator> &x)
2595
+ priv_copy_assign(const vector<T, OtherA, Options> &x)
2459
2596
  {
2460
2597
  allocator_type &this_alloc = this->m_holder.alloc();
2461
2598
  const allocator_type &x_alloc = x.m_holder.alloc();
@@ -2470,63 +2607,75 @@ class vector
2470
2607
  }
2471
2608
 
2472
2609
  template<class Vector> //Template it to avoid it in explicit instantiations
2473
- void priv_swap(Vector &x, dtl::true_type) //version_0
2610
+ inline void priv_swap(Vector &x, dtl::true_type) //version_0
2474
2611
  { this->m_holder.deep_swap(x.m_holder); }
2475
2612
 
2476
2613
  template<class Vector> //Template it to avoid it in explicit instantiations
2477
2614
  void priv_swap(Vector &x, dtl::false_type) //version_N
2478
2615
  {
2479
2616
  const bool propagate_alloc = allocator_traits_type::propagate_on_container_swap::value;
2480
- if(are_swap_propagable( this->get_stored_allocator(), this->m_holder.start()
2481
- , x.get_stored_allocator(), x.m_holder.start(), propagate_alloc)){
2617
+ if (BOOST_UNLIKELY(&x == this)){
2618
+ return;
2619
+ }
2620
+ else if(are_swap_propagable( this->get_stored_allocator(), this->m_holder.start()
2621
+ , x.get_stored_allocator(), x.m_holder.start(), propagate_alloc)){
2482
2622
  //Just swap internals
2483
2623
  this->m_holder.swap_resources(x.m_holder);
2484
2624
  }
2485
2625
  else{
2486
- if (BOOST_UNLIKELY(&x == this))
2487
- return;
2488
-
2489
2626
  //Else swap element by element...
2490
2627
  bool const t_smaller = this->size() < x.size();
2491
2628
  vector &sml = t_smaller ? *this : x;
2492
2629
  vector &big = t_smaller ? x : *this;
2493
2630
 
2494
- size_type const common_elements = sml.size();
2495
- for(size_type i = 0; i != common_elements; ++i){
2496
- boost::adl_move_swap(sml[i], big[i]);
2631
+ //For empty containers, maybe storage can be moved from the other (just like in the move constructor)
2632
+ if(sml.empty() && is_propagable_from(big.get_stored_allocator(), big.data(), sml.get_allocator(), propagate_alloc)){
2633
+ if(BOOST_LIKELY(0u != sml.capacity()))
2634
+ sml.m_holder.deallocate(sml.m_holder.m_start, sml.m_holder.m_capacity);
2635
+ sml.steal_resources(big);
2636
+ }
2637
+ else {
2638
+ //Else swap element by element...
2639
+ size_type const common_elements = sml.size();
2640
+ for(size_type i = 0; i != common_elements; ++i){
2641
+ boost::adl_move_swap(sml[i], big[i]);
2642
+ }
2643
+ //... and move-insert the remaining range
2644
+ sml.insert( sml.cend()
2645
+ , boost::make_move_iterator(boost::movelib::iterator_to_raw_pointer(big.nth(common_elements)))
2646
+ , boost::make_move_iterator(boost::movelib::iterator_to_raw_pointer(big.end()))
2647
+ );
2648
+ //Destroy remaining elements
2649
+ big.erase(big.nth(common_elements), big.cend());
2497
2650
  }
2498
- //... and move-insert the remaining range
2499
- sml.insert( sml.cend()
2500
- , boost::make_move_iterator(boost::movelib::iterator_to_raw_pointer(big.nth(common_elements)))
2501
- , boost::make_move_iterator(boost::movelib::iterator_to_raw_pointer(big.end()))
2502
- );
2503
- //Destroy remaining elements
2504
- big.erase(big.nth(common_elements), big.cend());
2505
2651
  }
2506
2652
  //And now swap the allocator
2507
2653
  dtl::swap_alloc(this->m_holder.alloc(), x.m_holder.alloc(), dtl::bool_<propagate_alloc>());
2508
2654
  }
2509
2655
 
2510
- void priv_reserve_no_capacity(size_type, version_0)
2511
- { throw_bad_alloc(); }
2656
+ inline void priv_move_to_new_buffer(size_type, version_0)
2657
+ { alloc_holder_t::on_capacity_overflow(); }
2512
2658
 
2513
- dtl::insert_range_proxy<Allocator, boost::move_iterator<T*>, T*> priv_dummy_empty_proxy()
2659
+ inline dtl::insert_range_proxy<allocator_type, boost::move_iterator<T*> > priv_dummy_empty_proxy()
2514
2660
  {
2515
- return dtl::insert_range_proxy<Allocator, boost::move_iterator<T*>, T*>
2661
+ return dtl::insert_range_proxy<allocator_type, boost::move_iterator<T*> >
2516
2662
  (::boost::make_move_iterator((T *)0));
2517
2663
  }
2518
2664
 
2519
- void priv_reserve_no_capacity(size_type new_cap, version_1)
2665
+ inline void priv_move_to_new_buffer(size_type new_cap, version_1)
2520
2666
  {
2521
2667
  //There is not enough memory, allocate a new buffer
2522
2668
  //Pass the hint so that allocators can take advantage of this.
2523
2669
  pointer const p = this->m_holder.allocate(new_cap);
2670
+ #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
2671
+ ++this->num_alloc;
2672
+ #endif
2524
2673
  //We will reuse insert code, so create a dummy input iterator
2525
- this->priv_forward_range_insert_new_allocation
2674
+ this->priv_insert_forward_range_new_allocation
2526
2675
  ( boost::movelib::to_raw_pointer(p), new_cap, this->priv_raw_end(), 0, this->priv_dummy_empty_proxy());
2527
2676
  }
2528
2677
 
2529
- void priv_reserve_no_capacity(size_type new_cap, version_2)
2678
+ void priv_move_to_new_buffer(size_type new_cap, version_2)
2530
2679
  {
2531
2680
  //There is not enough memory, allocate a new
2532
2681
  //buffer or expand the old one.
@@ -2550,38 +2699,24 @@ class vector
2550
2699
  #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
2551
2700
  ++this->num_expand_bwd;
2552
2701
  #endif
2553
- this->priv_forward_range_insert_expand_backwards
2554
- ( new_mem , real_cap, ins_pos, 0, this->priv_dummy_empty_proxy());
2702
+ this->priv_insert_forward_range_expand_backwards
2703
+ ( new_mem, real_cap, ins_pos, 0, this->priv_dummy_empty_proxy());
2555
2704
  }
2556
2705
  else{ //New buffer
2557
2706
  #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
2558
2707
  ++this->num_alloc;
2559
2708
  #endif
2560
- this->priv_forward_range_insert_new_allocation
2709
+ this->priv_insert_forward_range_new_allocation
2561
2710
  ( new_mem, real_cap, ins_pos, 0, this->priv_dummy_empty_proxy());
2562
2711
  }
2563
2712
  }
2564
2713
  }
2565
2714
 
2566
- void priv_destroy_last(const bool moved = false) BOOST_NOEXCEPT_OR_NOTHROW
2567
- {
2568
- (void)moved;
2569
- const bool skip_destructor = value_traits::trivial_dctr || (value_traits::trivial_dctr_after_move && moved);
2570
- if(!skip_destructor){
2571
- value_type* const p = this->priv_raw_end() - 1;
2572
- allocator_traits_type::destroy(this->get_stored_allocator(), p);
2573
- }
2574
- --this->m_holder.m_size;
2575
- }
2576
-
2577
2715
  void priv_destroy_last_n(const size_type n) BOOST_NOEXCEPT_OR_NOTHROW
2578
2716
  {
2579
2717
  BOOST_ASSERT(n <= this->m_holder.m_size);
2580
- if(!value_traits::trivial_dctr){
2581
- T* const destroy_pos = this->priv_raw_begin() + (this->m_holder.m_size-n);
2582
- boost::container::destroy_alloc_n(this->get_stored_allocator(), destroy_pos, n);
2583
- }
2584
- this->m_holder.m_size -= n;
2718
+ boost::container::destroy_alloc_n(this->get_stored_allocator(), this->priv_raw_end() - n, n);
2719
+ this->m_holder.dec_stored_size(n);
2585
2720
  }
2586
2721
 
2587
2722
  template<class InpIt>
@@ -2589,7 +2724,7 @@ class vector
2589
2724
  {
2590
2725
  T* const old_end_pos = this->priv_raw_end();
2591
2726
  T* const new_end_pos = boost::container::uninitialized_copy_alloc(this->m_holder.alloc(), first, last, old_end_pos);
2592
- this->m_holder.m_size += new_end_pos - old_end_pos;
2727
+ this->m_holder.inc_stored_size(static_cast<size_type>(new_end_pos - old_end_pos));
2593
2728
  }
2594
2729
 
2595
2730
  void priv_destroy_all() BOOST_NOEXCEPT_OR_NOTHROW
@@ -2600,59 +2735,34 @@ class vector
2600
2735
  }
2601
2736
 
2602
2737
  template<class U>
2603
- iterator priv_insert(const const_iterator &p, BOOST_FWD_REF(U) x)
2738
+ inline iterator priv_insert(const const_iterator &p, BOOST_FWD_REF(U) u)
2604
2739
  {
2605
- BOOST_ASSERT(this->priv_in_range_or_end(p));
2606
- return this->priv_forward_range_insert
2607
- ( vector_iterator_get_ptr(p), 1, dtl::get_insert_value_proxy<T*, Allocator>(::boost::forward<U>(x)));
2740
+ return this->emplace(p, ::boost::forward<U>(u));
2608
2741
  }
2609
2742
 
2610
- dtl::insert_copy_proxy<Allocator, T*> priv_single_insert_proxy(const T &x)
2611
- { return dtl::insert_copy_proxy<Allocator, T*> (x); }
2612
-
2613
- dtl::insert_move_proxy<Allocator, T*> priv_single_insert_proxy(BOOST_RV_REF(T) x)
2614
- { return dtl::insert_move_proxy<Allocator, T*> (x); }
2615
-
2616
2743
  template <class U>
2617
- void priv_push_back(BOOST_FWD_REF(U) u)
2744
+ inline void priv_push_back(BOOST_FWD_REF(U) u)
2618
2745
  {
2619
- if (BOOST_LIKELY(this->room_enough())){
2620
- //There is more memory, just construct a new object at the end
2621
- allocator_traits_type::construct
2622
- ( this->m_holder.alloc(), this->priv_raw_end(), ::boost::forward<U>(u) );
2623
- ++this->m_holder.m_size;
2624
- }
2625
- else{
2626
- this->priv_forward_range_insert_no_capacity
2627
- ( this->back_ptr(), 1
2628
- , this->priv_single_insert_proxy(::boost::forward<U>(u)), alloc_version());
2629
- }
2746
+ this->emplace_back(::boost::forward<U>(u));
2630
2747
  }
2631
2748
 
2632
- BOOST_CONTAINER_FORCEINLINE dtl::insert_n_copies_proxy<Allocator, T*> priv_resize_proxy(const T &x)
2633
- { return dtl::insert_n_copies_proxy<Allocator, T*>(x); }
2749
+ //Overload to support compiler errors that instantiate too much
2750
+ inline void priv_push_back(::boost::move_detail::nat)
2751
+ {}
2634
2752
 
2635
- BOOST_CONTAINER_FORCEINLINE dtl::insert_default_initialized_n_proxy<Allocator, T*> priv_resize_proxy(default_init_t)
2636
- { return dtl::insert_default_initialized_n_proxy<Allocator, T*>(); }
2753
+ inline iterator priv_insert(const_iterator, ::boost::move_detail::nat)
2754
+ { return iterator(); }
2637
2755
 
2638
- BOOST_CONTAINER_FORCEINLINE dtl::insert_value_initialized_n_proxy<Allocator, T*> priv_resize_proxy(value_init_t)
2639
- { return dtl::insert_value_initialized_n_proxy<Allocator, T*>(); }
2756
+ inline dtl::insert_n_copies_proxy<allocator_type> priv_resize_proxy(const T &x)
2757
+ { return dtl::insert_n_copies_proxy<allocator_type>(x); }
2640
2758
 
2641
- template <class U>
2642
- void priv_resize(size_type new_size, const U& u)
2643
- {
2644
- const size_type sz = this->size();
2645
- if (new_size < sz){
2646
- //Destroy last elements
2647
- this->priv_destroy_last_n(sz - new_size);
2648
- }
2649
- else{
2650
- const size_type n = new_size - this->size();
2651
- this->priv_forward_range_insert_at_end(n, this->priv_resize_proxy(u), alloc_version());
2652
- }
2653
- }
2759
+ inline dtl::insert_default_initialized_n_proxy<allocator_type> priv_resize_proxy(default_init_t)
2760
+ { return dtl::insert_default_initialized_n_proxy<allocator_type>(); }
2654
2761
 
2655
- BOOST_CONTAINER_FORCEINLINE void priv_shrink_to_fit(version_0) BOOST_NOEXCEPT_OR_NOTHROW
2762
+ inline dtl::insert_value_initialized_n_proxy<allocator_type> priv_resize_proxy(value_init_t)
2763
+ { return dtl::insert_value_initialized_n_proxy<allocator_type>(); }
2764
+
2765
+ inline void priv_shrink_to_fit(version_0) BOOST_NOEXCEPT_OR_NOTHROW
2656
2766
  {}
2657
2767
 
2658
2768
  void priv_shrink_to_fit(version_1)
@@ -2667,17 +2777,7 @@ class vector
2667
2777
  this->m_holder.m_capacity = 0;
2668
2778
  }
2669
2779
  else if(sz < cp){
2670
- //Allocate a new buffer.
2671
- //Pass the hint so that allocators can take advantage of this.
2672
- pointer const p = this->m_holder.allocate(sz);
2673
-
2674
- //We will reuse insert code, so create a dummy input iterator
2675
- #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
2676
- ++this->num_alloc;
2677
- #endif
2678
- this->priv_forward_range_insert_new_allocation
2679
- ( boost::movelib::to_raw_pointer(p), sz
2680
- , this->priv_raw_begin(), 0, this->priv_dummy_empty_proxy());
2780
+ this->priv_move_to_new_buffer(sz, alloc_version());
2681
2781
  }
2682
2782
  }
2683
2783
  }
@@ -2708,20 +2808,18 @@ class vector
2708
2808
  }
2709
2809
 
2710
2810
  template <class InsertionProxy>
2711
- iterator priv_forward_range_insert_no_capacity
2712
- (const pointer &pos, const size_type, const InsertionProxy , version_0)
2811
+ inline iterator priv_insert_forward_range_no_capacity
2812
+ (T * const, const size_type, const InsertionProxy , version_0)
2713
2813
  {
2714
- throw_bad_alloc();
2715
- return iterator(pos);
2814
+ return alloc_holder_t::on_capacity_overflow(), iterator();
2716
2815
  }
2717
2816
 
2718
2817
  template <class InsertionProxy>
2719
- iterator priv_forward_range_insert_no_capacity
2720
- (const pointer &pos, const size_type n, const InsertionProxy insert_range_proxy, version_1)
2818
+ BOOST_CONTAINER_NOINLINE iterator priv_insert_forward_range_no_capacity
2819
+ (T *const raw_pos, const size_type n, const InsertionProxy insert_range_proxy, version_1)
2721
2820
  {
2722
2821
  //Check if we have enough memory or try to expand current memory
2723
- const size_type n_pos = pos - this->m_holder.start();
2724
- T *const raw_pos = boost::movelib::to_raw_pointer(pos);
2822
+ const size_type n_pos = static_cast<size_type>(raw_pos - this->priv_raw_begin());
2725
2823
 
2726
2824
  const size_type new_cap = this->m_holder.template next_capacity<growth_factor_type>(n);
2727
2825
  //Pass the hint so that allocators can take advantage of this.
@@ -2729,25 +2827,23 @@ class vector
2729
2827
  #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
2730
2828
  ++this->num_alloc;
2731
2829
  #endif
2732
- this->priv_forward_range_insert_new_allocation
2733
- ( new_buf, new_cap, raw_pos, n, insert_range_proxy);
2734
- return iterator(this->m_holder.start() + n_pos);
2830
+ this->priv_insert_forward_range_new_allocation(new_buf, new_cap, raw_pos, n, insert_range_proxy);
2831
+ return iterator(this->m_holder.start() + difference_type(n_pos));
2735
2832
  }
2736
2833
 
2737
2834
  template <class InsertionProxy>
2738
- iterator priv_forward_range_insert_no_capacity
2739
- (const pointer &pos, const size_type n, const InsertionProxy insert_range_proxy, version_2)
2835
+ BOOST_CONTAINER_NOINLINE iterator priv_insert_forward_range_no_capacity
2836
+ (T *const raw_pos, const size_type n, const InsertionProxy insert_range_proxy, version_2)
2740
2837
  {
2741
2838
  //Check if we have enough memory or try to expand current memory
2742
- T *const raw_pos = boost::movelib::to_raw_pointer(pos);
2743
- const size_type n_pos = raw_pos - this->priv_raw_begin();
2839
+ const size_type n_pos = size_type(raw_pos - this->priv_raw_begin());
2744
2840
 
2745
2841
  //There is not enough memory, allocate a new
2746
2842
  //buffer or expand the old one.
2747
2843
  size_type real_cap = this->m_holder.template next_capacity<growth_factor_type>(n);
2748
2844
  pointer reuse(this->m_holder.start());
2749
2845
  pointer const ret (this->m_holder.allocation_command
2750
- (allocate_new | expand_fwd | expand_bwd, this->m_holder.m_size + n, real_cap, reuse));
2846
+ (allocate_new | expand_fwd | expand_bwd, size_type(this->m_holder.m_size + n), real_cap, reuse));
2751
2847
 
2752
2848
  //Buffer reallocated
2753
2849
  if(reuse){
@@ -2758,14 +2854,15 @@ class vector
2758
2854
  #endif
2759
2855
  this->m_holder.capacity(real_cap);
2760
2856
  //Expand forward
2761
- this->priv_forward_range_insert_expand_forward(raw_pos, n, insert_range_proxy);
2857
+ this->priv_insert_forward_range_expand_forward
2858
+ (raw_pos, n, insert_range_proxy, dtl::bool_<dtl::is_single_value_proxy<InsertionProxy>::value>());
2762
2859
  }
2763
2860
  //Backwards (and possibly forward) expansion
2764
2861
  else{
2765
2862
  #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
2766
2863
  ++this->num_expand_bwd;
2767
2864
  #endif
2768
- this->priv_forward_range_insert_expand_backwards
2865
+ this->priv_insert_forward_range_expand_backwards
2769
2866
  (boost::movelib::to_raw_pointer(ret), real_cap, raw_pos, n, insert_range_proxy);
2770
2867
  }
2771
2868
  }
@@ -2774,54 +2871,61 @@ class vector
2774
2871
  #ifdef BOOST_CONTAINER_VECTOR_ALLOC_STATS
2775
2872
  ++this->num_alloc;
2776
2873
  #endif
2777
- this->priv_forward_range_insert_new_allocation
2874
+ this->priv_insert_forward_range_new_allocation
2778
2875
  ( boost::movelib::to_raw_pointer(ret), real_cap, raw_pos, n, insert_range_proxy);
2779
2876
  }
2780
2877
 
2781
- return iterator(this->m_holder.start() + n_pos);
2878
+ return iterator(this->m_holder.start() + (difference_type)(n_pos));
2782
2879
  }
2783
2880
 
2784
2881
  template <class InsertionProxy>
2785
- iterator priv_forward_range_insert
2882
+ inline iterator priv_insert_forward_range
2786
2883
  (const pointer &pos, const size_type n, const InsertionProxy insert_range_proxy)
2787
2884
  {
2788
2885
  BOOST_ASSERT(this->m_holder.capacity() >= this->m_holder.m_size);
2886
+ T *const p = boost::movelib::to_raw_pointer(pos);
2789
2887
  //Check if we have enough memory or try to expand current memory
2790
- const size_type remaining = this->m_holder.capacity() - this->m_holder.m_size;
2791
-
2792
- bool same_buffer_start = n <= remaining;
2793
- if (!same_buffer_start){
2794
- return priv_forward_range_insert_no_capacity(pos, n, insert_range_proxy, alloc_version());
2888
+ if (BOOST_LIKELY(n <= (this->m_holder.capacity() - this->m_holder.m_size))){
2889
+ //Expand forward
2890
+ this->priv_insert_forward_range_expand_forward
2891
+ (p, n, insert_range_proxy, dtl::bool_<dtl::is_single_value_proxy<InsertionProxy>::value>());
2892
+ return iterator(pos);
2795
2893
  }
2796
2894
  else{
2797
- //Expand forward
2798
- T *const raw_pos = boost::movelib::to_raw_pointer(pos);
2799
- const size_type n_pos = raw_pos - this->priv_raw_begin();
2800
- this->priv_forward_range_insert_expand_forward(raw_pos, n, insert_range_proxy);
2801
- return iterator(this->m_holder.start() + n_pos);
2895
+ return this->priv_insert_forward_range_no_capacity(p, n, insert_range_proxy, alloc_version());
2802
2896
  }
2803
2897
  }
2804
2898
 
2805
- template <class InsertionProxy>
2806
- iterator priv_forward_range_insert_at_end
2807
- (const size_type n, const InsertionProxy insert_range_proxy, version_0)
2899
+ template <class U>
2900
+ void priv_resize(const size_type new_size, const U &u, version_0)
2808
2901
  {
2809
- //Check if we have enough memory or try to expand current memory
2810
- const size_type remaining = this->m_holder.capacity() - this->m_holder.m_size;
2811
-
2812
- if (n > remaining){
2902
+ const size_type sz = this->m_holder.m_size;
2903
+ if (new_size > this->capacity()){
2813
2904
  //This will trigger an error
2814
- throw_bad_alloc();
2905
+ alloc_holder_t::on_capacity_overflow();
2906
+ }
2907
+ else if (new_size < sz){
2908
+ //Destroy last elements
2909
+ this->priv_destroy_last_n(sz - new_size);
2910
+ }
2911
+ else{
2912
+ T* const old_finish = this->priv_raw_end();
2913
+ this->priv_resize_proxy(u).uninitialized_copy_n_and_update(this->m_holder.alloc(), old_finish, new_size - sz);
2914
+ this->m_holder.set_stored_size(new_size);
2815
2915
  }
2816
- this->priv_forward_range_insert_at_end_expand_forward(n, insert_range_proxy);
2817
- return this->end();
2818
2916
  }
2819
2917
 
2820
- template <class InsertionProxy, class AllocVersion>
2821
- BOOST_CONTAINER_FORCEINLINE iterator priv_forward_range_insert_at_end
2822
- (const size_type n, const InsertionProxy insert_range_proxy, AllocVersion)
2918
+ template <class U, class AllocVersion>
2919
+ void priv_resize(const size_type new_size, const U &u, AllocVersion)
2823
2920
  {
2824
- return this->priv_forward_range_insert(this->back_ptr(), n, insert_range_proxy);
2921
+ const size_type sz = this->m_holder.m_size;
2922
+ if (new_size < sz){
2923
+ //Destroy last elements
2924
+ this->priv_destroy_last_n(size_type(sz - new_size));
2925
+ }
2926
+ else {
2927
+ this->priv_insert_forward_range(this->back_ptr(), size_type(new_size - sz), this->priv_resize_proxy(u));
2928
+ }
2825
2929
  }
2826
2930
 
2827
2931
  //Takes the range pointed by [first_pos, last_pos) and shifts it to the right
@@ -2896,7 +3000,9 @@ class vector
2896
3000
  //All uninitialized_moved
2897
3001
  ::boost::container::uninitialized_move_alloc
2898
3002
  (this->m_holder.alloc(), first_ptr, last_ptr, first_ptr + shift_count);
2899
- hole_size = first_pos + shift_count - limit_pos;
3003
+ //Cast in case size_type is narrower than int, promotions are applied
3004
+ //and Wconversion is in place
3005
+ hole_size = static_cast<size_type>(first_pos + shift_count - limit_pos);
2900
3006
  }
2901
3007
  //Case C:
2902
3008
  else{
@@ -2911,426 +3017,92 @@ class vector
2911
3017
  }
2912
3018
 
2913
3019
  private:
2914
- BOOST_CONTAINER_FORCEINLINE T *priv_raw_begin() const
3020
+ inline T *priv_raw_begin() const
2915
3021
  { return boost::movelib::to_raw_pointer(m_holder.start()); }
2916
3022
 
2917
- BOOST_CONTAINER_FORCEINLINE T* priv_raw_end() const
3023
+ inline T* priv_raw_end() const
2918
3024
  { return this->priv_raw_begin() + this->m_holder.m_size; }
2919
3025
 
2920
- template <class InsertionProxy>
2921
- void priv_forward_range_insert_at_end_expand_forward(const size_type n, InsertionProxy insert_range_proxy)
3026
+ template <class InsertionProxy> //inline single-element version as it is significantly smaller
3027
+ inline void priv_insert_forward_range_expand_forward
3028
+ (T* const raw_pos, const size_type, InsertionProxy insert_range_proxy, dtl::true_type)
2922
3029
  {
2923
- T* const old_finish = this->priv_raw_end();
2924
- insert_range_proxy.uninitialized_copy_n_and_update(this->m_holder.alloc(), old_finish, n);
2925
- this->m_holder.m_size += n;
2926
- }
2927
-
2928
- template <class InsertionProxy>
2929
- void priv_forward_range_insert_expand_forward(T* const pos, const size_type n, InsertionProxy insert_range_proxy)
2930
- {
2931
- //n can't be 0, because there is nothing to do in that case
2932
- if(BOOST_UNLIKELY(!n)) return;
3030
+ BOOST_ASSERT(this->room_enough());
2933
3031
  //There is enough memory
2934
3032
  T* const old_finish = this->priv_raw_end();
2935
- const size_type elems_after = old_finish - pos;
3033
+ allocator_type & a = this->m_holder.alloc();
2936
3034
 
2937
- if (!elems_after){
2938
- insert_range_proxy.uninitialized_copy_n_and_update(this->m_holder.alloc(), old_finish, n);
2939
- this->m_holder.m_size += n;
3035
+ if (old_finish == raw_pos){
3036
+ insert_range_proxy.uninitialized_copy_n_and_update(a, old_finish, 1);
3037
+ ++this->m_holder.m_size;
2940
3038
  }
2941
- else if (elems_after >= n){
3039
+ else{
2942
3040
  //New elements can be just copied.
2943
3041
  //Move to uninitialized memory last objects
2944
- ::boost::container::uninitialized_move_alloc
2945
- (this->m_holder.alloc(), old_finish - n, old_finish, old_finish);
2946
- this->m_holder.m_size += n;
3042
+ T * const before_old_finish = old_finish-1;
3043
+
3044
+ allocator_traits_type::construct(a, old_finish, ::boost::move(*before_old_finish));
3045
+ ++this->m_holder.m_size;
2947
3046
  //Copy previous to last objects to the initialized end
2948
- boost::container::move_backward(pos, old_finish - n, old_finish);
2949
- //Insert new objects in the pos
2950
- insert_range_proxy.copy_n_and_update(this->m_holder.alloc(), pos, n);
2951
- }
2952
- else {
2953
- //The new elements don't fit in the [pos, end()) range.
2954
-
2955
- //Copy old [pos, end()) elements to the uninitialized memory (a gap is created)
2956
- ::boost::container::uninitialized_move_alloc(this->m_holder.alloc(), pos, old_finish, pos + n);
2957
- BOOST_TRY{
2958
- //Copy first new elements in pos (gap is still there)
2959
- insert_range_proxy.copy_n_and_update(this->m_holder.alloc(), pos, elems_after);
2960
- //Copy to the beginning of the unallocated zone the last new elements (the gap is closed).
2961
- insert_range_proxy.uninitialized_copy_n_and_update(this->m_holder.alloc(), old_finish, n - elems_after);
2962
- this->m_holder.m_size += n;
2963
- }
2964
- BOOST_CATCH(...){
2965
- boost::container::destroy_alloc_n(this->get_stored_allocator(), pos + n, elems_after);
2966
- BOOST_RETHROW
2967
- }
2968
- BOOST_CATCH_END
3047
+ boost::container::move_backward(raw_pos, before_old_finish, old_finish);
3048
+ //Insert new objects in the raw_pos
3049
+ insert_range_proxy.copy_n_and_update(a, raw_pos, 1);
2969
3050
  }
2970
3051
  }
2971
3052
 
2972
3053
  template <class InsertionProxy>
2973
- void priv_forward_range_insert_new_allocation
3054
+ inline void priv_insert_forward_range_expand_forward
3055
+ (T* const raw_pos, const size_type n, InsertionProxy insert_range_proxy, dtl::false_type)
3056
+ {
3057
+ //There is enough memory
3058
+ boost::container::expand_forward_and_insert_alloc
3059
+ ( this->m_holder.alloc(), raw_pos, this->priv_raw_end(), n, insert_range_proxy);
3060
+ this->m_holder.inc_stored_size(n);
3061
+ }
3062
+
3063
+ template <class InsertionProxy>
3064
+ void priv_insert_forward_range_new_allocation
2974
3065
  (T* const new_start, size_type new_cap, T* const pos, const size_type n, InsertionProxy insert_range_proxy)
2975
3066
  {
2976
3067
  //n can be zero, if we want to reallocate!
2977
- T *new_finish = new_start;
2978
- T *old_finish;
2979
- //Anti-exception rollbacks
2980
- typename value_traits::ArrayDeallocator new_buffer_deallocator(new_start, this->m_holder.alloc(), new_cap);
2981
- typename value_traits::ArrayDestructor new_values_destroyer(new_start, this->m_holder.alloc(), 0u);
2982
-
2983
- //Initialize with [begin(), pos) old buffer
2984
- //the start of the new buffer
2985
- T * const old_buffer = this->priv_raw_begin();
2986
- if(old_buffer){
2987
- new_finish = ::boost::container::uninitialized_move_alloc
2988
- (this->m_holder.alloc(), this->priv_raw_begin(), pos, old_finish = new_finish);
2989
- new_values_destroyer.increment_size(new_finish - old_finish);
2990
- }
2991
- //Initialize new objects, starting from previous point
2992
- old_finish = new_finish;
2993
- insert_range_proxy.uninitialized_copy_n_and_update(this->m_holder.alloc(), old_finish, n);
2994
- new_finish += n;
2995
- new_values_destroyer.increment_size(new_finish - old_finish);
2996
- //Initialize from the rest of the old buffer,
2997
- //starting from previous point
2998
- if(old_buffer){
2999
- new_finish = ::boost::container::uninitialized_move_alloc
3000
- (this->m_holder.alloc(), pos, old_buffer + this->m_holder.m_size, new_finish);
3001
- //Destroy and deallocate old elements
3002
- //If there is allocated memory, destroy and deallocate
3003
- if(!value_traits::trivial_dctr_after_move)
3004
- boost::container::destroy_alloc_n(this->get_stored_allocator(), old_buffer, this->m_holder.m_size);
3068
+ allocator_type &a = this->m_holder.alloc();
3069
+ T * const raw_old_buffer = this->priv_raw_begin();
3070
+
3071
+ typename value_traits::ArrayDeallocator new_buffer_deallocator(new_start, a, new_cap);
3072
+ boost::container::uninitialized_move_and_insert_alloc
3073
+ (a, raw_old_buffer, pos, this->priv_raw_end(), new_start, n, insert_range_proxy);
3074
+ new_buffer_deallocator.release();
3075
+
3076
+ //Destroy and deallocate old elements
3077
+ if(raw_old_buffer){
3078
+ BOOST_IF_CONSTEXPR(!has_trivial_destructor_after_move<value_type>::value)
3079
+ boost::container::destroy_alloc_n(a, raw_old_buffer, this->m_holder.m_size);
3005
3080
  this->m_holder.deallocate(this->m_holder.start(), this->m_holder.capacity());
3006
3081
  }
3082
+
3007
3083
  this->m_holder.start(new_start);
3008
- this->m_holder.m_size = size_type(new_finish - new_start);
3084
+ this->m_holder.inc_stored_size(n);
3009
3085
  this->m_holder.capacity(new_cap);
3010
- //All construction successful, disable rollbacks
3011
- new_values_destroyer.release();
3012
- new_buffer_deallocator.release();
3013
3086
  }
3014
3087
 
3015
3088
  template <class InsertionProxy>
3016
- void priv_forward_range_insert_expand_backwards
3089
+ void priv_insert_forward_range_expand_backwards
3017
3090
  (T* const new_start, const size_type new_capacity,
3018
3091
  T* const pos, const size_type n, InsertionProxy insert_range_proxy)
3019
3092
  {
3020
- //n can be zero to just expand capacity
3021
- //Backup old data
3022
- T* const old_start = this->priv_raw_begin();
3093
+ T* const old_start = this->priv_raw_begin();
3023
3094
  const size_type old_size = this->m_holder.m_size;
3024
- T* const old_finish = old_start + old_size;
3025
-
3026
- //We can have 8 possibilities:
3027
- const size_type elemsbefore = static_cast<size_type>(pos - old_start);
3028
- const size_type s_before = static_cast<size_type>(old_start - new_start);
3029
- const size_type before_plus_new = elemsbefore + n;
3095
+ allocator_type& a = this->m_holder.alloc();
3030
3096
 
3031
3097
  //Update the vector buffer information to a safe state
3032
3098
  this->m_holder.start(new_start);
3033
3099
  this->m_holder.capacity(new_capacity);
3034
3100
  this->m_holder.m_size = 0;
3035
3101
 
3036
- //If anything goes wrong, this object will destroy
3037
- //all the old objects to fulfill previous vector state
3038
- typename value_traits::ArrayDestructor old_values_destroyer(old_start, this->m_holder.alloc(), old_size);
3039
- //Check if s_before is big enough to hold the beginning of old data + new data
3040
- if(s_before >= before_plus_new){
3041
- //Copy first old values before pos, after that the new objects
3042
- T *const new_elem_pos =
3043
- ::boost::container::uninitialized_move_alloc(this->m_holder.alloc(), old_start, pos, new_start);
3044
- this->m_holder.m_size = elemsbefore;
3045
- insert_range_proxy.uninitialized_copy_n_and_update(this->m_holder.alloc(), new_elem_pos, n);
3046
- this->m_holder.m_size = before_plus_new;
3047
- const size_type new_size = old_size + n;
3048
- //Check if s_before is so big that even copying the old data + new data
3049
- //there is a gap between the new data and the old data
3050
- if(s_before >= new_size){
3051
- //Old situation:
3052
- // _________________________________________________________
3053
- //| raw_mem | old_begin | old_end |
3054
- //| __________________________________|___________|_________|
3055
- //
3056
- //New situation:
3057
- // _________________________________________________________
3058
- //| old_begin | new | old_end | raw_mem |
3059
- //|___________|__________|_________|________________________|
3060
- //
3061
- //Now initialize the rest of memory with the last old values
3062
- if(before_plus_new != new_size){ //Special case to avoid operations in back insertion
3063
- ::boost::container::uninitialized_move_alloc
3064
- (this->m_holder.alloc(), pos, old_finish, new_start + before_plus_new);
3065
- //All new elements correctly constructed, avoid new element destruction
3066
- this->m_holder.m_size = new_size;
3067
- }
3068
- //Old values destroyed automatically with "old_values_destroyer"
3069
- //when "old_values_destroyer" goes out of scope unless the have trivial
3070
- //destructor after move.
3071
- if(value_traits::trivial_dctr_after_move)
3072
- old_values_destroyer.release();
3073
- }
3074
- //s_before is so big that divides old_end
3075
- else{
3076
- //Old situation:
3077
- // __________________________________________________
3078
- //| raw_mem | old_begin | old_end |
3079
- //| ___________________________|___________|_________|
3080
- //
3081
- //New situation:
3082
- // __________________________________________________
3083
- //| old_begin | new | old_end | raw_mem |
3084
- //|___________|__________|_________|_________________|
3085
- //
3086
- //Now initialize the rest of memory with the last old values
3087
- //All new elements correctly constructed, avoid new element destruction
3088
- const size_type raw_gap = s_before - before_plus_new;
3089
- if(!value_traits::trivial_dctr){
3090
- //Now initialize the rest of s_before memory with the
3091
- //first of elements after new values
3092
- ::boost::container::uninitialized_move_alloc_n
3093
- (this->m_holder.alloc(), pos, raw_gap, new_start + before_plus_new);
3094
- //Now we have a contiguous buffer so program trailing element destruction
3095
- //and update size to the final size.
3096
- old_values_destroyer.shrink_forward(new_size-s_before);
3097
- this->m_holder.m_size = new_size;
3098
- //Now move remaining last objects in the old buffer begin
3099
- T * const remaining_pos = pos + raw_gap;
3100
- if(remaining_pos != old_start){ //Make sure data has to be moved
3101
- ::boost::container::move(remaining_pos, old_finish, old_start);
3102
- }
3103
- //Once moved, avoid calling the destructors if trivial after move
3104
- if(value_traits::trivial_dctr_after_move){
3105
- old_values_destroyer.release();
3106
- }
3107
- }
3108
- else{ //If trivial destructor, we can uninitialized copy + copy in a single uninitialized copy
3109
- ::boost::container::uninitialized_move_alloc_n
3110
- (this->m_holder.alloc(), pos, static_cast<size_type>(old_finish - pos), new_start + before_plus_new);
3111
- this->m_holder.m_size = new_size;
3112
- old_values_destroyer.release();
3113
- }
3114
- }
3115
- }
3116
- else{
3117
- //Check if we have to do the insertion in two phases
3118
- //since maybe s_before is not big enough and
3119
- //the buffer was expanded both sides
3120
- //
3121
- //Old situation:
3122
- // _________________________________________________
3123
- //| raw_mem | old_begin + old_end | raw_mem |
3124
- //|_________|_____________________|_________________|
3125
- //
3126
- //New situation with do_after:
3127
- // _________________________________________________
3128
- //| old_begin + new + old_end | raw_mem |
3129
- //|___________________________________|_____________|
3130
- //
3131
- //New without do_after:
3132
- // _________________________________________________
3133
- //| old_begin + new + old_end | raw_mem |
3134
- //|____________________________|____________________|
3135
- //
3136
- const bool do_after = n > s_before;
3137
-
3138
- //Now we can have two situations: the raw_mem of the
3139
- //beginning divides the old_begin, or the new elements:
3140
- if (s_before <= elemsbefore) {
3141
- //The raw memory divides the old_begin group:
3142
- //
3143
- //If we need two phase construction (do_after)
3144
- //new group is divided in new = new_beg + new_end groups
3145
- //In this phase only new_beg will be inserted
3146
- //
3147
- //Old situation:
3148
- // _________________________________________________
3149
- //| raw_mem | old_begin | old_end | raw_mem |
3150
- //|_________|___________|_________|_________________|
3151
- //
3152
- //New situation with do_after(1):
3153
- //This is not definitive situation, the second phase
3154
- //will include
3155
- // _________________________________________________
3156
- //| old_begin | new_beg | old_end | raw_mem |
3157
- //|___________|_________|_________|_________________|
3158
- //
3159
- //New situation without do_after:
3160
- // _________________________________________________
3161
- //| old_begin | new | old_end | raw_mem |
3162
- //|___________|_____|_________|_____________________|
3163
- //
3164
- //Copy the first part of old_begin to raw_mem
3165
- ::boost::container::uninitialized_move_alloc_n
3166
- (this->m_holder.alloc(), old_start, s_before, new_start);
3167
- //The buffer is all constructed until old_end,
3168
- //so program trailing destruction and assign final size
3169
- //if !do_after, s_before+n otherwise.
3170
- size_type new_1st_range;
3171
- if(do_after){
3172
- new_1st_range = s_before;
3173
- //release destroyer and update size
3174
- old_values_destroyer.release();
3175
- }
3176
- else{
3177
- new_1st_range = n;
3178
- if(value_traits::trivial_dctr_after_move)
3179
- old_values_destroyer.release();
3180
- else{
3181
- old_values_destroyer.shrink_forward(old_size - (s_before - n));
3182
- }
3183
- }
3184
- this->m_holder.m_size = old_size + new_1st_range;
3185
- //Now copy the second part of old_begin overwriting itself
3186
- T *const next = ::boost::container::move(old_start + s_before, pos, old_start);
3187
- //Now copy the new_beg elements
3188
- insert_range_proxy.copy_n_and_update(this->m_holder.alloc(), next, new_1st_range);
3189
-
3190
- //If there is no after work and the last old part needs to be moved to front, do it
3191
- if(!do_after && (n != s_before)){
3192
- //Now displace old_end elements
3193
- ::boost::container::move(pos, old_finish, next + new_1st_range);
3194
- }
3195
- }
3196
- else {
3197
- //If we have to expand both sides,
3198
- //we will play if the first new values so
3199
- //calculate the upper bound of new values
3200
-
3201
- //The raw memory divides the new elements
3202
- //
3203
- //If we need two phase construction (do_after)
3204
- //new group is divided in new = new_beg + new_end groups
3205
- //In this phase only new_beg will be inserted
3206
- //
3207
- //Old situation:
3208
- // _______________________________________________________
3209
- //| raw_mem | old_begin | old_end | raw_mem |
3210
- //|_______________|___________|_________|_________________|
3211
- //
3212
- //New situation with do_after():
3213
- // ____________________________________________________
3214
- //| old_begin | new_beg | old_end | raw_mem |
3215
- //|___________|_______________|_________|______________|
3216
- //
3217
- //New situation without do_after:
3218
- // ______________________________________________________
3219
- //| old_begin | new | old_end | raw_mem |
3220
- //|___________|_____|_________|__________________________|
3221
- //
3222
- //First copy whole old_begin and part of new to raw_mem
3223
- T * const new_pos = ::boost::container::uninitialized_move_alloc
3224
- (this->m_holder.alloc(), old_start, pos, new_start);
3225
- this->m_holder.m_size = elemsbefore;
3226
- const size_type mid_n = s_before - elemsbefore;
3227
- insert_range_proxy.uninitialized_copy_n_and_update(this->m_holder.alloc(), new_pos, mid_n);
3228
- //The buffer is all constructed until old_end,
3229
- //release destroyer
3230
- this->m_holder.m_size = old_size + s_before;
3231
- old_values_destroyer.release();
3232
-
3233
- if(do_after){
3234
- //Copy new_beg part
3235
- insert_range_proxy.copy_n_and_update(this->m_holder.alloc(), old_start, elemsbefore);
3236
- }
3237
- else{
3238
- //Copy all new elements
3239
- const size_type rest_new = n - mid_n;
3240
- insert_range_proxy.copy_n_and_update(this->m_holder.alloc(), old_start, rest_new);
3241
- T* const move_start = old_start + rest_new;
3242
- //Displace old_end, but make sure data has to be moved
3243
- T* const move_end = move_start != pos ? ::boost::container::move(pos, old_finish, move_start)
3244
- : old_finish;
3245
- //Destroy remaining moved elements from old_end except if they
3246
- //have trivial destructor after being moved
3247
- size_type n_destroy = s_before - n;
3248
- if(!value_traits::trivial_dctr_after_move)
3249
- boost::container::destroy_alloc_n(this->get_stored_allocator(), move_end, n_destroy);
3250
- this->m_holder.m_size -= n_destroy;
3251
- }
3252
- }
3102
+ expand_backward_forward_and_insert_alloc(old_start, old_size, new_start, pos, n, insert_range_proxy, a);
3253
3103
 
3254
- //This is only executed if two phase construction is needed
3255
- if(do_after){
3256
- //The raw memory divides the new elements
3257
- //
3258
- //Old situation:
3259
- // ______________________________________________________
3260
- //| raw_mem | old_begin | old_end | raw_mem |
3261
- //|______________|___________|____________|______________|
3262
- //
3263
- //New situation with do_after(1):
3264
- // _______________________________________________________
3265
- //| old_begin + new_beg | new_end |old_end | raw_mem |
3266
- //|__________________________|_________|________|_________|
3267
- //
3268
- //New situation with do_after(2):
3269
- // ______________________________________________________
3270
- //| old_begin + new | old_end |raw |
3271
- //|_______________________________________|_________|____|
3272
- //
3273
- const size_type n_after = n - s_before;
3274
- const size_type elemsafter = old_size - elemsbefore;
3275
-
3276
- //We can have two situations:
3277
- if (elemsafter >= n_after){
3278
- //The raw_mem from end will divide displaced old_end
3279
- //
3280
- //Old situation:
3281
- // ______________________________________________________
3282
- //| raw_mem | old_begin | old_end | raw_mem |
3283
- //|______________|___________|____________|______________|
3284
- //
3285
- //New situation with do_after(1):
3286
- // _______________________________________________________
3287
- //| old_begin + new_beg | new_end |old_end | raw_mem |
3288
- //|__________________________|_________|________|_________|
3289
- //
3290
- //First copy the part of old_end raw_mem
3291
- T* finish_n = old_finish - n_after;
3292
- ::boost::container::uninitialized_move_alloc
3293
- (this->m_holder.alloc(), finish_n, old_finish, old_finish);
3294
- this->m_holder.m_size += n_after;
3295
- //Displace the rest of old_end to the new position
3296
- boost::container::move_backward(pos, finish_n, old_finish);
3297
- //Now overwrite with new_end
3298
- //The new_end part is [first + (n - n_after), last)
3299
- insert_range_proxy.copy_n_and_update(this->m_holder.alloc(), pos, n_after);
3300
- }
3301
- else {
3302
- //The raw_mem from end will divide new_end part
3303
- //
3304
- //Old situation:
3305
- // _____________________________________________________________
3306
- //| raw_mem | old_begin | old_end | raw_mem |
3307
- //|______________|___________|____________|_____________________|
3308
- //
3309
- //New situation with do_after(2):
3310
- // _____________________________________________________________
3311
- //| old_begin + new_beg | new_end |old_end | raw_mem |
3312
- //|__________________________|_______________|________|_________|
3313
- //
3314
-
3315
- const size_type mid_last_dist = n_after - elemsafter;
3316
- //First initialize data in raw memory
3317
-
3318
- //Copy to the old_end part to the uninitialized zone leaving a gap.
3319
- ::boost::container::uninitialized_move_alloc
3320
- (this->m_holder.alloc(), pos, old_finish, old_finish + mid_last_dist);
3321
-
3322
- typename value_traits::ArrayDestructor old_end_destroyer
3323
- (old_finish + mid_last_dist, this->m_holder.alloc(), old_finish - pos);
3324
-
3325
- //Copy the first part to the already constructed old_end zone
3326
- insert_range_proxy.copy_n_and_update(this->m_holder.alloc(), pos, elemsafter);
3327
- //Copy the rest to the uninitialized zone filling the gap
3328
- insert_range_proxy.uninitialized_copy_n_and_update(this->m_holder.alloc(), old_finish, mid_last_dist);
3329
- this->m_holder.m_size += n_after;
3330
- old_end_destroyer.release();
3331
- }
3332
- }
3333
- }
3104
+ //Update the vector buffer information to a safe state
3105
+ this->m_holder.m_size = stored_size_type(old_size + n);
3334
3106
  }
3335
3107
 
3336
3108
  void priv_throw_if_out_of_range(size_type n) const
@@ -3341,12 +3113,12 @@ class vector
3341
3113
  }
3342
3114
  }
3343
3115
 
3344
- BOOST_CONTAINER_FORCEINLINE bool priv_in_range(const_iterator pos) const
3116
+ inline bool priv_in_range(const_iterator pos) const
3345
3117
  {
3346
3118
  return (this->begin() <= pos) && (pos < this->end());
3347
3119
  }
3348
3120
 
3349
- BOOST_CONTAINER_FORCEINLINE bool priv_in_range_or_end(const_iterator pos) const
3121
+ inline bool priv_in_range_or_end(const_iterator pos) const
3350
3122
  {
3351
3123
  return (this->begin() <= pos) && (pos <= this->end());
3352
3124
  }
@@ -3367,11 +3139,11 @@ class vector
3367
3139
 
3368
3140
  template <typename InputIterator>
3369
3141
  vector(InputIterator, InputIterator) ->
3370
- vector<typename iterator_traits<InputIterator>::value_type>;
3142
+ vector<typename iter_value<InputIterator>::type>;
3371
3143
 
3372
3144
  template <typename InputIterator, typename Allocator>
3373
3145
  vector(InputIterator, InputIterator, Allocator const&) ->
3374
- vector<typename iterator_traits<InputIterator>::value_type, Allocator>;
3146
+ vector<typename iter_value<InputIterator>::type, Allocator>;
3375
3147
 
3376
3148
  #endif
3377
3149
 
@@ -3384,16 +3156,31 @@ namespace boost {
3384
3156
 
3385
3157
  //!has_trivial_destructor_after_move<> == true_type
3386
3158
  //!specialization for optimizations
3387
- template <class T, class Allocator>
3388
- struct has_trivial_destructor_after_move<boost::container::vector<T, Allocator> >
3159
+ template <class T, class Allocator, class Options>
3160
+ struct has_trivial_destructor_after_move<boost::container::vector<T, Allocator, Options> >
3389
3161
  {
3390
- typedef typename ::boost::container::allocator_traits<Allocator>::pointer pointer;
3391
- static const bool value = ::boost::has_trivial_destructor_after_move<Allocator>::value &&
3162
+ typedef typename boost::container::vector<T, Allocator, Options>::allocator_type allocator_type;
3163
+ typedef typename ::boost::container::allocator_traits<allocator_type>::pointer pointer;
3164
+ static const bool value = ::boost::has_trivial_destructor_after_move<allocator_type>::value &&
3392
3165
  ::boost::has_trivial_destructor_after_move<pointer>::value;
3393
3166
  };
3394
3167
 
3395
3168
  }
3396
3169
 
3170
+ //See comments on vec_iterator::element_type to know why is this needed
3171
+ #ifdef BOOST_GNU_STDLIB
3172
+
3173
+ BOOST_MOVE_STD_NS_BEG
3174
+
3175
+ template <class Pointer, bool IsConst>
3176
+ struct pointer_traits< boost::container::vec_iterator<Pointer, IsConst> >
3177
+ : public boost::intrusive::pointer_traits< boost::container::vec_iterator<Pointer, IsConst> >
3178
+ {};
3179
+
3180
+ BOOST_MOVE_STD_NS_END
3181
+
3182
+ #endif //BOOST_GNU_STDLIB
3183
+
3397
3184
  #endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
3398
3185
 
3399
3186
  #include <boost/container/detail/config_end.hpp>