couchbase 4.2.0 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1840) hide show
  1. package/deps/couchbase-cxx-client/.github/workflows/tests.yml +10 -6
  2. package/deps/couchbase-cxx-client/.github/workflows/windows.yml +3 -0
  3. package/deps/couchbase-cxx-client/.idea/misc.xml +1 -0
  4. package/deps/couchbase-cxx-client/CMakeLists.txt +341 -292
  5. package/deps/couchbase-cxx-client/README.md +3 -3
  6. package/deps/couchbase-cxx-client/bin/build-tests +7 -6
  7. package/deps/couchbase-cxx-client/bin/build-tests.rb +1 -0
  8. package/deps/couchbase-cxx-client/bin/{run-transactions-tests → run-transaction-tests} +2 -1
  9. package/deps/couchbase-cxx-client/bin/run-unit-tests +47 -1
  10. package/deps/couchbase-cxx-client/cmake/ThirdPartyDependencies.cmake +1 -0
  11. package/deps/couchbase-cxx-client/cmake/build_version.hxx.in +2 -0
  12. package/deps/couchbase-cxx-client/core/CMakeLists.txt +0 -0
  13. package/deps/couchbase-cxx-client/core/agent.cxx +556 -0
  14. package/deps/couchbase-cxx-client/core/agent.hxx +165 -0
  15. package/deps/couchbase-cxx-client/core/agent_config.cxx +36 -0
  16. package/deps/couchbase-cxx-client/core/agent_config.hxx +44 -0
  17. package/deps/couchbase-cxx-client/core/agent_group.cxx +219 -0
  18. package/deps/couchbase-cxx-client/core/agent_group.hxx +79 -0
  19. package/deps/couchbase-cxx-client/core/agent_group_config.cxx +35 -0
  20. package/deps/couchbase-cxx-client/core/agent_group_config.hxx +45 -0
  21. package/deps/couchbase-cxx-client/core/agent_unit_test_api.hxx +37 -0
  22. package/deps/couchbase-cxx-client/core/analytics_query_options.cxx +72 -0
  23. package/deps/couchbase-cxx-client/core/analytics_query_options.hxx +74 -0
  24. package/deps/couchbase-cxx-client/core/bucket.cxx +891 -0
  25. package/deps/couchbase-cxx-client/core/bucket.hxx +85 -484
  26. package/deps/couchbase-cxx-client/core/cluster.cxx +69 -12
  27. package/deps/couchbase-cxx-client/core/cluster.hxx +52 -40
  28. package/deps/couchbase-cxx-client/core/cluster_agent.cxx +36 -0
  29. package/deps/couchbase-cxx-client/core/cluster_agent.hxx +34 -0
  30. package/deps/couchbase-cxx-client/core/cluster_agent_config.cxx +35 -0
  31. package/deps/couchbase-cxx-client/core/cluster_agent_config.hxx +43 -0
  32. package/deps/couchbase-cxx-client/core/cluster_options.hxx +9 -2
  33. package/deps/couchbase-cxx-client/core/cluster_state.hxx +25 -0
  34. package/deps/couchbase-cxx-client/core/collection_id_cache_entry.hxx +37 -0
  35. package/deps/couchbase-cxx-client/core/collections_component.cxx +439 -0
  36. package/deps/couchbase-cxx-client/core/collections_component.hxx +81 -0
  37. package/deps/couchbase-cxx-client/core/collections_component_unit_test_api.hxx +36 -0
  38. package/deps/couchbase-cxx-client/core/collections_options.hxx +87 -0
  39. package/deps/couchbase-cxx-client/core/core_sdk_shim.cxx +28 -0
  40. package/deps/couchbase-cxx-client/core/core_sdk_shim.hxx +30 -0
  41. package/deps/couchbase-cxx-client/core/crud_component.cxx +367 -0
  42. package/deps/couchbase-cxx-client/core/crud_component.hxx +60 -0
  43. package/deps/couchbase-cxx-client/core/crud_options.hxx +574 -0
  44. package/deps/couchbase-cxx-client/core/diagntostics_options.hxx +55 -0
  45. package/deps/couchbase-cxx-client/core/dispatcher.cxx +37 -0
  46. package/deps/couchbase-cxx-client/core/dispatcher.hxx +43 -0
  47. package/deps/couchbase-cxx-client/core/durability_options.hxx +110 -0
  48. package/deps/couchbase-cxx-client/core/error_context/analytics.hxx +1 -1
  49. package/deps/couchbase-cxx-client/core/error_context/http.hxx +1 -1
  50. package/deps/couchbase-cxx-client/core/error_context/key_value.hxx +2 -2
  51. package/deps/couchbase-cxx-client/core/error_context/query.hxx +1 -1
  52. package/deps/couchbase-cxx-client/core/error_context/search.hxx +1 -1
  53. package/deps/couchbase-cxx-client/core/error_context/view.hxx +1 -1
  54. package/deps/couchbase-cxx-client/core/free_form_http_request.cxx +81 -0
  55. package/deps/couchbase-cxx-client/core/free_form_http_request.hxx +90 -0
  56. package/deps/couchbase-cxx-client/core/impl/append.cxx +4 -1
  57. package/deps/couchbase-cxx-client/core/impl/best_effort_retry_strategy.cxx +109 -0
  58. package/deps/couchbase-cxx-client/core/impl/bootstrap_state_listener.hxx +1 -0
  59. package/deps/couchbase-cxx-client/core/impl/cluster.cxx +21 -3
  60. package/deps/couchbase-cxx-client/core/impl/decrement.cxx +10 -1
  61. package/deps/couchbase-cxx-client/core/impl/dns_srv_tracker.cxx +13 -9
  62. package/deps/couchbase-cxx-client/core/impl/exists.cxx +1 -0
  63. package/deps/couchbase-cxx-client/core/impl/fail_fast_retry_strategy.cxx +41 -0
  64. package/deps/couchbase-cxx-client/core/impl/get.cxx +2 -0
  65. package/deps/couchbase-cxx-client/core/impl/get_all_replicas.cxx +6 -0
  66. package/deps/couchbase-cxx-client/core/impl/get_and_lock.cxx +1 -0
  67. package/deps/couchbase-cxx-client/core/impl/get_and_touch.cxx +1 -0
  68. package/deps/couchbase-cxx-client/core/impl/get_replica.hxx +1 -1
  69. package/deps/couchbase-cxx-client/core/impl/increment.cxx +10 -1
  70. package/deps/couchbase-cxx-client/core/impl/insert.cxx +2 -1
  71. package/deps/couchbase-cxx-client/core/impl/key_value_error_category.cxx +6 -0
  72. package/deps/couchbase-cxx-client/core/impl/lookup_in.cxx +1 -0
  73. package/deps/couchbase-cxx-client/core/impl/mutate_in.cxx +2 -2
  74. package/deps/couchbase-cxx-client/core/impl/network_error_category.cxx +14 -0
  75. package/deps/couchbase-cxx-client/core/impl/observe_seqno.hxx +1 -1
  76. package/deps/couchbase-cxx-client/core/impl/prepend.cxx +4 -1
  77. package/deps/couchbase-cxx-client/core/impl/query.cxx +53 -10
  78. package/deps/couchbase-cxx-client/core/impl/remove.cxx +4 -1
  79. package/deps/couchbase-cxx-client/core/impl/replace.cxx +12 -3
  80. package/deps/couchbase-cxx-client/core/impl/retry_action.cxx +39 -0
  81. package/deps/couchbase-cxx-client/core/{io/retry_reason.hxx → impl/retry_reason.cxx} +28 -29
  82. package/deps/couchbase-cxx-client/core/impl/touch.cxx +1 -0
  83. package/deps/couchbase-cxx-client/core/impl/unlock.cxx +1 -0
  84. package/deps/couchbase-cxx-client/core/impl/upsert.cxx +11 -2
  85. package/deps/couchbase-cxx-client/core/io/dns_config.cxx +82 -3
  86. package/deps/couchbase-cxx-client/core/io/http_command.hxx +19 -15
  87. package/deps/couchbase-cxx-client/core/io/http_session.hxx +19 -18
  88. package/deps/couchbase-cxx-client/core/io/http_session_manager.hxx +8 -6
  89. package/deps/couchbase-cxx-client/core/io/mcbp_command.hxx +62 -51
  90. package/deps/couchbase-cxx-client/core/io/mcbp_context.hxx +1 -0
  91. package/deps/couchbase-cxx-client/core/io/mcbp_message.hxx +5 -0
  92. package/deps/couchbase-cxx-client/core/io/mcbp_parser.cxx +18 -18
  93. package/deps/couchbase-cxx-client/core/io/mcbp_parser.hxx +1 -1
  94. package/deps/couchbase-cxx-client/core/io/mcbp_session.cxx +1676 -0
  95. package/deps/couchbase-cxx-client/core/io/mcbp_session.hxx +82 -1325
  96. package/deps/couchbase-cxx-client/core/io/retry_context.hxx +59 -8
  97. package/deps/couchbase-cxx-client/core/io/retry_orchestrator.hxx +27 -42
  98. package/deps/couchbase-cxx-client/core/key_value_config.cxx +35 -0
  99. package/deps/couchbase-cxx-client/core/key_value_config.hxx +40 -0
  100. package/deps/couchbase-cxx-client/core/logger/logger.hxx +12 -12
  101. package/deps/couchbase-cxx-client/core/management/rbac_json.hxx +1 -1
  102. package/deps/couchbase-cxx-client/core/mcbp/barrier_frame.hxx +27 -0
  103. package/deps/couchbase-cxx-client/core/mcbp/big_endian.cxx +73 -0
  104. package/deps/couchbase-cxx-client/core/mcbp/big_endian.hxx +46 -0
  105. package/deps/couchbase-cxx-client/core/mcbp/buffer_writer.cxx +78 -0
  106. package/deps/couchbase-cxx-client/core/mcbp/buffer_writer.hxx +38 -0
  107. package/deps/couchbase-cxx-client/core/mcbp/codec.cxx +501 -0
  108. package/deps/couchbase-cxx-client/core/mcbp/codec.hxx +52 -0
  109. package/deps/couchbase-cxx-client/core/mcbp/command_code.cxx +77 -0
  110. package/deps/couchbase-cxx-client/core/mcbp/command_code.hxx +33 -0
  111. package/deps/couchbase-cxx-client/core/mcbp/completion_token.hxx +69 -0
  112. package/deps/couchbase-cxx-client/core/mcbp/datatype.hxx +40 -0
  113. package/deps/couchbase-cxx-client/core/mcbp/durability_level.hxx +35 -0
  114. package/deps/couchbase-cxx-client/core/mcbp/durability_level_frame.hxx +28 -0
  115. package/deps/couchbase-cxx-client/core/mcbp/durability_timeout_frame.hxx +29 -0
  116. package/deps/couchbase-cxx-client/core/mcbp/frame_type.hxx +41 -0
  117. package/deps/couchbase-cxx-client/core/mcbp/open_tracing_frame.hxx +29 -0
  118. package/deps/couchbase-cxx-client/core/mcbp/operation_consumer.cxx +47 -0
  119. package/deps/couchbase-cxx-client/core/mcbp/operation_consumer.hxx +42 -0
  120. package/deps/couchbase-cxx-client/core/mcbp/operation_queue.cxx +158 -0
  121. package/deps/couchbase-cxx-client/core/mcbp/operation_queue.hxx +57 -0
  122. package/deps/couchbase-cxx-client/core/mcbp/packet.cxx +92 -0
  123. package/deps/couchbase-cxx-client/core/mcbp/packet.hxx +71 -0
  124. package/deps/couchbase-cxx-client/core/mcbp/preserve_expiry_frame.hxx +26 -0
  125. package/deps/couchbase-cxx-client/core/mcbp/queue_callback.hxx +34 -0
  126. package/deps/couchbase-cxx-client/core/mcbp/queue_request.cxx +174 -0
  127. package/deps/couchbase-cxx-client/core/mcbp/queue_request.hxx +120 -0
  128. package/deps/couchbase-cxx-client/core/mcbp/queue_request_connection_info.hxx +29 -0
  129. package/deps/couchbase-cxx-client/core/mcbp/queue_response.hxx +37 -0
  130. package/deps/couchbase-cxx-client/core/mcbp/read_units_frame.hxx +28 -0
  131. package/deps/couchbase-cxx-client/core/mcbp/server_duration.cxx +40 -0
  132. package/deps/couchbase-cxx-client/core/mcbp/server_duration.hxx +32 -0
  133. package/deps/couchbase-cxx-client/core/mcbp/server_duration_frame.hxx +28 -0
  134. package/deps/couchbase-cxx-client/core/mcbp/stream_id_frame.hxx +28 -0
  135. package/deps/couchbase-cxx-client/core/mcbp/unsupported_frame.hxx +32 -0
  136. package/deps/couchbase-cxx-client/core/mcbp/user_impersonation_frame.hxx +30 -0
  137. package/deps/couchbase-cxx-client/core/mcbp/write_units_frame.hxx +29 -0
  138. package/deps/couchbase-cxx-client/core/meta/version.cxx +10 -1
  139. package/deps/couchbase-cxx-client/core/metrics/logging_meter.cxx +1 -1
  140. package/deps/couchbase-cxx-client/core/n1ql_query_options.cxx +94 -0
  141. package/deps/couchbase-cxx-client/core/n1ql_query_options.hxx +78 -0
  142. package/deps/couchbase-cxx-client/core/{transactions/internal/get_and_open_buckets.hxx → operation_map.hxx} +14 -8
  143. package/deps/couchbase-cxx-client/core/operations/document_analytics.cxx +5 -5
  144. package/deps/couchbase-cxx-client/core/operations/document_append.hxx +1 -1
  145. package/deps/couchbase-cxx-client/core/operations/document_decrement.hxx +1 -1
  146. package/deps/couchbase-cxx-client/core/operations/document_exists.hxx +1 -1
  147. package/deps/couchbase-cxx-client/core/operations/document_get.hxx +1 -1
  148. package/deps/couchbase-cxx-client/core/operations/document_get_and_lock.hxx +1 -1
  149. package/deps/couchbase-cxx-client/core/operations/document_get_and_touch.hxx +1 -1
  150. package/deps/couchbase-cxx-client/core/operations/document_get_projected.hxx +1 -1
  151. package/deps/couchbase-cxx-client/core/operations/document_increment.hxx +1 -1
  152. package/deps/couchbase-cxx-client/core/operations/document_insert.hxx +1 -1
  153. package/deps/couchbase-cxx-client/core/operations/document_lookup_in.hxx +1 -1
  154. package/deps/couchbase-cxx-client/core/operations/document_mutate_in.hxx +1 -1
  155. package/deps/couchbase-cxx-client/core/operations/document_prepend.hxx +1 -1
  156. package/deps/couchbase-cxx-client/core/operations/document_query.cxx +19 -16
  157. package/deps/couchbase-cxx-client/core/operations/document_remove.hxx +1 -1
  158. package/deps/couchbase-cxx-client/core/operations/document_replace.hxx +1 -1
  159. package/deps/couchbase-cxx-client/core/operations/document_search.cxx +2 -2
  160. package/deps/couchbase-cxx-client/core/operations/document_touch.hxx +1 -1
  161. package/deps/couchbase-cxx-client/core/operations/document_unlock.hxx +1 -1
  162. package/deps/couchbase-cxx-client/core/operations/document_upsert.hxx +1 -1
  163. package/deps/couchbase-cxx-client/core/operations/management/CMakeLists.txt +1 -0
  164. package/deps/couchbase-cxx-client/core/operations/management/bucket_describe.cxx +32 -0
  165. package/deps/couchbase-cxx-client/core/operations/management/bucket_describe.hxx +3 -0
  166. package/deps/couchbase-cxx-client/core/operations/management/change_password.cxx +55 -0
  167. package/deps/couchbase-cxx-client/core/operations/management/change_password.hxx +50 -0
  168. package/deps/couchbase-cxx-client/core/operations/management/collections_manifest_get.hxx +1 -1
  169. package/deps/couchbase-cxx-client/core/operations/management/query_index_build.cxx +7 -2
  170. package/deps/couchbase-cxx-client/core/operations/management/query_index_build.hxx +1 -0
  171. package/deps/couchbase-cxx-client/core/operations/management/query_index_build_deferred.hxx +2 -0
  172. package/deps/couchbase-cxx-client/core/operations/management/query_index_create.cxx +7 -2
  173. package/deps/couchbase-cxx-client/core/operations/management/query_index_drop.cxx +11 -7
  174. package/deps/couchbase-cxx-client/core/operations/management/query_index_get_all.cxx +9 -1
  175. package/deps/couchbase-cxx-client/core/operations/management/query_index_get_all.hxx +1 -0
  176. package/deps/couchbase-cxx-client/core/operations/management/query_index_get_all_deferred.cxx +9 -1
  177. package/deps/couchbase-cxx-client/core/operations/management/query_index_get_all_deferred.hxx +1 -0
  178. package/deps/couchbase-cxx-client/core/operations/management/user.hxx +1 -0
  179. package/deps/couchbase-cxx-client/core/operations/mcbp_noop.hxx +1 -1
  180. package/deps/couchbase-cxx-client/core/pending_operation.hxx +26 -0
  181. package/deps/couchbase-cxx-client/core/ping_collector.hxx +32 -0
  182. package/deps/couchbase-cxx-client/core/ping_options.hxx +86 -0
  183. package/deps/couchbase-cxx-client/core/{io/retry_action.hxx → ping_reporter.hxx} +8 -8
  184. package/deps/couchbase-cxx-client/core/platform/base64.cc +52 -34
  185. package/deps/couchbase-cxx-client/core/platform/base64.h +10 -2
  186. package/deps/couchbase-cxx-client/core/platform/terminate_handler.cc +5 -5
  187. package/deps/couchbase-cxx-client/core/platform/uuid.cc +24 -19
  188. package/deps/couchbase-cxx-client/core/protocol/client_opcode.hxx +10 -1
  189. package/deps/couchbase-cxx-client/core/protocol/client_opcode_fmt.hxx +10 -1
  190. package/deps/couchbase-cxx-client/core/protocol/client_request.hxx +3 -4
  191. package/deps/couchbase-cxx-client/core/protocol/cmd_get_cluster_config.cxx +1 -1
  192. package/deps/couchbase-cxx-client/core/protocol/cmd_get_collections_manifest.cxx +1 -1
  193. package/deps/couchbase-cxx-client/core/protocol/cmd_get_error_map.cxx +1 -1
  194. package/deps/couchbase-cxx-client/core/protocol/hello_feature.hxx +8 -1
  195. package/deps/couchbase-cxx-client/core/protocol/hello_feature_fmt.hxx +6 -0
  196. package/deps/couchbase-cxx-client/core/protocol/status.cxx +11 -1
  197. package/deps/couchbase-cxx-client/core/protocol/status.hxx +7 -1
  198. package/deps/couchbase-cxx-client/core/range_scan_options.cxx +57 -0
  199. package/deps/couchbase-cxx-client/core/range_scan_options.hxx +139 -0
  200. package/deps/couchbase-cxx-client/core/range_scan_orchestrator.cxx +495 -0
  201. package/deps/couchbase-cxx-client/core/range_scan_orchestrator.hxx +54 -0
  202. package/deps/couchbase-cxx-client/core/range_scan_orchestrator_options.hxx +54 -0
  203. package/deps/couchbase-cxx-client/core/resource_units.hxx +26 -0
  204. package/deps/couchbase-cxx-client/core/response_handler.hxx +49 -0
  205. package/deps/couchbase-cxx-client/core/retry_orchestrator.cxx +52 -0
  206. package/deps/couchbase-cxx-client/core/retry_orchestrator.hxx +35 -0
  207. package/deps/couchbase-cxx-client/core/sasl/scram-sha/scram-sha.cc +12 -12
  208. package/deps/couchbase-cxx-client/core/scan_options.hxx +63 -0
  209. package/deps/couchbase-cxx-client/core/scan_result.cxx +71 -0
  210. package/deps/couchbase-cxx-client/core/scan_result.hxx +59 -0
  211. package/deps/couchbase-cxx-client/core/search_query_options.cxx +72 -0
  212. package/deps/couchbase-cxx-client/core/search_query_options.hxx +74 -0
  213. package/deps/couchbase-cxx-client/core/seed_config.cxx +39 -0
  214. package/deps/couchbase-cxx-client/core/seed_config.hxx +39 -0
  215. package/deps/couchbase-cxx-client/core/stats_options.hxx +61 -0
  216. package/deps/couchbase-cxx-client/core/subdoc_options.hxx +124 -0
  217. package/deps/couchbase-cxx-client/core/timeout_defaults.hxx +3 -1
  218. package/deps/couchbase-cxx-client/core/topology/configuration.cxx +10 -9
  219. package/deps/couchbase-cxx-client/core/topology/configuration.hxx +12 -1
  220. package/deps/couchbase-cxx-client/core/topology/error_map_json.hxx +1 -1
  221. package/deps/couchbase-cxx-client/core/tracing/constants.hxx +13 -1
  222. package/deps/couchbase-cxx-client/core/tracing/threshold_logging_tracer.cxx +2 -2
  223. package/deps/couchbase-cxx-client/core/transactions/active_transaction_record.hxx +2 -2
  224. package/deps/couchbase-cxx-client/core/transactions/async_attempt_context.hxx +7 -6
  225. package/deps/couchbase-cxx-client/core/transactions/atr_cleanup_entry.cxx +8 -8
  226. package/deps/couchbase-cxx-client/core/transactions/attempt_context.hxx +9 -3
  227. package/deps/couchbase-cxx-client/core/transactions/attempt_context_impl.cxx +461 -331
  228. package/deps/couchbase-cxx-client/core/transactions/attempt_context_impl.hxx +81 -23
  229. package/deps/couchbase-cxx-client/core/transactions/attempt_context_testing_hooks.hxx +6 -1
  230. package/deps/couchbase-cxx-client/core/transactions/cleanup_testing_hooks.hxx +9 -2
  231. package/deps/couchbase-cxx-client/core/transactions/durability_level.hxx +1 -1
  232. package/deps/couchbase-cxx-client/core/transactions/error_class.hxx +35 -0
  233. package/deps/couchbase-cxx-client/core/transactions/exceptions.cxx +13 -0
  234. package/deps/couchbase-cxx-client/core/transactions/exceptions.hxx +36 -25
  235. package/deps/couchbase-cxx-client/core/transactions/forward_compat.hxx +2 -1
  236. package/deps/couchbase-cxx-client/core/transactions/internal/exceptions_internal.hxx +1 -15
  237. package/deps/couchbase-cxx-client/core/transactions/internal/transaction_context.hxx +8 -11
  238. package/deps/couchbase-cxx-client/core/transactions/internal/transactions_cleanup.hxx +21 -9
  239. package/deps/couchbase-cxx-client/core/transactions/internal/utils.hxx +16 -8
  240. package/deps/couchbase-cxx-client/core/transactions/staged_mutation.cxx +4 -1
  241. package/deps/couchbase-cxx-client/core/transactions/transaction_context.cxx +19 -9
  242. package/deps/couchbase-cxx-client/core/transactions/transaction_options.cxx +38 -0
  243. package/deps/couchbase-cxx-client/core/transactions/transactions.cxx +16 -12
  244. package/deps/couchbase-cxx-client/core/transactions/transactions_cleanup.cxx +129 -128
  245. package/deps/couchbase-cxx-client/core/transactions/transactions_config.cxx +81 -0
  246. package/deps/couchbase-cxx-client/core/transactions/utils.cxx +11 -0
  247. package/deps/couchbase-cxx-client/core/transactions/waitable_op_list.hxx +4 -0
  248. package/deps/couchbase-cxx-client/core/transactions.hxx +15 -14
  249. package/deps/couchbase-cxx-client/core/utils/connection_string.cxx +17 -8
  250. package/deps/couchbase-cxx-client/core/utils/crc32.hxx +6 -0
  251. package/deps/couchbase-cxx-client/core/utils/json.cxx +2 -2
  252. package/deps/couchbase-cxx-client/core/utils/unsigned_leb128.hxx +19 -17
  253. package/deps/couchbase-cxx-client/core/utils/url_codec.cxx +1 -1
  254. package/deps/couchbase-cxx-client/core/view_query_options.cxx +72 -0
  255. package/deps/couchbase-cxx-client/core/view_query_options.hxx +78 -0
  256. package/deps/couchbase-cxx-client/core/wait_until_ready_options.hxx +52 -0
  257. package/deps/couchbase-cxx-client/couchbase/append_options.hxx +2 -2
  258. package/deps/couchbase-cxx-client/couchbase/best_effort_retry_strategy.hxx +64 -0
  259. package/deps/couchbase-cxx-client/couchbase/cluster.hxx +23 -4
  260. package/deps/couchbase-cxx-client/couchbase/cluster_options.hxx +39 -1
  261. package/deps/couchbase-cxx-client/couchbase/codec/json_transcoder.hxx +1 -1
  262. package/deps/couchbase-cxx-client/couchbase/common_options.hxx +21 -1
  263. package/deps/couchbase-cxx-client/couchbase/configuration_profile.hxx +13 -1
  264. package/deps/couchbase-cxx-client/couchbase/configuration_profiles_registry.hxx +23 -0
  265. package/deps/couchbase-cxx-client/couchbase/decrement_options.hxx +2 -1
  266. package/deps/couchbase-cxx-client/couchbase/error_codes.hxx +46 -0
  267. package/deps/couchbase-cxx-client/couchbase/error_context.hxx +3 -3
  268. package/deps/couchbase-cxx-client/couchbase/fail_fast_retry_strategy.hxx +37 -0
  269. package/deps/couchbase-cxx-client/couchbase/fmt/key_value_status_code.hxx +16 -0
  270. package/deps/couchbase-cxx-client/couchbase/fmt/retry_reason.hxx +7 -7
  271. package/deps/couchbase-cxx-client/couchbase/increment_options.hxx +2 -1
  272. package/deps/couchbase-cxx-client/couchbase/insert_options.hxx +2 -1
  273. package/deps/couchbase-cxx-client/couchbase/key_value_error_context.hxx +2 -2
  274. package/deps/couchbase-cxx-client/couchbase/key_value_status_code.hxx +15 -1
  275. package/deps/couchbase-cxx-client/couchbase/lookup_in_options.hxx +2 -1
  276. package/deps/couchbase-cxx-client/couchbase/manager_error_context.hxx +2 -2
  277. package/deps/couchbase-cxx-client/couchbase/mutate_in_options.hxx +2 -3
  278. package/deps/couchbase-cxx-client/couchbase/prepend_options.hxx +2 -1
  279. package/deps/couchbase-cxx-client/couchbase/query_error_context.hxx +1 -1
  280. package/deps/couchbase-cxx-client/couchbase/query_options.hxx +21 -1
  281. package/deps/couchbase-cxx-client/couchbase/query_result.hxx +0 -1
  282. package/deps/couchbase-cxx-client/couchbase/remove_options.hxx +2 -1
  283. package/deps/couchbase-cxx-client/couchbase/replace_options.hxx +2 -1
  284. package/deps/couchbase-cxx-client/couchbase/retry_action.hxx +41 -0
  285. package/deps/couchbase-cxx-client/couchbase/retry_reason.hxx +14 -8
  286. package/deps/couchbase-cxx-client/couchbase/retry_request.hxx +39 -0
  287. package/deps/couchbase-cxx-client/couchbase/retry_strategy.hxx +35 -0
  288. package/deps/couchbase-cxx-client/couchbase/subdocument_error_context.hxx +1 -1
  289. package/deps/couchbase-cxx-client/couchbase/transaction_op_error_context.hxx +33 -7
  290. package/deps/couchbase-cxx-client/couchbase/transactions/async_attempt_context.hxx +17 -6
  291. package/deps/couchbase-cxx-client/couchbase/transactions/attempt_context.hxx +16 -6
  292. package/deps/couchbase-cxx-client/couchbase/transactions/transaction_keyspace.hxx +34 -1
  293. package/deps/couchbase-cxx-client/couchbase/transactions/{per_transaction_config.hxx → transaction_options.hxx} +30 -33
  294. package/deps/couchbase-cxx-client/{core → couchbase}/transactions/transaction_query_options.hxx +57 -35
  295. package/deps/couchbase-cxx-client/couchbase/transactions/transaction_query_result.hxx +55 -0
  296. package/deps/couchbase-cxx-client/couchbase/transactions/transactions_cleanup_config.hxx +140 -0
  297. package/deps/couchbase-cxx-client/couchbase/transactions/transactions_config.hxx +255 -0
  298. package/deps/couchbase-cxx-client/couchbase/transactions/transactions_query_config.hxx +61 -0
  299. package/deps/couchbase-cxx-client/couchbase/transactions.hxx +3 -3
  300. package/deps/couchbase-cxx-client/couchbase/upsert_options.hxx +2 -1
  301. package/deps/couchbase-cxx-client/examples/CMakeLists.txt +10 -0
  302. package/deps/couchbase-cxx-client/examples/async_game_server.cxx +314 -0
  303. package/deps/couchbase-cxx-client/examples/channels.cxx +50 -0
  304. package/deps/couchbase-cxx-client/examples/distributed_mutex.cxx +186 -0
  305. package/deps/couchbase-cxx-client/examples/game_server.cxx +81 -102
  306. package/deps/couchbase-cxx-client/test/CMakeLists.txt +1 -0
  307. package/deps/couchbase-cxx-client/test/test_helper.hxx +5 -0
  308. package/deps/couchbase-cxx-client/test/test_integration_analytics.cxx +3 -3
  309. package/deps/couchbase-cxx-client/test/test_integration_collections.cxx +2 -2
  310. package/deps/couchbase-cxx-client/test/test_integration_connect.cxx +12 -6
  311. package/deps/couchbase-cxx-client/test/test_integration_crud.cxx +7 -5
  312. package/deps/couchbase-cxx-client/test/test_integration_management.cxx +65 -7
  313. package/deps/couchbase-cxx-client/test/test_integration_query.cxx +85 -0
  314. package/deps/couchbase-cxx-client/test/test_integration_range_scan.cxx +1067 -0
  315. package/deps/couchbase-cxx-client/test/test_transaction_transaction_context.cxx +236 -110
  316. package/deps/couchbase-cxx-client/test/test_transaction_transaction_public_async_api.cxx +217 -76
  317. package/deps/couchbase-cxx-client/test/test_transaction_transaction_public_blocking_api.cxx +523 -147
  318. package/deps/couchbase-cxx-client/test/test_transaction_transaction_simple.cxx +467 -514
  319. package/deps/couchbase-cxx-client/test/test_transaction_transaction_simple_async.cxx +415 -330
  320. package/deps/couchbase-cxx-client/test/test_unit_connection_string.cxx +4 -0
  321. package/deps/couchbase-cxx-client/test/test_unit_transaction_logging.cxx +3 -10
  322. package/deps/couchbase-cxx-client/test/test_unit_transaction_utils.cxx +0 -2
  323. package/deps/couchbase-cxx-client/test/test_unit_utils.cxx +73 -8
  324. package/deps/couchbase-cxx-client/test/tools/tool_kv_loader.cxx +140 -65
  325. package/deps/couchbase-cxx-client/test/utils/integration_shortcuts.cxx +3 -3
  326. package/deps/couchbase-cxx-client/test/utils/integration_test_guard.cxx +45 -10
  327. package/deps/couchbase-cxx-client/test/utils/integration_test_guard.hxx +13 -3
  328. package/deps/couchbase-cxx-client/test/utils/test_context.cxx +8 -0
  329. package/deps/couchbase-cxx-client/test/utils/test_context.hxx +2 -0
  330. package/deps/couchbase-cxx-client/test/utils/wait_until.cxx +36 -0
  331. package/deps/couchbase-cxx-client/test/utils/wait_until.hxx +8 -1
  332. package/deps/couchbase-cxx-client/third_party/asio/.cirrus.yml +2 -2
  333. package/deps/couchbase-cxx-client/third_party/asio/asio/COPYING +1 -1
  334. package/deps/couchbase-cxx-client/third_party/asio/asio/Makefile.am +2 -0
  335. package/deps/couchbase-cxx-client/third_party/asio/asio/README +2 -2
  336. package/deps/couchbase-cxx-client/third_party/asio/asio/asio.manifest +373 -102
  337. package/deps/couchbase-cxx-client/third_party/asio/asio/asio.pc.in +11 -0
  338. package/deps/couchbase-cxx-client/third_party/asio/asio/boost_asio.manifest +440 -104
  339. package/deps/couchbase-cxx-client/third_party/asio/asio/boostify.pl +37 -3
  340. package/deps/couchbase-cxx-client/third_party/asio/asio/configure.ac +6 -2
  341. package/deps/couchbase-cxx-client/third_party/asio/asio/include/Makefile.am +13 -5
  342. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/any_io_executor.hpp +4 -2
  343. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/append.hpp +78 -0
  344. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/as_tuple.hpp +139 -0
  345. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/associated_allocator.hpp +4 -4
  346. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/associated_cancellation_slot.hpp +4 -3
  347. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/associated_executor.hpp +4 -4
  348. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/associator.hpp +1 -1
  349. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/async_result.hpp +357 -1
  350. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/awaitable.hpp +10 -1
  351. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_datagram_socket.hpp +208 -115
  352. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_deadline_timer.hpp +28 -16
  353. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_file.hpp +2 -2
  354. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_io_object.hpp +1 -1
  355. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_random_access_file.hpp +51 -27
  356. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_raw_socket.hpp +210 -117
  357. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_readable_pipe.hpp +127 -15
  358. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_seq_packet_socket.hpp +84 -47
  359. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_serial_port.hpp +120 -27
  360. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_signal_set.hpp +36 -14
  361. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_socket.hpp +50 -26
  362. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_socket_acceptor.hpp +295 -150
  363. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_socket_iostream.hpp +1 -1
  364. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_socket_streambuf.hpp +1 -1
  365. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_stream_file.hpp +51 -27
  366. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_stream_socket.hpp +153 -84
  367. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_streambuf.hpp +1 -1
  368. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_streambuf_fwd.hpp +1 -1
  369. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_waitable_timer.hpp +28 -16
  370. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/basic_writable_pipe.hpp +127 -15
  371. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/bind_allocator.hpp +722 -0
  372. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/bind_cancellation_slot.hpp +11 -8
  373. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/bind_executor.hpp +36 -20
  374. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/buffer.hpp +222 -42
  375. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/buffer_registration.hpp +2 -1
  376. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/buffered_read_stream.hpp +38 -6
  377. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/buffered_read_stream_fwd.hpp +1 -1
  378. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/buffered_stream.hpp +34 -5
  379. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/buffered_stream_fwd.hpp +1 -1
  380. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/buffered_write_stream.hpp +38 -6
  381. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/buffered_write_stream_fwd.hpp +1 -1
  382. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/buffers_iterator.hpp +1 -1
  383. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/cancellation_signal.hpp +1 -1
  384. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/cancellation_state.hpp +1 -1
  385. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/cancellation_type.hpp +1 -1
  386. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/co_spawn.hpp +33 -9
  387. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/completion_condition.hpp +1 -1
  388. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/compose.hpp +682 -12
  389. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/connect.hpp +132 -61
  390. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/connect_pipe.hpp +1 -1
  391. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/coroutine.hpp +1 -1
  392. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/deadline_timer.hpp +1 -1
  393. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/defer.hpp +128 -42
  394. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/deferred.hpp +675 -0
  395. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detached.hpp +6 -5
  396. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/array.hpp +1 -1
  397. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/array_fwd.hpp +1 -1
  398. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/assert.hpp +1 -1
  399. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/atomic_count.hpp +1 -1
  400. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/base_from_cancellation_state.hpp +1 -1
  401. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/base_from_completion_cond.hpp +1 -1
  402. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/bind_handler.hpp +1 -1
  403. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/blocking_executor_op.hpp +1 -1
  404. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/buffer_resize_guard.hpp +1 -1
  405. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/buffer_sequence_adapter.hpp +1 -1
  406. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/buffered_stream_storage.hpp +1 -1
  407. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/bulk_executor_op.hpp +1 -1
  408. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/call_stack.hpp +1 -1
  409. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/chrono.hpp +1 -1
  410. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/chrono_time_traits.hpp +1 -1
  411. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/completion_handler.hpp +1 -1
  412. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/concurrency_hint.hpp +1 -1
  413. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/conditionally_enabled_event.hpp +1 -1
  414. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/conditionally_enabled_mutex.hpp +1 -1
  415. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/config.hpp +201 -11
  416. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/consuming_buffers.hpp +1 -1
  417. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/cstddef.hpp +1 -1
  418. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/cstdint.hpp +1 -1
  419. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/date_time_fwd.hpp +1 -1
  420. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/deadline_timer_service.hpp +1 -1
  421. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/dependent_type.hpp +1 -1
  422. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/descriptor_ops.hpp +2 -2
  423. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/descriptor_read_op.hpp +3 -1
  424. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/descriptor_write_op.hpp +3 -1
  425. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/dev_poll_reactor.hpp +1 -1
  426. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/epoll_reactor.hpp +1 -1
  427. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/event.hpp +1 -1
  428. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/eventfd_select_interrupter.hpp +1 -1
  429. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/exception.hpp +40 -0
  430. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/executor_function.hpp +1 -1
  431. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/executor_op.hpp +1 -1
  432. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/fd_set_adapter.hpp +1 -1
  433. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/fenced_block.hpp +1 -1
  434. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/functional.hpp +1 -1
  435. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/future.hpp +1 -1
  436. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/gcc_arm_fenced_block.hpp +1 -1
  437. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/gcc_hppa_fenced_block.hpp +1 -1
  438. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/gcc_sync_fenced_block.hpp +1 -1
  439. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/gcc_x86_fenced_block.hpp +2 -2
  440. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/global.hpp +1 -1
  441. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/handler_alloc_helpers.hpp +1 -1
  442. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/handler_cont_helpers.hpp +1 -1
  443. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/handler_invoke_helpers.hpp +1 -1
  444. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/handler_tracking.hpp +1 -1
  445. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/handler_type_requirements.hpp +1 -1
  446. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/handler_work.hpp +1 -1
  447. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/hash_map.hpp +1 -1
  448. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/buffer_sequence_adapter.ipp +1 -1
  449. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/descriptor_ops.ipp +9 -9
  450. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/dev_poll_reactor.hpp +1 -1
  451. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/dev_poll_reactor.ipp +1 -1
  452. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/epoll_reactor.hpp +1 -1
  453. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/epoll_reactor.ipp +1 -1
  454. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/eventfd_select_interrupter.ipp +1 -1
  455. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/handler_tracking.ipp +1 -1
  456. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/io_uring_descriptor_service.ipp +4 -1
  457. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/io_uring_file_service.ipp +10 -1
  458. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/io_uring_service.hpp +1 -1
  459. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/io_uring_service.ipp +8 -7
  460. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/io_uring_socket_service_base.ipp +1 -1
  461. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/kqueue_reactor.hpp +1 -1
  462. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/kqueue_reactor.ipp +1 -1
  463. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/null_event.ipp +1 -1
  464. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/pipe_select_interrupter.ipp +1 -1
  465. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/posix_event.ipp +1 -1
  466. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/posix_mutex.ipp +1 -1
  467. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/posix_serial_port_service.ipp +21 -2
  468. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/posix_thread.ipp +1 -1
  469. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/posix_tss_ptr.ipp +1 -1
  470. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/reactive_descriptor_service.ipp +6 -1
  471. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/reactive_socket_service_base.ipp +3 -3
  472. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/resolver_service_base.ipp +1 -1
  473. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/scheduler.ipp +1 -1
  474. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/select_reactor.hpp +1 -1
  475. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/select_reactor.ipp +36 -1
  476. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/service_registry.hpp +1 -1
  477. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/service_registry.ipp +1 -1
  478. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/signal_set_service.ipp +28 -1
  479. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/socket_ops.ipp +126 -121
  480. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/socket_select_interrupter.ipp +4 -4
  481. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/strand_executor_service.hpp +1 -1
  482. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/strand_executor_service.ipp +1 -1
  483. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/strand_service.hpp +1 -1
  484. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/strand_service.ipp +1 -1
  485. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/thread_context.ipp +1 -1
  486. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/throw_error.ipp +13 -9
  487. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/timer_queue_ptime.ipp +1 -1
  488. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/timer_queue_set.ipp +1 -1
  489. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/win_event.ipp +1 -1
  490. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/win_iocp_file_service.ipp +21 -7
  491. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/win_iocp_handle_service.ipp +94 -1
  492. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/win_iocp_io_context.hpp +1 -1
  493. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/win_iocp_io_context.ipp +1 -1
  494. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/win_iocp_serial_port_service.ipp +9 -1
  495. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/win_iocp_socket_service_base.ipp +11 -11
  496. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/win_mutex.ipp +1 -1
  497. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/win_object_handle_service.ipp +5 -1
  498. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/win_static_mutex.ipp +1 -1
  499. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/win_thread.ipp +1 -1
  500. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/win_tss_ptr.ipp +1 -1
  501. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/winrt_ssocket_service_base.ipp +4 -4
  502. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.hpp +1 -1
  503. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.ipp +1 -1
  504. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/impl/winsock_init.ipp +1 -1
  505. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_control.hpp +1 -1
  506. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_object_impl.hpp +11 -2
  507. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_descriptor_read_at_op.hpp +3 -1
  508. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_descriptor_read_op.hpp +3 -1
  509. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_descriptor_service.hpp +26 -8
  510. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_descriptor_write_at_op.hpp +3 -1
  511. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_descriptor_write_op.hpp +3 -1
  512. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_file_service.hpp +12 -1
  513. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_null_buffers_op.hpp +3 -1
  514. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_operation.hpp +1 -1
  515. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_service.hpp +2 -2
  516. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_socket_accept_op.hpp +5 -1
  517. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_socket_connect_op.hpp +3 -1
  518. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_socket_recv_op.hpp +3 -1
  519. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_socket_recvfrom_op.hpp +4 -2
  520. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_socket_recvmsg_op.hpp +3 -1
  521. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_socket_send_op.hpp +3 -1
  522. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_socket_sendto_op.hpp +3 -1
  523. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_socket_service.hpp +31 -13
  524. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_socket_service_base.hpp +1 -1
  525. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/io_uring_wait_op.hpp +3 -1
  526. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/is_buffer_sequence.hpp +1 -1
  527. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/is_executor.hpp +1 -1
  528. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/keyword_tss_ptr.hpp +1 -1
  529. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/kqueue_reactor.hpp +1 -1
  530. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/local_free_on_block_exit.hpp +1 -1
  531. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/macos_fenced_block.hpp +1 -1
  532. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/memory.hpp +17 -1
  533. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/mutex.hpp +1 -1
  534. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/non_const_lvalue.hpp +1 -1
  535. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/noncopyable.hpp +1 -1
  536. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/null_event.hpp +1 -1
  537. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/null_fenced_block.hpp +1 -1
  538. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/null_global.hpp +1 -1
  539. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/null_mutex.hpp +1 -1
  540. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/null_reactor.hpp +1 -1
  541. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/null_signal_blocker.hpp +1 -1
  542. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/null_socket_service.hpp +1 -1
  543. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/null_static_mutex.hpp +1 -1
  544. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/null_thread.hpp +1 -1
  545. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/null_tss_ptr.hpp +1 -1
  546. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/object_pool.hpp +1 -1
  547. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/old_win_sdk_compat.hpp +1 -1
  548. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/op_queue.hpp +1 -1
  549. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/operation.hpp +1 -1
  550. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/pipe_select_interrupter.hpp +1 -1
  551. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/pop_options.hpp +5 -1
  552. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/posix_event.hpp +1 -1
  553. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/posix_fd_set_adapter.hpp +1 -1
  554. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/posix_global.hpp +1 -1
  555. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/posix_mutex.hpp +1 -1
  556. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/posix_serial_port_service.hpp +2 -1
  557. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/posix_signal_blocker.hpp +1 -1
  558. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/posix_static_mutex.hpp +1 -1
  559. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/posix_thread.hpp +1 -1
  560. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/posix_tss_ptr.hpp +1 -1
  561. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/push_options.hpp +11 -2
  562. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/reactive_descriptor_service.hpp +26 -7
  563. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/reactive_null_buffers_op.hpp +1 -1
  564. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/reactive_socket_accept_op.hpp +5 -1
  565. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/reactive_socket_connect_op.hpp +3 -1
  566. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/reactive_socket_recv_op.hpp +3 -1
  567. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/reactive_socket_recvfrom_op.hpp +3 -1
  568. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/reactive_socket_recvmsg_op.hpp +3 -1
  569. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/reactive_socket_send_op.hpp +3 -1
  570. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/reactive_socket_sendto_op.hpp +3 -1
  571. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/reactive_socket_service.hpp +38 -12
  572. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/reactive_socket_service_base.hpp +2 -3
  573. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/reactive_wait_op.hpp +1 -1
  574. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/reactor.hpp +1 -1
  575. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/reactor_op.hpp +1 -1
  576. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/reactor_op_queue.hpp +1 -1
  577. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/recycling_allocator.hpp +1 -1
  578. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/regex_fwd.hpp +1 -1
  579. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/resolve_endpoint_op.hpp +1 -1
  580. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/resolve_op.hpp +1 -1
  581. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/resolve_query_op.hpp +1 -1
  582. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/resolver_service.hpp +3 -1
  583. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/resolver_service_base.hpp +1 -1
  584. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/scheduler.hpp +1 -1
  585. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/scheduler_operation.hpp +1 -1
  586. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/scheduler_task.hpp +1 -1
  587. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/scheduler_thread_info.hpp +1 -1
  588. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/scoped_lock.hpp +1 -1
  589. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/scoped_ptr.hpp +1 -1
  590. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/select_interrupter.hpp +1 -1
  591. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/select_reactor.hpp +23 -1
  592. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/service_registry.hpp +1 -1
  593. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/signal_blocker.hpp +1 -1
  594. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/signal_handler.hpp +1 -1
  595. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/signal_init.hpp +1 -1
  596. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/signal_op.hpp +5 -1
  597. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/signal_set_service.hpp +43 -1
  598. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/socket_holder.hpp +1 -1
  599. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/socket_ops.hpp +37 -45
  600. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/socket_option.hpp +1 -1
  601. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/socket_select_interrupter.hpp +1 -1
  602. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/socket_types.hpp +1 -1
  603. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/solaris_fenced_block.hpp +1 -1
  604. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/source_location.hpp +1 -1
  605. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/static_mutex.hpp +1 -1
  606. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/std_event.hpp +1 -1
  607. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/std_fenced_block.hpp +1 -1
  608. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/std_global.hpp +1 -1
  609. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/std_mutex.hpp +1 -1
  610. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/std_static_mutex.hpp +1 -1
  611. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/std_thread.hpp +1 -1
  612. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/strand_executor_service.hpp +1 -1
  613. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/strand_service.hpp +1 -1
  614. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/string_view.hpp +1 -1
  615. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/thread.hpp +1 -1
  616. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/thread_context.hpp +1 -1
  617. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/thread_group.hpp +1 -1
  618. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/thread_info_base.hpp +1 -1
  619. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/throw_error.hpp +18 -9
  620. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/throw_exception.hpp +7 -3
  621. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/timer_queue.hpp +1 -1
  622. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/timer_queue_base.hpp +1 -1
  623. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/timer_queue_ptime.hpp +1 -1
  624. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/timer_queue_set.hpp +1 -1
  625. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/timer_scheduler.hpp +1 -1
  626. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/timer_scheduler_fwd.hpp +1 -1
  627. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/tss_ptr.hpp +1 -1
  628. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/type_traits.hpp +9 -1
  629. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/utility.hpp +84 -0
  630. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/variadic_templates.hpp +1 -1
  631. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/wait_handler.hpp +1 -1
  632. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/wait_op.hpp +1 -1
  633. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_event.hpp +1 -1
  634. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_fd_set_adapter.hpp +1 -1
  635. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_fenced_block.hpp +1 -1
  636. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_global.hpp +1 -1
  637. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_file_service.hpp +8 -1
  638. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_handle_read_op.hpp +3 -1
  639. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_handle_service.hpp +29 -1
  640. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_handle_write_op.hpp +6 -2
  641. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_io_context.hpp +1 -1
  642. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_null_buffers_op.hpp +3 -1
  643. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_operation.hpp +1 -1
  644. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_overlapped_op.hpp +6 -2
  645. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_overlapped_ptr.hpp +1 -1
  646. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_serial_port_service.hpp +2 -1
  647. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_socket_accept_op.hpp +5 -1
  648. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_socket_connect_op.hpp +3 -1
  649. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_socket_recv_op.hpp +3 -1
  650. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_socket_recvfrom_op.hpp +3 -1
  651. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_socket_recvmsg_op.hpp +3 -1
  652. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_socket_send_op.hpp +3 -1
  653. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_socket_service.hpp +32 -8
  654. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_socket_service_base.hpp +6 -8
  655. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_thread_info.hpp +1 -1
  656. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_iocp_wait_op.hpp +3 -1
  657. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_mutex.hpp +1 -1
  658. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_object_handle_service.hpp +1 -1
  659. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_static_mutex.hpp +1 -1
  660. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_thread.hpp +1 -1
  661. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/win_tss_ptr.hpp +1 -1
  662. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/winapp_thread.hpp +1 -1
  663. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/wince_thread.hpp +1 -1
  664. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/winrt_async_manager.hpp +1 -1
  665. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/winrt_async_op.hpp +1 -1
  666. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/winrt_resolve_op.hpp +1 -1
  667. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/winrt_resolver_service.hpp +1 -1
  668. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/winrt_socket_connect_op.hpp +1 -1
  669. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/winrt_socket_recv_op.hpp +1 -1
  670. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/winrt_socket_send_op.hpp +1 -1
  671. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/winrt_ssocket_service.hpp +1 -1
  672. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/winrt_ssocket_service_base.hpp +1 -1
  673. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/winrt_timer_scheduler.hpp +1 -1
  674. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/winrt_utils.hpp +1 -1
  675. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/winsock_init.hpp +1 -1
  676. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/work_dispatcher.hpp +4 -2
  677. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/detail/wrapped_handler.hpp +1 -1
  678. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/dispatch.hpp +126 -42
  679. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/error.hpp +36 -1
  680. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/error_code.hpp +1 -1
  681. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/allocator.hpp +1 -1
  682. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/any_executor.hpp +1 -1
  683. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/bad_executor.hpp +1 -1
  684. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/blocking.hpp +1 -1
  685. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/blocking_adaptation.hpp +1 -1
  686. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/bulk_execute.hpp +1 -1
  687. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/bulk_guarantee.hpp +1 -1
  688. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/connect.hpp +1 -1
  689. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/context.hpp +1 -1
  690. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/context_as.hpp +1 -1
  691. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/detail/as_invocable.hpp +1 -1
  692. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/detail/as_operation.hpp +1 -1
  693. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/detail/as_receiver.hpp +1 -1
  694. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/detail/bulk_sender.hpp +1 -1
  695. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/detail/submit_receiver.hpp +1 -1
  696. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/detail/void_receiver.hpp +1 -1
  697. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/execute.hpp +1 -1
  698. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/executor.hpp +1 -1
  699. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/impl/bad_executor.ipp +1 -1
  700. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/impl/receiver_invocation_error.ipp +1 -1
  701. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/invocable_archetype.hpp +1 -1
  702. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/mapping.hpp +1 -1
  703. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/occupancy.hpp +1 -1
  704. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/operation_state.hpp +1 -1
  705. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/outstanding_work.hpp +1 -1
  706. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/prefer_only.hpp +1 -1
  707. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/receiver.hpp +1 -1
  708. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/receiver_invocation_error.hpp +1 -1
  709. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/relationship.hpp +1 -1
  710. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/schedule.hpp +1 -1
  711. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/scheduler.hpp +1 -1
  712. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/sender.hpp +1 -1
  713. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/set_done.hpp +1 -1
  714. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/set_error.hpp +1 -1
  715. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/set_value.hpp +1 -1
  716. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/start.hpp +1 -1
  717. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution/submit.hpp +1 -1
  718. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution.hpp +1 -1
  719. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/execution_context.hpp +1 -1
  720. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/executor.hpp +1 -1
  721. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/executor_work_guard.hpp +100 -32
  722. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/append.hpp +6 -41
  723. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/as_single.hpp +6 -5
  724. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/as_tuple.hpp +6 -101
  725. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/awaitable_operators.hpp +14 -14
  726. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/basic_channel.hpp +78 -2
  727. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/basic_concurrent_channel.hpp +69 -2
  728. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/cancellation_condition.hpp +1 -1
  729. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/channel.hpp +1 -1
  730. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/channel_error.hpp +1 -1
  731. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/channel_traits.hpp +1 -1
  732. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/co_spawn.hpp +12 -16
  733. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/concurrent_channel.hpp +1 -1
  734. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/coro.hpp +4 -4
  735. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/coro_traits.hpp +2 -2
  736. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/deferred.hpp +6 -575
  737. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/detail/channel_handler.hpp +1 -1
  738. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/detail/channel_message.hpp +1 -1
  739. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/detail/channel_operation.hpp +1 -1
  740. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/detail/channel_payload.hpp +1 -1
  741. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/detail/channel_receive_op.hpp +1 -1
  742. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/detail/channel_send_functions.hpp +2 -1
  743. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/detail/channel_send_op.hpp +1 -1
  744. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/detail/channel_service.hpp +1 -1
  745. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/detail/completion_handler_erasure.hpp +82 -46
  746. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/detail/coro_promise_allocator.hpp +2 -2
  747. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/detail/has_signature.hpp +1 -1
  748. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/detail/impl/channel_service.hpp +6 -8
  749. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/detail/partial_promise.hpp +2 -2
  750. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/impl/as_single.hpp +1 -1
  751. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/impl/channel_error.ipp +1 -1
  752. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/impl/coro.hpp +47 -56
  753. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/impl/parallel_group.hpp +14 -28
  754. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/impl/promise.hpp +2 -2
  755. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/impl/use_coro.hpp +3 -2
  756. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/parallel_group.hpp +27 -37
  757. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/prepend.hpp +6 -41
  758. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/promise.hpp +23 -405
  759. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/experimental/use_coro.hpp +5 -5
  760. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/file_base.hpp +9 -3
  761. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/generic/basic_endpoint.hpp +1 -1
  762. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/generic/datagram_protocol.hpp +1 -1
  763. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/generic/detail/endpoint.hpp +1 -1
  764. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/generic/detail/impl/endpoint.ipp +1 -1
  765. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/generic/raw_protocol.hpp +1 -1
  766. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/generic/seq_packet_protocol.hpp +1 -1
  767. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/generic/stream_protocol.hpp +1 -1
  768. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/handler_alloc_hook.hpp +1 -1
  769. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/handler_continuation_hook.hpp +1 -1
  770. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/handler_invoke_hook.hpp +1 -1
  771. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/high_resolution_timer.hpp +1 -1
  772. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/any_io_executor.ipp +6 -1
  773. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/{experimental/impl → impl}/append.hpp +18 -19
  774. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/{experimental/impl → impl}/as_tuple.hpp +13 -15
  775. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/awaitable.hpp +400 -5
  776. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/buffered_read_stream.hpp +13 -3
  777. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/buffered_write_stream.hpp +13 -3
  778. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/cancellation_signal.ipp +1 -1
  779. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/co_spawn.hpp +71 -7
  780. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/connect.hpp +63 -31
  781. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/connect_pipe.hpp +1 -1
  782. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/connect_pipe.ipp +2 -2
  783. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/defer.hpp +23 -13
  784. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/{experimental/impl → impl}/deferred.hpp +31 -40
  785. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/detached.hpp +1 -1
  786. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/dispatch.hpp +23 -13
  787. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/error.ipp +1 -1
  788. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/error_code.ipp +1 -1
  789. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/execution_context.hpp +1 -1
  790. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/execution_context.ipp +1 -1
  791. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/executor.hpp +1 -1
  792. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/executor.ipp +1 -1
  793. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/handler_alloc_hook.ipp +1 -1
  794. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/io_context.hpp +9 -3
  795. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/io_context.ipp +1 -1
  796. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/multiple_exceptions.ipp +1 -1
  797. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/post.hpp +23 -13
  798. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/{experimental/impl → impl}/prepend.hpp +16 -17
  799. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/read.hpp +97 -51
  800. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/read_at.hpp +51 -31
  801. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/read_until.hpp +119 -59
  802. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/redirect_error.hpp +1 -1
  803. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/serial_port_base.hpp +1 -1
  804. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/serial_port_base.ipp +1 -1
  805. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/spawn.hpp +1321 -277
  806. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/src.hpp +1 -1
  807. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/system_context.hpp +1 -1
  808. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/system_context.ipp +1 -1
  809. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/system_executor.hpp +1 -1
  810. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/thread_pool.hpp +1 -1
  811. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/thread_pool.ipp +1 -1
  812. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/use_awaitable.hpp +18 -8
  813. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/use_future.hpp +1 -1
  814. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/write.hpp +95 -50
  815. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/write_at.hpp +53 -31
  816. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/io_context.hpp +25 -38
  817. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/io_context_strand.hpp +15 -3
  818. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/io_service.hpp +1 -1
  819. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/io_service_strand.hpp +1 -1
  820. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/address.hpp +1 -1
  821. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/address_v4.hpp +75 -1
  822. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/address_v4_iterator.hpp +1 -1
  823. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/address_v4_range.hpp +1 -1
  824. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/address_v6.hpp +35 -1
  825. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/address_v6_iterator.hpp +1 -1
  826. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/address_v6_range.hpp +1 -1
  827. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/bad_address_cast.hpp +1 -1
  828. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/basic_endpoint.hpp +1 -1
  829. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/basic_resolver.hpp +130 -64
  830. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/basic_resolver_entry.hpp +1 -1
  831. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/basic_resolver_iterator.hpp +1 -1
  832. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/basic_resolver_query.hpp +1 -1
  833. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/basic_resolver_results.hpp +1 -1
  834. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/detail/endpoint.hpp +1 -1
  835. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/detail/impl/endpoint.ipp +1 -1
  836. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/detail/socket_option.hpp +1 -1
  837. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/host_name.hpp +1 -1
  838. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/icmp.hpp +1 -1
  839. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/impl/address.hpp +1 -1
  840. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/impl/address.ipp +1 -1
  841. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/impl/address_v4.hpp +1 -1
  842. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/impl/address_v4.ipp +1 -1
  843. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/impl/address_v6.hpp +1 -1
  844. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/impl/address_v6.ipp +1 -1
  845. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/impl/basic_endpoint.hpp +1 -1
  846. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/impl/host_name.ipp +1 -1
  847. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/impl/network_v4.hpp +1 -1
  848. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/impl/network_v4.ipp +1 -1
  849. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/impl/network_v6.hpp +1 -1
  850. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/impl/network_v6.ipp +1 -1
  851. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/multicast.hpp +1 -1
  852. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/network_v4.hpp +1 -1
  853. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/network_v6.hpp +1 -1
  854. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/resolver_base.hpp +1 -1
  855. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/resolver_query_base.hpp +1 -1
  856. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/tcp.hpp +1 -1
  857. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/udp.hpp +1 -1
  858. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/unicast.hpp +1 -1
  859. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ip/v6_only.hpp +2 -2
  860. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/is_applicable_property.hpp +1 -1
  861. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/is_contiguous_iterator.hpp +45 -0
  862. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/is_executor.hpp +1 -1
  863. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/is_read_buffered.hpp +1 -1
  864. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/is_write_buffered.hpp +1 -1
  865. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/local/basic_endpoint.hpp +1 -1
  866. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/local/connect_pair.hpp +1 -1
  867. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/local/datagram_protocol.hpp +1 -1
  868. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/local/detail/endpoint.hpp +1 -1
  869. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/local/detail/impl/endpoint.ipp +1 -1
  870. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/local/stream_protocol.hpp +1 -1
  871. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/multiple_exceptions.hpp +1 -1
  872. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/packaged_task.hpp +1 -1
  873. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/placeholders.hpp +1 -1
  874. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/posix/basic_descriptor.hpp +74 -13
  875. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/posix/basic_stream_descriptor.hpp +95 -27
  876. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/posix/descriptor.hpp +1 -1
  877. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/posix/descriptor_base.hpp +1 -1
  878. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/posix/stream_descriptor.hpp +1 -1
  879. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/post.hpp +128 -42
  880. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/prefer.hpp +1 -1
  881. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/prepend.hpp +78 -0
  882. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/query.hpp +1 -1
  883. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/random_access_file.hpp +1 -1
  884. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/read.hpp +245 -153
  885. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/read_at.hpp +110 -53
  886. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/read_until.hpp +301 -166
  887. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/readable_pipe.hpp +1 -1
  888. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/recycling_allocator.hpp +138 -0
  889. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/redirect_error.hpp +3 -3
  890. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/registered_buffer.hpp +1 -1
  891. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/require.hpp +1 -1
  892. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/require_concept.hpp +1 -1
  893. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/serial_port.hpp +1 -1
  894. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/serial_port_base.hpp +1 -1
  895. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/signal_set.hpp +1 -1
  896. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/socket_base.hpp +1 -1
  897. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/spawn.hpp +647 -87
  898. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/context.hpp +4 -1
  899. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/context_base.hpp +1 -1
  900. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/detail/buffered_handshake_op.hpp +1 -1
  901. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/detail/engine.hpp +4 -1
  902. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/detail/handshake_op.hpp +1 -1
  903. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/detail/impl/engine.ipp +19 -1
  904. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/detail/impl/openssl_init.ipp +7 -3
  905. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/detail/io.hpp +1 -1
  906. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/detail/openssl_init.hpp +1 -1
  907. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/detail/openssl_types.hpp +1 -1
  908. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/detail/password_callback.hpp +1 -1
  909. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/detail/read_op.hpp +1 -1
  910. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/detail/shutdown_op.hpp +1 -1
  911. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/detail/stream_core.hpp +16 -1
  912. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/detail/verify_callback.hpp +1 -1
  913. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/detail/write_op.hpp +1 -1
  914. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/error.hpp +1 -1
  915. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/host_name_verification.hpp +1 -1
  916. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/impl/context.hpp +1 -1
  917. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/impl/context.ipp +140 -64
  918. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/impl/error.ipp +25 -3
  919. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/impl/host_name_verification.ipp +1 -1
  920. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/impl/rfc2818_verification.ipp +1 -1
  921. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/impl/src.hpp +1 -1
  922. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/rfc2818_verification.hpp +1 -1
  923. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/stream.hpp +154 -53
  924. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/stream_base.hpp +1 -1
  925. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/verify_context.hpp +1 -1
  926. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl/verify_mode.hpp +1 -1
  927. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ssl.hpp +1 -1
  928. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/static_thread_pool.hpp +1 -1
  929. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/steady_timer.hpp +1 -1
  930. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/strand.hpp +12 -1
  931. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/stream_file.hpp +1 -1
  932. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/streambuf.hpp +1 -1
  933. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/system_context.hpp +1 -1
  934. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/system_error.hpp +1 -1
  935. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/system_executor.hpp +1 -1
  936. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/system_timer.hpp +1 -1
  937. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/this_coro.hpp +4 -4
  938. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/thread.hpp +1 -1
  939. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/thread_pool.hpp +1 -1
  940. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/time_traits.hpp +1 -1
  941. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/bulk_execute_free.hpp +1 -1
  942. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/bulk_execute_member.hpp +1 -1
  943. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/connect_free.hpp +1 -1
  944. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/connect_member.hpp +1 -1
  945. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/equality_comparable.hpp +1 -1
  946. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/execute_free.hpp +1 -1
  947. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/execute_member.hpp +1 -1
  948. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/prefer_free.hpp +1 -1
  949. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/prefer_member.hpp +1 -1
  950. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/query_free.hpp +1 -1
  951. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/query_member.hpp +1 -1
  952. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/query_static_constexpr_member.hpp +1 -1
  953. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/require_concept_free.hpp +1 -1
  954. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/require_concept_member.hpp +1 -1
  955. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/require_free.hpp +1 -1
  956. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/require_member.hpp +1 -1
  957. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/schedule_free.hpp +1 -1
  958. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/schedule_member.hpp +1 -1
  959. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/set_done_free.hpp +1 -1
  960. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/set_done_member.hpp +1 -1
  961. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/set_error_free.hpp +1 -1
  962. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/set_error_member.hpp +1 -1
  963. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/set_value_free.hpp +1 -1
  964. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/set_value_member.hpp +1 -1
  965. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/start_free.hpp +1 -1
  966. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/start_member.hpp +1 -1
  967. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/static_query.hpp +1 -1
  968. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/static_require.hpp +1 -1
  969. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/static_require_concept.hpp +1 -1
  970. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/submit_free.hpp +1 -1
  971. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/traits/submit_member.hpp +1 -1
  972. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ts/buffer.hpp +1 -1
  973. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ts/executor.hpp +1 -1
  974. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ts/internet.hpp +1 -1
  975. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ts/io_context.hpp +1 -1
  976. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ts/net.hpp +1 -1
  977. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ts/netfwd.hpp +1 -1
  978. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ts/socket.hpp +1 -1
  979. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/ts/timer.hpp +1 -1
  980. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/unyield.hpp +1 -1
  981. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/use_awaitable.hpp +4 -3
  982. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/use_future.hpp +10 -7
  983. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/uses_executor.hpp +1 -1
  984. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/version.hpp +2 -2
  985. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/wait_traits.hpp +1 -1
  986. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/windows/basic_object_handle.hpp +70 -12
  987. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/windows/basic_overlapped_handle.hpp +100 -1
  988. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/windows/basic_random_access_handle.hpp +98 -29
  989. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/windows/basic_stream_handle.hpp +95 -28
  990. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/windows/object_handle.hpp +1 -1
  991. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/windows/overlapped_handle.hpp +1 -1
  992. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/windows/overlapped_ptr.hpp +1 -1
  993. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/windows/random_access_handle.hpp +1 -1
  994. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/windows/stream_handle.hpp +1 -1
  995. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/writable_pipe.hpp +1 -1
  996. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/write.hpp +242 -150
  997. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/write_at.hpp +112 -53
  998. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/yield.hpp +1 -1
  999. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio.hpp +8 -1
  1000. package/deps/couchbase-cxx-client/third_party/asio/asio/src/Makefile.am +18 -2
  1001. package/deps/couchbase-cxx-client/third_party/asio/asio/src/Makefile.msc +6 -0
  1002. package/deps/couchbase-cxx-client/third_party/asio/asio/src/asio.cpp +1 -1
  1003. package/deps/couchbase-cxx-client/third_party/asio/asio/src/asio_ssl.cpp +1 -1
  1004. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/Jamfile.v2 +20 -1
  1005. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/asio.qbk +4 -3
  1006. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/asioref.xsl +1 -1
  1007. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/doxy2qbk.pl +1 -1
  1008. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/examples.qbk +69 -3
  1009. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/history.qbk +398 -17
  1010. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/index.xml +1 -1
  1011. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/makepdf.pl +1 -1
  1012. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/net_ts.qbk +1 -1
  1013. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/allocation.qbk +13 -7
  1014. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/async.qbk +1 -1
  1015. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/basics.qbk +1 -1
  1016. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/bsd_sockets.qbk +1 -1
  1017. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/buffers.qbk +1 -1
  1018. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/cancellation.qbk +5 -3
  1019. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/channels.qbk +56 -0
  1020. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/compose.qbk +101 -0
  1021. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/concurrency_hint.qbk +9 -4
  1022. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/coro.qbk +72 -10
  1023. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/coroutine.qbk +2 -2
  1024. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/cpp2011.qbk +1 -36
  1025. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/cpp20_coroutines.qbk +70 -58
  1026. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/deferred.qbk +54 -0
  1027. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/files.qbk +49 -0
  1028. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/futures.qbk +41 -0
  1029. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/handler_tracking.qbk +1 -1
  1030. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/implementation.qbk +1 -1
  1031. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/iostreams.qbk +1 -1
  1032. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/line_based.qbk +1 -1
  1033. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/allocators.qbk +65 -0
  1034. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/associators.qbk +78 -0
  1035. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/async_agent_chain.png +0 -0
  1036. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/async_agent_model.png +0 -0
  1037. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/async_agents.qbk +35 -0
  1038. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/async_child_agent_chain.png +0 -0
  1039. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/async_op_init_complete.png +0 -0
  1040. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/async_op_model.png +0 -0
  1041. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/async_op_phases.png +0 -0
  1042. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/async_op_trivial_chain.png +0 -0
  1043. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/async_ops.qbk +81 -0
  1044. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/cancellation.qbk +33 -0
  1045. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/child_agents.qbk +56 -0
  1046. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/completion_token_model.png +0 -0
  1047. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/completion_token_transform.png +0 -0
  1048. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/completion_tokens.qbk +239 -0
  1049. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/executors.qbk +55 -0
  1050. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/higher_level_model.png +0 -0
  1051. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/higher_levels.qbk +40 -0
  1052. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model/library_elements.qbk +102 -0
  1053. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/model.qbk +40 -0
  1054. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/other_protocols.qbk +1 -1
  1055. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/parallel_group.qbk +65 -0
  1056. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/pipes.qbk +38 -0
  1057. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/posix.qbk +1 -1
  1058. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/promises.qbk +96 -0
  1059. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/protocols.qbk +1 -1
  1060. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/rationale.qbk +1 -1
  1061. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/reactor.qbk +1 -1
  1062. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/serial_ports.qbk +1 -1
  1063. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/signals.qbk +1 -1
  1064. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/spawn.qbk +7 -10
  1065. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/ssl.qbk +1 -1
  1066. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/strands.qbk +1 -1
  1067. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/streams.qbk +1 -1
  1068. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/threads.qbk +1 -1
  1069. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/timers.qbk +14 -13
  1070. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/token_adapters.qbk +210 -0
  1071. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview/windows.qbk +1 -1
  1072. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/overview.qbk +54 -13
  1073. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/platform_macros.pl +6 -3
  1074. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/platform_macros.qbk +100 -9
  1075. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/quickref.xml +29 -10
  1076. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/reference.dox +4 -0
  1077. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/reference.qbk +10930 -3915
  1078. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/reference.xsl +52 -5
  1079. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/AcceptHandler.qbk +1 -58
  1080. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/AcceptToken.qbk +99 -0
  1081. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/AcceptableProtocol.qbk +1 -1
  1082. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/AsyncRandomAccessReadDevice.qbk +1 -1
  1083. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/AsyncRandomAccessWriteDevice.qbk +1 -1
  1084. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/AsyncReadStream.qbk +1 -1
  1085. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/AsyncWriteStream.qbk +1 -1
  1086. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/BufferedHandshakeHandler.qbk +1 -41
  1087. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/BufferedHandshakeToken.qbk +111 -0
  1088. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/CancellationHandler.qbk +1 -1
  1089. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/CancellationSlot.qbk +1 -1
  1090. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/CompletionCondition.qbk +1 -1
  1091. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/ConnectCondition.qbk +1 -1
  1092. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/ConnectHandler.qbk +1 -58
  1093. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/ConnectToken.qbk +99 -0
  1094. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/ConstBufferSequence.qbk +1 -1
  1095. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/DynamicBuffer.qbk +1 -1
  1096. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/DynamicBuffer_v1.qbk +1 -1
  1097. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/DynamicBuffer_v2.qbk +1 -1
  1098. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/Endpoint.qbk +1 -1
  1099. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/EndpointSequence.qbk +1 -1
  1100. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/ExecutionContext.qbk +1 -1
  1101. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/Executor.qbk +1 -1
  1102. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/GettableSerialPortOption.qbk +1 -1
  1103. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/GettableSocketOption.qbk +1 -1
  1104. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/Handler.qbk +8 -53
  1105. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/HandshakeHandler.qbk +1 -58
  1106. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/HandshakeToken.qbk +99 -0
  1107. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/InternetProtocol.qbk +1 -1
  1108. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/IoControlCommand.qbk +1 -1
  1109. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/IoObjectService.qbk +1 -1
  1110. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/IteratorConnectHandler.qbk +2 -67
  1111. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/IteratorConnectToken.qbk +113 -0
  1112. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/LegacyCompletionHandler.qbk +1 -1
  1113. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/MoveAcceptHandler.qbk +1 -46
  1114. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/MoveAcceptToken.qbk +94 -0
  1115. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/MutableBufferSequence.qbk +1 -1
  1116. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/NullaryToken.qbk +79 -0
  1117. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/OperationState.qbk +1 -1
  1118. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/ProtoAllocator.qbk +1 -1
  1119. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/Protocol.qbk +1 -1
  1120. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/RangeConnectHandler.qbk +2 -68
  1121. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/RangeConnectToken.qbk +114 -0
  1122. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/ReadHandler.qbk +1 -65
  1123. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/ReadToken.qbk +110 -0
  1124. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/Receiver.qbk +1 -1
  1125. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/ResolveHandler.qbk +1 -65
  1126. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/ResolveToken.qbk +112 -0
  1127. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/Scheduler.qbk +1 -1
  1128. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/Sender.qbk +1 -1
  1129. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/Service.qbk +1 -1
  1130. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/SettableSerialPortOption.qbk +1 -1
  1131. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/SettableSocketOption.qbk +1 -1
  1132. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/ShutdownHandler.qbk +1 -58
  1133. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/ShutdownToken.qbk +99 -0
  1134. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/SignalHandler.qbk +1 -65
  1135. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/SignalToken.qbk +109 -0
  1136. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/SyncRandomAccessReadDevice.qbk +1 -1
  1137. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/SyncRandomAccessWriteDevice.qbk +1 -1
  1138. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/SyncReadStream.qbk +1 -1
  1139. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/SyncWriteStream.qbk +1 -1
  1140. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/TimeTraits.qbk +1 -1
  1141. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/WaitHandler.qbk +1 -58
  1142. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/WaitToken.qbk +99 -0
  1143. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/WaitTraits.qbk +1 -1
  1144. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/WriteHandler.qbk +1 -65
  1145. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/WriteToken.qbk +110 -0
  1146. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/asynchronous_operations.qbk +128 -61
  1147. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/asynchronous_socket_operations.qbk +1 -1
  1148. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/read_write_operations.qbk +1 -1
  1149. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/synchronous_socket_operations.qbk +1 -1
  1150. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/std_executors.qbk +1 -1
  1151. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/tutorial.qbk +53 -49
  1152. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/tutorial.xsl +12 -2
  1153. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/using.qbk +1 -6
  1154. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/Makefile.am +1 -1
  1155. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/allocation/server.cpp +7 -50
  1156. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/buffers/reference_counted.cpp +1 -1
  1157. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/chat/chat_client.cpp +1 -1
  1158. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/chat/chat_message.hpp +6 -3
  1159. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/chat/chat_server.cpp +1 -1
  1160. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/chat/posix_chat_client.cpp +1 -1
  1161. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/echo/async_tcp_echo_server.cpp +1 -1
  1162. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/echo/async_udp_echo_server.cpp +1 -1
  1163. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/echo/blocking_tcp_echo_client.cpp +1 -1
  1164. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/echo/blocking_tcp_echo_server.cpp +1 -1
  1165. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/echo/blocking_udp_echo_client.cpp +1 -1
  1166. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/echo/blocking_udp_echo_server.cpp +1 -1
  1167. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/fork/daemon.cpp +1 -1
  1168. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/fork/process_per_connection.cpp +1 -1
  1169. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/client/async_client.cpp +1 -1
  1170. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/client/sync_client.cpp +1 -1
  1171. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/doc_root/data_1K.html +1 -1
  1172. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/doc_root/data_2K.html +1 -1
  1173. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/doc_root/data_4K.html +1 -1
  1174. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/doc_root/data_8K.html +1 -1
  1175. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/connection.cpp +1 -1
  1176. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/connection.hpp +1 -1
  1177. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/connection_manager.cpp +1 -1
  1178. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/connection_manager.hpp +1 -1
  1179. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/header.hpp +1 -1
  1180. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/main.cpp +1 -1
  1181. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/mime_types.cpp +1 -1
  1182. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/mime_types.hpp +1 -1
  1183. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/reply.cpp +1 -1
  1184. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/reply.hpp +1 -1
  1185. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/request.hpp +1 -1
  1186. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/request_handler.cpp +1 -1
  1187. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/request_handler.hpp +1 -1
  1188. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/request_parser.cpp +1 -1
  1189. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/request_parser.hpp +1 -1
  1190. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/server.cpp +1 -1
  1191. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server/server.hpp +1 -1
  1192. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/connection.cpp +1 -1
  1193. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/connection.hpp +1 -1
  1194. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/header.hpp +1 -1
  1195. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/io_context_pool.cpp +2 -3
  1196. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/io_context_pool.hpp +5 -3
  1197. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/main.cpp +1 -1
  1198. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/mime_types.cpp +1 -1
  1199. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/mime_types.hpp +1 -1
  1200. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/reply.cpp +1 -1
  1201. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/reply.hpp +1 -1
  1202. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/request.hpp +1 -1
  1203. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/request_handler.cpp +1 -1
  1204. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/request_handler.hpp +1 -1
  1205. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/request_parser.cpp +1 -1
  1206. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/request_parser.hpp +1 -1
  1207. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/server.cpp +1 -1
  1208. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server2/server.hpp +1 -1
  1209. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server3/connection.cpp +1 -1
  1210. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server3/connection.hpp +1 -1
  1211. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server3/header.hpp +1 -1
  1212. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server3/main.cpp +1 -1
  1213. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server3/mime_types.cpp +1 -1
  1214. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server3/mime_types.hpp +1 -1
  1215. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server3/reply.cpp +1 -1
  1216. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server3/reply.hpp +1 -1
  1217. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server3/request.hpp +1 -1
  1218. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server3/request_handler.cpp +1 -1
  1219. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server3/request_handler.hpp +1 -1
  1220. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server3/request_parser.cpp +1 -1
  1221. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server3/request_parser.hpp +1 -1
  1222. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server3/server.cpp +1 -1
  1223. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server3/server.hpp +1 -1
  1224. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server4/file_handler.cpp +1 -1
  1225. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server4/file_handler.hpp +1 -1
  1226. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server4/header.hpp +1 -1
  1227. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server4/main.cpp +1 -1
  1228. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server4/mime_types.cpp +1 -1
  1229. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server4/mime_types.hpp +1 -1
  1230. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server4/reply.cpp +1 -1
  1231. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server4/reply.hpp +1 -1
  1232. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server4/request.hpp +1 -1
  1233. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server4/request_parser.cpp +1 -1
  1234. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server4/request_parser.hpp +1 -1
  1235. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server4/server.cpp +1 -1
  1236. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/http/server4/server.hpp +1 -1
  1237. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/icmp/icmp_header.hpp +1 -1
  1238. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/icmp/ipv4_header.hpp +1 -1
  1239. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/icmp/ping.cpp +1 -1
  1240. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/invocation/prioritised_handlers.cpp +1 -1
  1241. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/iostreams/daytime_client.cpp +1 -1
  1242. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/iostreams/daytime_server.cpp +1 -1
  1243. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/iostreams/http_client.cpp +1 -1
  1244. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/local/connect_pair.cpp +1 -1
  1245. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/local/iostream_client.cpp +1 -1
  1246. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/local/stream_client.cpp +1 -1
  1247. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/local/stream_server.cpp +1 -1
  1248. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/multicast/receiver.cpp +1 -1
  1249. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/multicast/sender.cpp +1 -1
  1250. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/nonblocking/third_party_lib.cpp +1 -1
  1251. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/porthopper/client.cpp +1 -1
  1252. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/porthopper/protocol.hpp +1 -1
  1253. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/porthopper/server.cpp +1 -1
  1254. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/serialization/client.cpp +1 -1
  1255. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/serialization/connection.hpp +1 -1
  1256. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/serialization/server.cpp +1 -1
  1257. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/serialization/stock.hpp +1 -1
  1258. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/services/basic_logger.hpp +1 -1
  1259. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/services/daytime_client.cpp +1 -1
  1260. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/services/logger.hpp +1 -1
  1261. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/services/logger_service.cpp +1 -1
  1262. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/services/logger_service.hpp +8 -8
  1263. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/socks4/socks4.hpp +1 -1
  1264. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/socks4/sync_client.cpp +1 -1
  1265. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/spawn/echo_server.cpp +9 -5
  1266. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/spawn/parallel_grep.cpp +7 -3
  1267. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/ssl/README +1 -1
  1268. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/ssl/ca.pem +48 -47
  1269. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/ssl/client.cpp +1 -1
  1270. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/ssl/dh4096.pem +25 -0
  1271. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/ssl/server.cpp +2 -2
  1272. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/ssl/server.pem +91 -63
  1273. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/timeouts/async_tcp_client.cpp +1 -1
  1274. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/timeouts/blocking_tcp_client.cpp +1 -1
  1275. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/timeouts/blocking_token_tcp_client.cpp +1 -1
  1276. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/timeouts/blocking_udp_client.cpp +1 -1
  1277. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/timeouts/server.cpp +1 -1
  1278. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/timers/time_t_timer.cpp +1 -1
  1279. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/tutorial/daytime1/client.cpp +1 -1
  1280. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/tutorial/daytime2/server.cpp +1 -1
  1281. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/tutorial/daytime3/server.cpp +1 -1
  1282. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/tutorial/daytime4/client.cpp +1 -1
  1283. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/tutorial/daytime5/server.cpp +1 -1
  1284. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/tutorial/daytime6/server.cpp +1 -1
  1285. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/tutorial/daytime7/server.cpp +1 -1
  1286. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/tutorial/daytime_dox.txt +1 -1
  1287. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/tutorial/index_dox.txt +1 -1
  1288. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/tutorial/timer1/timer.cpp +1 -1
  1289. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/tutorial/timer2/timer.cpp +1 -1
  1290. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/tutorial/timer3/timer.cpp +1 -1
  1291. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/tutorial/timer4/timer.cpp +1 -1
  1292. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/tutorial/timer5/timer.cpp +1 -1
  1293. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/tutorial/timer_dox.txt +37 -33
  1294. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/windows/transmit_file.cpp +1 -1
  1295. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/Makefile.am +23 -2
  1296. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/allocation/server.cpp +5 -43
  1297. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/buffers/reference_counted.cpp +1 -1
  1298. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/chat/chat_client.cpp +1 -1
  1299. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/chat/chat_message.hpp +3 -3
  1300. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/chat/chat_server.cpp +1 -1
  1301. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/deferred/deferred_1.cpp +35 -0
  1302. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/deferred/deferred_2.cpp +44 -0
  1303. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/echo/async_tcp_echo_server.cpp +1 -1
  1304. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/echo/async_udp_echo_server.cpp +1 -1
  1305. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/echo/blocking_tcp_echo_client.cpp +1 -1
  1306. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/echo/blocking_tcp_echo_server.cpp +1 -1
  1307. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/echo/blocking_udp_echo_client.cpp +1 -1
  1308. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/echo/blocking_udp_echo_server.cpp +1 -1
  1309. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/files/async_file_copy.cpp +1 -1
  1310. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/files/blocking_file_copy.cpp +1 -1
  1311. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/fork/daemon.cpp +1 -1
  1312. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/fork/process_per_connection.cpp +1 -1
  1313. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/futures/daytime_client.cpp +2 -3
  1314. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/handler_tracking/async_tcp_echo_server.cpp +1 -1
  1315. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/handler_tracking/custom_tracking.hpp +1 -1
  1316. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/connection.cpp +1 -1
  1317. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/connection.hpp +1 -1
  1318. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/connection_manager.cpp +1 -1
  1319. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/connection_manager.hpp +1 -1
  1320. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/header.hpp +1 -1
  1321. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/main.cpp +1 -1
  1322. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/mime_types.cpp +1 -1
  1323. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/mime_types.hpp +1 -1
  1324. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/reply.cpp +1 -1
  1325. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/reply.hpp +1 -1
  1326. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/request.hpp +1 -1
  1327. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/request_handler.cpp +1 -1
  1328. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/request_handler.hpp +1 -1
  1329. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/request_parser.cpp +1 -1
  1330. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/request_parser.hpp +1 -1
  1331. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/server.cpp +1 -1
  1332. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/http/server/server.hpp +1 -1
  1333. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/invocation/prioritised_handlers.cpp +1 -1
  1334. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/iostreams/http_client.cpp +1 -1
  1335. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/local/connect_pair.cpp +1 -1
  1336. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/local/fd_passing_stream_client.cpp +102 -0
  1337. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/local/fd_passing_stream_server.cpp +160 -0
  1338. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/local/iostream_client.cpp +1 -1
  1339. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/local/stream_client.cpp +1 -1
  1340. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/local/stream_server.cpp +1 -1
  1341. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/multicast/receiver.cpp +1 -1
  1342. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/multicast/sender.cpp +1 -1
  1343. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/nonblocking/third_party_lib.cpp +1 -1
  1344. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/operations/composed_1.cpp +55 -9
  1345. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/operations/composed_2.cpp +130 -32
  1346. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/operations/composed_3.cpp +55 -9
  1347. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/operations/composed_4.cpp +54 -9
  1348. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/operations/composed_5.cpp +55 -9
  1349. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/operations/composed_6.cpp +61 -14
  1350. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/operations/composed_7.cpp +55 -9
  1351. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/operations/composed_8.cpp +55 -9
  1352. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/parallel_group/wait_for_all.cpp +62 -0
  1353. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/parallel_group/wait_for_one.cpp +62 -0
  1354. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/parallel_group/wait_for_one_error.cpp +62 -0
  1355. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/parallel_group/wait_for_one_success.cpp +62 -0
  1356. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/socks4/socks4.hpp +1 -1
  1357. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/socks4/sync_client.cpp +1 -1
  1358. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/spawn/echo_server.cpp +5 -4
  1359. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/spawn/parallel_grep.cpp +4 -2
  1360. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/ssl/README +1 -1
  1361. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/ssl/ca.pem +48 -47
  1362. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/ssl/client.cpp +1 -1
  1363. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/ssl/dh4096.pem +25 -0
  1364. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/ssl/server.cpp +2 -2
  1365. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/ssl/server.pem +91 -63
  1366. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/timeouts/async_tcp_client.cpp +1 -1
  1367. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/timeouts/blocking_tcp_client.cpp +1 -1
  1368. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/timeouts/blocking_token_tcp_client.cpp +26 -53
  1369. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/timeouts/blocking_udp_client.cpp +1 -1
  1370. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/timeouts/server.cpp +1 -1
  1371. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/timers/time_t_timer.cpp +1 -1
  1372. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/Makefile.am +5 -0
  1373. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/deferred/deferred_1.cpp +2 -3
  1374. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/deferred/deferred_2.cpp +2 -3
  1375. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/deferred/deferred_3.cpp +2 -3
  1376. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/deferred/deferred_4.cpp +2 -3
  1377. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/deferred/deferred_5.cpp +2 -3
  1378. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/deferred/deferred_6.cpp +3 -5
  1379. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/deferred/deferred_7.cpp +3 -5
  1380. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/echo/async_tcp_echo_server.cpp +1 -1
  1381. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/echo/async_udp_echo_server.cpp +1 -1
  1382. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/echo/blocking_tcp_echo_client.cpp +1 -1
  1383. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/echo/blocking_tcp_echo_server.cpp +1 -1
  1384. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/echo/blocking_udp_echo_client.cpp +1 -1
  1385. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/echo/blocking_udp_echo_server.cpp +1 -1
  1386. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/iostreams/http_client.cpp +1 -1
  1387. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/operations/c_callback_wrapper.cpp +230 -0
  1388. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/operations/callback_wrapper.cpp +152 -0
  1389. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/operations/composed_1.cpp +49 -7
  1390. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/operations/composed_2.cpp +117 -29
  1391. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/operations/composed_3.cpp +48 -6
  1392. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/operations/composed_4.cpp +47 -6
  1393. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/operations/composed_5.cpp +48 -6
  1394. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/operations/composed_6.cpp +53 -11
  1395. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/operations/composed_7.cpp +49 -7
  1396. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/operations/composed_8.cpp +49 -7
  1397. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/parallel_group/parallel_sort.cpp +2 -3
  1398. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/parallel_group/wait_for_all.cpp +1 -1
  1399. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/parallel_group/wait_for_one.cpp +1 -1
  1400. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/parallel_group/wait_for_one_error.cpp +1 -1
  1401. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp14/parallel_group/wait_for_one_success.cpp +1 -1
  1402. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp17/coroutines_ts/chat_server.cpp +1 -1
  1403. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp17/coroutines_ts/echo_server.cpp +1 -1
  1404. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp17/coroutines_ts/echo_server_with_as_single_default.cpp +1 -1
  1405. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp17/coroutines_ts/echo_server_with_as_tuple_default.cpp +3 -3
  1406. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp17/coroutines_ts/echo_server_with_default.cpp +1 -1
  1407. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp17/coroutines_ts/range_based_for.cpp +1 -1
  1408. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp17/coroutines_ts/refactored_echo_server.cpp +1 -1
  1409. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/Makefile.am +66 -0
  1410. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/channels/throttling_proxy.cpp +134 -0
  1411. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/coroutines/chat_server.cpp +222 -0
  1412. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/coroutines/echo_server.cpp +76 -0
  1413. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/coroutines/echo_server_with_as_single_default.cpp +71 -0
  1414. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/coroutines/echo_server_with_as_tuple_default.cpp +71 -0
  1415. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/coroutines/echo_server_with_default.cpp +73 -0
  1416. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/coroutines/echo_server_with_deferred.cpp +72 -0
  1417. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/coroutines/echo_server_with_deferred_default.cpp +74 -0
  1418. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/coroutines/refactored_echo_server.cpp +80 -0
  1419. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/coroutines/timeout.cpp +66 -0
  1420. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/operations/c_callback_wrapper.cpp +232 -0
  1421. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/operations/callback_wrapper.cpp +154 -0
  1422. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/operations/composed_1.cpp +157 -0
  1423. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/operations/composed_2.cpp +225 -0
  1424. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/operations/composed_3.cpp +232 -0
  1425. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/operations/composed_4.cpp +247 -0
  1426. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/operations/composed_5.cpp +284 -0
  1427. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/operations/composed_6.cpp +345 -0
  1428. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/operations/composed_7.cpp +262 -0
  1429. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp20/operations/composed_8.cpp +255 -0
  1430. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/Makefile.am +18 -14
  1431. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/latency/allocator.hpp +1 -1
  1432. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/latency/high_res_clock.hpp +1 -1
  1433. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/latency/tcp_client.cpp +1 -1
  1434. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/latency/tcp_server.cpp +1 -1
  1435. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/latency/udp_client.cpp +1 -1
  1436. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/latency/udp_server.cpp +1 -1
  1437. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/performance/client.cpp +1 -1
  1438. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/performance/handler_allocator.hpp +1 -1
  1439. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/performance/server.cpp +1 -1
  1440. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_free_prefer.cpp +1 -1
  1441. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_free_require.cpp +1 -1
  1442. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_member_prefer.cpp +1 -1
  1443. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_member_require.cpp +1 -1
  1444. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_not_applicable_free_prefer.cpp +1 -1
  1445. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_not_applicable_free_require.cpp +1 -1
  1446. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_not_applicable_member_prefer.cpp +1 -1
  1447. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_not_applicable_member_require.cpp +1 -1
  1448. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_not_applicable_static.cpp +1 -1
  1449. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_not_applicable_unsupported.cpp +1 -1
  1450. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_not_preferable_free_prefer.cpp +1 -1
  1451. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_not_preferable_free_require.cpp +1 -1
  1452. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_not_preferable_member_prefer.cpp +1 -1
  1453. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_not_preferable_member_require.cpp +1 -1
  1454. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_not_preferable_static.cpp +1 -1
  1455. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_not_preferable_unsupported.cpp +1 -1
  1456. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_static.cpp +1 -1
  1457. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_prefer_unsupported.cpp +1 -1
  1458. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_query_free.cpp +1 -1
  1459. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_query_member.cpp +1 -1
  1460. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_query_not_applicable_free.cpp +1 -1
  1461. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_query_not_applicable_member.cpp +1 -1
  1462. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_query_not_applicable_static.cpp +1 -1
  1463. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_query_not_applicable_unsupported.cpp +1 -1
  1464. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_query_static.cpp +1 -1
  1465. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_query_unsupported.cpp +1 -1
  1466. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_concept_free.cpp +1 -1
  1467. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_concept_member.cpp +1 -1
  1468. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_concept_not_applicable_free.cpp +1 -1
  1469. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_concept_not_applicable_member.cpp +1 -1
  1470. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_concept_not_applicable_static.cpp +1 -1
  1471. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_concept_not_applicable_unsupported.cpp +1 -1
  1472. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_concept_static.cpp +1 -1
  1473. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_concept_unsupported.cpp +1 -1
  1474. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_free.cpp +1 -1
  1475. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_member.cpp +1 -1
  1476. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_not_applicable_free.cpp +1 -1
  1477. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_not_applicable_member.cpp +1 -1
  1478. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_not_applicable_static.cpp +1 -1
  1479. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_not_applicable_unsupported.cpp +1 -1
  1480. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_static.cpp +1 -1
  1481. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/can_require_unsupported.cpp +1 -1
  1482. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/prefer_free_prefer.cpp +1 -1
  1483. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/prefer_free_require.cpp +1 -1
  1484. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/prefer_member_prefer.cpp +1 -1
  1485. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/prefer_member_require.cpp +1 -1
  1486. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/prefer_static.cpp +1 -1
  1487. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/prefer_unsupported.cpp +1 -1
  1488. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/query_free.cpp +1 -1
  1489. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/query_member.cpp +1 -1
  1490. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/query_static.cpp +1 -1
  1491. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/require_concept_free.cpp +1 -1
  1492. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/require_concept_member.cpp +1 -1
  1493. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/require_concept_static.cpp +1 -1
  1494. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/require_free.cpp +1 -1
  1495. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/require_member.cpp +1 -1
  1496. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp03/require_static.cpp +1 -1
  1497. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_free_prefer.cpp +1 -1
  1498. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_free_require.cpp +1 -1
  1499. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_member_prefer.cpp +1 -1
  1500. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_member_require.cpp +1 -1
  1501. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_not_applicable_free_prefer.cpp +1 -1
  1502. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_not_applicable_free_require.cpp +1 -1
  1503. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_not_applicable_member_prefer.cpp +1 -1
  1504. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_not_applicable_member_require.cpp +1 -1
  1505. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_not_applicable_static.cpp +1 -1
  1506. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_not_applicable_unsupported.cpp +1 -1
  1507. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_not_preferable_free_prefer.cpp +1 -1
  1508. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_not_preferable_free_require.cpp +1 -1
  1509. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_not_preferable_member_prefer.cpp +1 -1
  1510. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_not_preferable_member_require.cpp +1 -1
  1511. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_not_preferable_static.cpp +1 -1
  1512. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_not_preferable_unsupported.cpp +1 -1
  1513. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_static.cpp +1 -1
  1514. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_prefer_unsupported.cpp +1 -1
  1515. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_query_free.cpp +1 -1
  1516. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_query_member.cpp +1 -1
  1517. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_query_not_applicable_free.cpp +1 -1
  1518. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_query_not_applicable_member.cpp +1 -1
  1519. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_query_not_applicable_static.cpp +1 -1
  1520. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_query_not_applicable_unsupported.cpp +1 -1
  1521. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_query_static.cpp +1 -1
  1522. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_query_unsupported.cpp +1 -1
  1523. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_concept_free.cpp +1 -1
  1524. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_concept_member.cpp +1 -1
  1525. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_concept_not_applicable_free.cpp +1 -1
  1526. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_concept_not_applicable_member.cpp +1 -1
  1527. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_concept_not_applicable_static.cpp +1 -1
  1528. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_concept_not_applicable_unsupported.cpp +1 -1
  1529. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_concept_static.cpp +1 -1
  1530. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_concept_unsupported.cpp +1 -1
  1531. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_free.cpp +1 -1
  1532. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_member.cpp +1 -1
  1533. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_not_applicable_free.cpp +1 -1
  1534. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_not_applicable_member.cpp +1 -1
  1535. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_not_applicable_static.cpp +1 -1
  1536. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_not_applicable_unsupported.cpp +1 -1
  1537. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_static.cpp +1 -1
  1538. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/can_require_unsupported.cpp +1 -1
  1539. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/prefer_free_prefer.cpp +1 -1
  1540. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/prefer_free_require.cpp +1 -1
  1541. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/prefer_member_prefer.cpp +1 -1
  1542. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/prefer_member_require.cpp +1 -1
  1543. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/prefer_static.cpp +1 -1
  1544. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/prefer_unsupported.cpp +1 -1
  1545. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/query_free.cpp +1 -1
  1546. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/query_member.cpp +1 -1
  1547. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/query_static.cpp +1 -1
  1548. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/require_concept_free.cpp +1 -1
  1549. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/require_concept_member.cpp +1 -1
  1550. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/require_concept_static.cpp +1 -1
  1551. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/require_free.cpp +1 -1
  1552. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/require_member.cpp +1 -1
  1553. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp11/require_static.cpp +1 -1
  1554. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_free_prefer.cpp +1 -1
  1555. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_free_require.cpp +1 -1
  1556. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_member_prefer.cpp +1 -1
  1557. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_member_require.cpp +1 -1
  1558. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_not_applicable_free_prefer.cpp +1 -1
  1559. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_not_applicable_free_require.cpp +1 -1
  1560. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_not_applicable_member_prefer.cpp +1 -1
  1561. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_not_applicable_member_require.cpp +1 -1
  1562. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_not_applicable_static.cpp +1 -1
  1563. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_not_applicable_unsupported.cpp +1 -1
  1564. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_not_preferable_free_prefer.cpp +1 -1
  1565. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_not_preferable_free_require.cpp +1 -1
  1566. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_not_preferable_member_prefer.cpp +1 -1
  1567. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_not_preferable_member_require.cpp +1 -1
  1568. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_not_preferable_static.cpp +1 -1
  1569. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_not_preferable_unsupported.cpp +1 -1
  1570. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_static.cpp +1 -1
  1571. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_prefer_unsupported.cpp +1 -1
  1572. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_query_free.cpp +1 -1
  1573. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_query_member.cpp +1 -1
  1574. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_query_not_applicable_free.cpp +1 -1
  1575. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_query_not_applicable_member.cpp +1 -1
  1576. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_query_not_applicable_static.cpp +1 -1
  1577. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_query_not_applicable_unsupported.cpp +1 -1
  1578. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_query_static.cpp +1 -1
  1579. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_query_unsupported.cpp +1 -1
  1580. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_concept_free.cpp +1 -1
  1581. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_concept_member.cpp +1 -1
  1582. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_concept_not_applicable_free.cpp +1 -1
  1583. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_concept_not_applicable_member.cpp +1 -1
  1584. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_concept_not_applicable_static.cpp +1 -1
  1585. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_concept_not_applicable_unsupported.cpp +1 -1
  1586. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_concept_static.cpp +1 -1
  1587. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_concept_unsupported.cpp +1 -1
  1588. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_free.cpp +1 -1
  1589. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_member.cpp +1 -1
  1590. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_not_applicable_free.cpp +1 -1
  1591. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_not_applicable_member.cpp +1 -1
  1592. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_not_applicable_static.cpp +1 -1
  1593. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_not_applicable_unsupported.cpp +1 -1
  1594. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_static.cpp +1 -1
  1595. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/can_require_unsupported.cpp +1 -1
  1596. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/prefer_free_prefer.cpp +1 -1
  1597. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/prefer_free_require.cpp +1 -1
  1598. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/prefer_member_prefer.cpp +1 -1
  1599. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/prefer_member_require.cpp +1 -1
  1600. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/prefer_static.cpp +1 -1
  1601. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/prefer_unsupported.cpp +1 -1
  1602. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/query_free.cpp +1 -1
  1603. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/query_member.cpp +1 -1
  1604. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/query_static.cpp +1 -1
  1605. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/require_concept_free.cpp +1 -1
  1606. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/require_concept_member.cpp +1 -1
  1607. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/require_concept_static.cpp +1 -1
  1608. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/require_free.cpp +1 -1
  1609. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/require_member.cpp +1 -1
  1610. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/properties/cpp14/require_static.cpp +1 -1
  1611. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/append.cpp +62 -0
  1612. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/archetypes/async_ops.hpp +1 -1
  1613. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/archetypes/async_result.hpp +1 -1
  1614. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/archetypes/gettable_socket_option.hpp +1 -1
  1615. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/archetypes/io_control_command.hpp +1 -1
  1616. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/archetypes/settable_socket_option.hpp +1 -1
  1617. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/as_tuple.cpp +60 -0
  1618. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/associated_allocator.cpp +1 -1
  1619. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/associated_cancellation_slot.cpp +1 -1
  1620. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/associated_executor.cpp +1 -1
  1621. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/associator.cpp +1 -1
  1622. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/async_result.cpp +1 -1
  1623. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/awaitable.cpp +1 -1
  1624. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_datagram_socket.cpp +1 -1
  1625. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_deadline_timer.cpp +1 -1
  1626. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_file.cpp +1 -1
  1627. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_random_access_file.cpp +1 -1
  1628. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_raw_socket.cpp +1 -1
  1629. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_readable_pipe.cpp +1 -1
  1630. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_seq_packet_socket.cpp +1 -1
  1631. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_serial_port.cpp +1 -1
  1632. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_signal_set.cpp +1 -1
  1633. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_socket.cpp +1 -1
  1634. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_socket_acceptor.cpp +1 -1
  1635. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_stream_file.cpp +1 -1
  1636. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_stream_socket.cpp +1 -1
  1637. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_streambuf.cpp +1 -1
  1638. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_waitable_timer.cpp +1 -1
  1639. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/basic_writable_pipe.cpp +1 -1
  1640. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/bind_allocator.cpp +253 -0
  1641. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/bind_cancellation_slot.cpp +66 -10
  1642. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/bind_executor.cpp +60 -10
  1643. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/buffer.cpp +49 -1
  1644. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/buffer_registration.cpp +1 -1
  1645. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/buffered_read_stream.cpp +2 -2
  1646. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/buffered_stream.cpp +2 -2
  1647. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/buffered_write_stream.cpp +2 -2
  1648. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/buffers_iterator.cpp +2 -2
  1649. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/cancellation_signal.cpp +1 -1
  1650. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/cancellation_state.cpp +1 -1
  1651. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/cancellation_type.cpp +1 -1
  1652. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/co_spawn.cpp +1 -1
  1653. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/completion_condition.cpp +1 -1
  1654. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/compose.cpp +1 -1
  1655. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/connect.cpp +1 -1
  1656. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/connect_pipe.cpp +2 -2
  1657. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/coroutine.cpp +1 -1
  1658. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/deadline_timer.cpp +1 -1
  1659. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/defer.cpp +1 -1
  1660. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/{experimental/deferred.cpp → deferred.cpp} +5 -5
  1661. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/detached.cpp +1 -1
  1662. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/dispatch.cpp +1 -1
  1663. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/error.cpp +1 -1
  1664. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/any_executor.cpp +1 -1
  1665. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/blocking.cpp +1 -1
  1666. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/blocking_adaptation.cpp +1 -1
  1667. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/bulk_execute.cpp +1 -1
  1668. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/bulk_guarantee.cpp +1 -1
  1669. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/connect.cpp +1 -1
  1670. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/context_as.cpp +1 -1
  1671. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/execute.cpp +1 -1
  1672. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/executor.cpp +1 -1
  1673. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/invocable_archetype.cpp +1 -1
  1674. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/mapping.cpp +1 -1
  1675. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/operation_state.cpp +1 -1
  1676. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/outstanding_work.cpp +1 -1
  1677. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/prefer_only.cpp +1 -1
  1678. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/receiver.cpp +1 -1
  1679. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/relationship.cpp +1 -1
  1680. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/schedule.cpp +1 -1
  1681. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/scheduler.cpp +1 -1
  1682. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/sender.cpp +1 -1
  1683. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/set_done.cpp +1 -1
  1684. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/set_error.cpp +1 -1
  1685. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/set_value.cpp +1 -1
  1686. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/start.cpp +1 -1
  1687. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution/submit.cpp +1 -1
  1688. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/execution_context.cpp +1 -1
  1689. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/executor.cpp +1 -1
  1690. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/executor_work_guard.cpp +1 -1
  1691. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/experimental/awaitable_operators.cpp +1 -1
  1692. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/experimental/basic_channel.cpp +1 -1
  1693. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/experimental/basic_concurrent_channel.cpp +1 -1
  1694. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/experimental/channel.cpp +1 -1
  1695. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/experimental/channel_traits.cpp +1 -1
  1696. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/experimental/concurrent_channel.cpp +1 -1
  1697. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/experimental/coro/cancel.cpp +2 -2
  1698. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/experimental/coro/co_spawn.cpp +2 -2
  1699. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/experimental/coro/exception.cpp +2 -2
  1700. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/experimental/coro/executor.cpp +3 -3
  1701. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/experimental/coro/partial.cpp +2 -2
  1702. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/experimental/coro/simple_test.cpp +2 -2
  1703. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/experimental/coro/stack_test.cpp +2 -2
  1704. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/experimental/coro/use_coro.cpp +2 -2
  1705. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/experimental/promise.cpp +22 -248
  1706. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/file_base.cpp +1 -1
  1707. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/generic/basic_endpoint.cpp +1 -1
  1708. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/generic/datagram_protocol.cpp +2 -2
  1709. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/generic/raw_protocol.cpp +2 -2
  1710. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/generic/seq_packet_protocol.cpp +2 -2
  1711. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/generic/stream_protocol.cpp +2 -2
  1712. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/high_resolution_timer.cpp +1 -1
  1713. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/io_context.cpp +1 -1
  1714. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/io_context_strand.cpp +1 -1
  1715. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/address.cpp +2 -2
  1716. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/basic_endpoint.cpp +1 -1
  1717. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/basic_resolver.cpp +1 -1
  1718. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/basic_resolver_entry.cpp +1 -1
  1719. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/basic_resolver_iterator.cpp +1 -1
  1720. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/basic_resolver_query.cpp +1 -1
  1721. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/host_name.cpp +2 -2
  1722. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/icmp.cpp +3 -3
  1723. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/multicast.cpp +2 -2
  1724. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/network_v4.cpp +2 -2
  1725. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/network_v6.cpp +2 -2
  1726. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/resolver_query_base.cpp +1 -1
  1727. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/tcp.cpp +7 -7
  1728. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/udp.cpp +3 -3
  1729. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/unicast.cpp +2 -2
  1730. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ip/v6_only.cpp +2 -2
  1731. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/is_read_buffered.cpp +1 -1
  1732. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/is_write_buffered.cpp +1 -1
  1733. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/local/basic_endpoint.cpp +1 -1
  1734. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/local/connect_pair.cpp +2 -2
  1735. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/local/datagram_protocol.cpp +2 -2
  1736. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/local/stream_protocol.cpp +2 -2
  1737. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/packaged_task.cpp +1 -1
  1738. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/placeholders.cpp +1 -1
  1739. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/posix/basic_descriptor.cpp +1 -1
  1740. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/posix/basic_stream_descriptor.cpp +1 -1
  1741. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/posix/descriptor.cpp +1 -1
  1742. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/posix/descriptor_base.cpp +1 -1
  1743. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/posix/stream_descriptor.cpp +8 -4
  1744. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/post.cpp +1 -1
  1745. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/prepend.cpp +62 -0
  1746. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/random_access_file.cpp +10 -1
  1747. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/read.cpp +1 -1
  1748. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/read_at.cpp +1 -1
  1749. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/read_until.cpp +1 -1
  1750. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/readable_pipe.cpp +12 -3
  1751. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/recycling_allocator.cpp +82 -0
  1752. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/redirect_error.cpp +1 -1
  1753. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/registered_buffer.cpp +1 -1
  1754. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/serial_port.cpp +8 -4
  1755. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/serial_port_base.cpp +2 -2
  1756. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/signal_set.cpp +2 -2
  1757. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/socket_base.cpp +2 -2
  1758. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ssl/context.cpp +1 -1
  1759. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ssl/context_base.cpp +1 -1
  1760. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ssl/error.cpp +1 -1
  1761. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ssl/host_name_verification.cpp +1 -1
  1762. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ssl/rfc2818_verification.cpp +1 -1
  1763. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ssl/stream.cpp +2 -2
  1764. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ssl/stream_base.cpp +1 -1
  1765. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/static_thread_pool.cpp +1 -1
  1766. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/steady_timer.cpp +1 -1
  1767. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/strand.cpp +1 -1
  1768. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/stream_file.cpp +10 -1
  1769. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/streambuf.cpp +1 -1
  1770. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/system_context.cpp +1 -1
  1771. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/system_executor.cpp +1 -1
  1772. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/system_timer.cpp +1 -1
  1773. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/this_coro.cpp +1 -1
  1774. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/thread.cpp +1 -1
  1775. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/thread_pool.cpp +1 -1
  1776. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/time_traits.cpp +1 -1
  1777. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ts/buffer.cpp +1 -1
  1778. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ts/executor.cpp +1 -1
  1779. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ts/internet.cpp +1 -1
  1780. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ts/io_context.cpp +1 -1
  1781. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ts/net.cpp +1 -1
  1782. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ts/netfwd.cpp +1 -1
  1783. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ts/socket.cpp +1 -1
  1784. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/ts/timer.cpp +1 -1
  1785. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/unit_test.hpp +1 -1
  1786. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/use_awaitable.cpp +1 -1
  1787. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/use_future.cpp +1 -1
  1788. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/uses_executor.cpp +1 -1
  1789. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/wait_traits.cpp +1 -1
  1790. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/windows/basic_object_handle.cpp +1 -1
  1791. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/windows/basic_overlapped_handle.cpp +1 -1
  1792. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/windows/basic_random_access_handle.cpp +1 -1
  1793. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/windows/basic_stream_handle.cpp +1 -1
  1794. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/windows/object_handle.cpp +8 -4
  1795. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/windows/overlapped_handle.cpp +1 -1
  1796. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/windows/overlapped_ptr.cpp +2 -2
  1797. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/windows/random_access_handle.cpp +16 -5
  1798. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/windows/stream_handle.cpp +16 -5
  1799. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/writable_pipe.cpp +12 -3
  1800. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/write.cpp +1 -1
  1801. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tests/unit/write_at.cpp +1 -1
  1802. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tools/handlerlive.pl +1 -1
  1803. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tools/handlertree.pl +1 -1
  1804. package/deps/couchbase-cxx-client/third_party/asio/asio/src/tools/handlerviz.pl +1 -1
  1805. package/deps/couchbase-cxx-client/third_party/expected/COPYING +121 -0
  1806. package/deps/couchbase-cxx-client/third_party/expected/include/tl/expected.hpp +2571 -0
  1807. package/dist/binding.d.ts +100 -8
  1808. package/dist/binding.js +4 -1
  1809. package/dist/bindingutilities.js +2 -2
  1810. package/dist/cluster.d.ts +7 -12
  1811. package/dist/cluster.js +3 -30
  1812. package/dist/collection.js +10 -5
  1813. package/dist/configProfile.js +7 -7
  1814. package/dist/crudoptypes.d.ts +4 -0
  1815. package/dist/crudoptypes.js +1 -0
  1816. package/dist/queryexecutor.js +1 -1
  1817. package/dist/searchexecutor.js +5 -1
  1818. package/dist/transactions.js +6 -6
  1819. package/dist/usermanager.d.ts +17 -0
  1820. package/dist/usermanager.js +35 -0
  1821. package/package.json +1 -1
  1822. package/src/constants.cpp +49 -13
  1823. package/src/jstocbpp_autogen.hpp +417 -0
  1824. package/src/jstocbpp_basic.hpp +1 -2
  1825. package/src/jstocbpp_transactions.hpp +31 -36
  1826. package/src/transaction.cpp +17 -18
  1827. package/src/transactions.cpp +1 -1
  1828. package/tools/gen-bindings-js.js +65 -6
  1829. package/tools/gen-bindings-json.py +39 -5
  1830. package/deps/couchbase-cxx-client/core/io/CMakeLists.txt +0 -12
  1831. package/deps/couchbase-cxx-client/core/io/retry_strategy.hxx +0 -152
  1832. package/deps/couchbase-cxx-client/core/transactions/get_and_open_buckets.cxx +0 -59
  1833. package/deps/couchbase-cxx-client/core/transactions/transaction_config.cxx +0 -76
  1834. package/deps/couchbase-cxx-client/core/transactions/transaction_query_options.cxx +0 -39
  1835. package/deps/couchbase-cxx-client/couchbase/transactions/transaction_config.hxx +0 -265
  1836. package/deps/couchbase-cxx-client/test/utils/transactions_env.h +0 -327
  1837. package/deps/couchbase-cxx-client/third_party/asio/asio/include/asio/impl/compose.hpp +0 -707
  1838. package/deps/couchbase-cxx-client/third_party/asio/asio/src/doc/requirements/CompletionHandler.qbk +0 -63
  1839. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp03/ssl/dh2048.pem +0 -8
  1840. package/deps/couchbase-cxx-client/third_party/asio/asio/src/examples/cpp11/ssl/dh2048.pem +0 -8
@@ -0,0 +1,2571 @@
1
+ ///
2
+ // expected - An implementation of std::expected with extensions
3
+ // Written in 2017 by Simon Brand (simonrbrand@gmail.com, @TartanLlama)
4
+ //
5
+ // Documentation available at http://tl.tartanllama.xyz/
6
+ //
7
+ // To the extent possible under law, the author(s) have dedicated all
8
+ // copyright and related and neighboring rights to this software to the
9
+ // public domain worldwide. This software is distributed without any warranty.
10
+ //
11
+ // You should have received a copy of the CC0 Public Domain Dedication
12
+ // along with this software. If not, see
13
+ // <http://creativecommons.org/publicdomain/zero/1.0/>.
14
+ ///
15
+
16
+ #ifndef TL_EXPECTED_HPP
17
+ #define TL_EXPECTED_HPP
18
+
19
+ #define TL_EXPECTED_VERSION_MAJOR 1
20
+ #define TL_EXPECTED_VERSION_MINOR 0
21
+ #define TL_EXPECTED_VERSION_PATCH 1
22
+
23
+ #include <exception>
24
+ #include <functional>
25
+ #include <type_traits>
26
+ #include <utility>
27
+
28
+ #if defined(__EXCEPTIONS) || defined(_CPPUNWIND)
29
+ #define TL_EXPECTED_EXCEPTIONS_ENABLED
30
+ #endif
31
+
32
+ #if (defined(_MSC_VER) && _MSC_VER == 1900)
33
+ #define TL_EXPECTED_MSVC2015
34
+ #define TL_EXPECTED_MSVC2015_CONSTEXPR
35
+ #else
36
+ #define TL_EXPECTED_MSVC2015_CONSTEXPR constexpr
37
+ #endif
38
+
39
+ #if (defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ <= 9 && !defined(__clang__))
40
+ #define TL_EXPECTED_GCC49
41
+ #endif
42
+
43
+ #if (defined(__GNUC__) && __GNUC__ == 5 && __GNUC_MINOR__ <= 4 && !defined(__clang__))
44
+ #define TL_EXPECTED_GCC54
45
+ #endif
46
+
47
+ #if (defined(__GNUC__) && __GNUC__ == 5 && __GNUC_MINOR__ <= 5 && !defined(__clang__))
48
+ #define TL_EXPECTED_GCC55
49
+ #endif
50
+
51
+ #if (defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ <= 9 && !defined(__clang__))
52
+ // GCC < 5 doesn't support overloading on const&& for member functions
53
+
54
+ #define TL_EXPECTED_NO_CONSTRR
55
+ // GCC < 5 doesn't support some standard C++11 type traits
56
+ #define TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) std::has_trivial_copy_constructor<T>
57
+ #define TL_EXPECTED_IS_TRIVIALLY_COPY_ASSIGNABLE(T) std::has_trivial_copy_assign<T>
58
+
59
+ // This one will be different for GCC 5.7 if it's ever supported
60
+ #define TL_EXPECTED_IS_TRIVIALLY_DESTRUCTIBLE(T) std::is_trivially_destructible<T>
61
+
62
+ // GCC 5 < v < 8 has a bug in is_trivially_copy_constructible which breaks std::vector
63
+ // for non-copyable types
64
+ #elif (defined(__GNUC__) && __GNUC__ < 8 && !defined(__clang__))
65
+ #ifndef TL_GCC_LESS_8_TRIVIALLY_COPY_CONSTRUCTIBLE_MUTEX
66
+ #define TL_GCC_LESS_8_TRIVIALLY_COPY_CONSTRUCTIBLE_MUTEX
67
+ namespace tl
68
+ {
69
+ namespace detail
70
+ {
71
+ template<class T>
72
+ struct is_trivially_copy_constructible : std::is_trivially_copy_constructible<T> {
73
+ };
74
+ #ifdef _GLIBCXX_VECTOR
75
+ template<class T, class A>
76
+ struct is_trivially_copy_constructible<std::vector<T, A>> : std::false_type {
77
+ };
78
+ #endif
79
+ } // namespace detail
80
+ } // namespace tl
81
+ #endif
82
+
83
+ #define TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) tl::detail::is_trivially_copy_constructible<T>
84
+ #define TL_EXPECTED_IS_TRIVIALLY_COPY_ASSIGNABLE(T) std::is_trivially_copy_assignable<T>
85
+ #define TL_EXPECTED_IS_TRIVIALLY_DESTRUCTIBLE(T) std::is_trivially_destructible<T>
86
+ #else
87
+ #define TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) std::is_trivially_copy_constructible<T>
88
+ #define TL_EXPECTED_IS_TRIVIALLY_COPY_ASSIGNABLE(T) std::is_trivially_copy_assignable<T>
89
+ #define TL_EXPECTED_IS_TRIVIALLY_DESTRUCTIBLE(T) std::is_trivially_destructible<T>
90
+ #endif
91
+
92
+ #if __cplusplus > 201103L
93
+ #define TL_EXPECTED_CXX14
94
+ #endif
95
+
96
+ #ifdef TL_EXPECTED_GCC49
97
+ #define TL_EXPECTED_GCC49_CONSTEXPR
98
+ #else
99
+ #define TL_EXPECTED_GCC49_CONSTEXPR constexpr
100
+ #endif
101
+
102
+ #if (__cplusplus == 201103L || defined(TL_EXPECTED_MSVC2015) || defined(TL_EXPECTED_GCC49))
103
+ #define TL_EXPECTED_11_CONSTEXPR
104
+ #else
105
+ #define TL_EXPECTED_11_CONSTEXPR constexpr
106
+ #endif
107
+
108
+ namespace tl
109
+ {
110
+ template<class T, class E>
111
+ class expected;
112
+
113
+ #ifndef TL_MONOSTATE_INPLACE_MUTEX
114
+ #define TL_MONOSTATE_INPLACE_MUTEX
115
+ class monostate
116
+ {
117
+ };
118
+
119
+ struct in_place_t {
120
+ explicit in_place_t() = default;
121
+ };
122
+ static constexpr in_place_t in_place{};
123
+ #endif
124
+
125
+ template<class E>
126
+ class unexpected
127
+ {
128
+ public:
129
+ static_assert(!std::is_same<E, void>::value, "E must not be void");
130
+
131
+ unexpected() = delete;
132
+ constexpr explicit unexpected(const E& e)
133
+ : m_val(e)
134
+ {
135
+ }
136
+
137
+ constexpr explicit unexpected(E&& e)
138
+ : m_val(std::move(e))
139
+ {
140
+ }
141
+
142
+ constexpr const E& value() const&
143
+ {
144
+ return m_val;
145
+ }
146
+ TL_EXPECTED_11_CONSTEXPR E& value() &
147
+ {
148
+ return m_val;
149
+ }
150
+ TL_EXPECTED_11_CONSTEXPR E&& value() &&
151
+ {
152
+ return std::move(m_val);
153
+ }
154
+ constexpr const E&& value() const&&
155
+ {
156
+ return std::move(m_val);
157
+ }
158
+
159
+ private:
160
+ E m_val;
161
+ };
162
+
163
+ template<class E>
164
+ constexpr bool
165
+ operator==(const unexpected<E>& lhs, const unexpected<E>& rhs)
166
+ {
167
+ return lhs.value() == rhs.value();
168
+ }
169
+ template<class E>
170
+ constexpr bool
171
+ operator!=(const unexpected<E>& lhs, const unexpected<E>& rhs)
172
+ {
173
+ return lhs.value() != rhs.value();
174
+ }
175
+ template<class E>
176
+ constexpr bool
177
+ operator<(const unexpected<E>& lhs, const unexpected<E>& rhs)
178
+ {
179
+ return lhs.value() < rhs.value();
180
+ }
181
+ template<class E>
182
+ constexpr bool
183
+ operator<=(const unexpected<E>& lhs, const unexpected<E>& rhs)
184
+ {
185
+ return lhs.value() <= rhs.value();
186
+ }
187
+ template<class E>
188
+ constexpr bool
189
+ operator>(const unexpected<E>& lhs, const unexpected<E>& rhs)
190
+ {
191
+ return lhs.value() > rhs.value();
192
+ }
193
+ template<class E>
194
+ constexpr bool
195
+ operator>=(const unexpected<E>& lhs, const unexpected<E>& rhs)
196
+ {
197
+ return lhs.value() >= rhs.value();
198
+ }
199
+
200
+ template<class E>
201
+ unexpected<typename std::decay<E>::type>
202
+ make_unexpected(E&& e)
203
+ {
204
+ return unexpected<typename std::decay<E>::type>(std::forward<E>(e));
205
+ }
206
+
207
+ struct unexpect_t {
208
+ unexpect_t() = default;
209
+ };
210
+ static constexpr unexpect_t unexpect{};
211
+
212
+ namespace detail
213
+ {
214
+ template<typename E>
215
+ [[noreturn]] TL_EXPECTED_11_CONSTEXPR void
216
+ throw_exception(E&& e)
217
+ {
218
+ #ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
219
+ throw std::forward<E>(e);
220
+ #else
221
+ #ifdef _MSC_VER
222
+ __assume(0);
223
+ #else
224
+ __builtin_unreachable();
225
+ #endif
226
+ #endif
227
+ }
228
+
229
+ #ifndef TL_TRAITS_MUTEX
230
+ #define TL_TRAITS_MUTEX
231
+ // C++14-style aliases for brevity
232
+ template<class T>
233
+ using remove_const_t = typename std::remove_const<T>::type;
234
+ template<class T>
235
+ using remove_reference_t = typename std::remove_reference<T>::type;
236
+ template<class T>
237
+ using decay_t = typename std::decay<T>::type;
238
+ template<bool E, class T = void>
239
+ using enable_if_t = typename std::enable_if<E, T>::type;
240
+ template<bool B, class T, class F>
241
+ using conditional_t = typename std::conditional<B, T, F>::type;
242
+
243
+ // std::conjunction from C++17
244
+ template<class...>
245
+ struct conjunction : std::true_type {
246
+ };
247
+ template<class B>
248
+ struct conjunction<B> : B {
249
+ };
250
+ template<class B, class... Bs>
251
+ struct conjunction<B, Bs...> : std::conditional<bool(B::value), conjunction<Bs...>, B>::type {
252
+ };
253
+
254
+ #if defined(_LIBCPP_VERSION) && __cplusplus == 201103L
255
+ #define TL_TRAITS_LIBCXX_MEM_FN_WORKAROUND
256
+ #endif
257
+
258
+ // In C++11 mode, there's an issue in libc++'s std::mem_fn
259
+ // which results in a hard-error when using it in a noexcept expression
260
+ // in some cases. This is a check to workaround the common failing case.
261
+ #ifdef TL_TRAITS_LIBCXX_MEM_FN_WORKAROUND
262
+ template<class T>
263
+ struct is_pointer_to_non_const_member_func : std::false_type {
264
+ };
265
+ template<class T, class Ret, class... Args>
266
+ struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...)> : std::true_type {
267
+ };
268
+ template<class T, class Ret, class... Args>
269
+ struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...)&> : std::true_type {
270
+ };
271
+ template<class T, class Ret, class... Args>
272
+ struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...) &&> : std::true_type {
273
+ };
274
+ template<class T, class Ret, class... Args>
275
+ struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...) volatile> : std::true_type {
276
+ };
277
+ template<class T, class Ret, class... Args>
278
+ struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...) volatile&> : std::true_type {
279
+ };
280
+ template<class T, class Ret, class... Args>
281
+ struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...) volatile&&> : std::true_type {
282
+ };
283
+
284
+ template<class T>
285
+ struct is_const_or_const_ref : std::false_type {
286
+ };
287
+ template<class T>
288
+ struct is_const_or_const_ref<T const&> : std::true_type {
289
+ };
290
+ template<class T>
291
+ struct is_const_or_const_ref<T const> : std::true_type {
292
+ };
293
+ #endif
294
+
295
+ // std::invoke from C++17
296
+ // https://stackoverflow.com/questions/38288042/c11-14-invoke-workaround
297
+ template<typename Fn,
298
+ typename... Args,
299
+ #ifdef TL_TRAITS_LIBCXX_MEM_FN_WORKAROUND
300
+ typename = enable_if_t<!(is_pointer_to_non_const_member_func<Fn>::value && is_const_or_const_ref<Args...>::value)>,
301
+ #endif
302
+ typename = enable_if_t<std::is_member_pointer<decay_t<Fn>>::value>,
303
+ int = 0>
304
+ constexpr auto
305
+ invoke(Fn&& f, Args&&... args) noexcept(noexcept(std::mem_fn(f)(std::forward<Args>(args)...)))
306
+ -> decltype(std::mem_fn(f)(std::forward<Args>(args)...))
307
+ {
308
+ return std::mem_fn(f)(std::forward<Args>(args)...);
309
+ }
310
+
311
+ template<typename Fn, typename... Args, typename = enable_if_t<!std::is_member_pointer<decay_t<Fn>>::value>>
312
+ constexpr auto
313
+ invoke(Fn&& f, Args&&... args) noexcept(noexcept(std::forward<Fn>(f)(std::forward<Args>(args)...)))
314
+ -> decltype(std::forward<Fn>(f)(std::forward<Args>(args)...))
315
+ {
316
+ return std::forward<Fn>(f)(std::forward<Args>(args)...);
317
+ }
318
+
319
+ // std::invoke_result from C++17
320
+ template<class F, class, class... Us>
321
+ struct invoke_result_impl;
322
+
323
+ template<class F, class... Us>
324
+ struct invoke_result_impl<F, decltype(detail::invoke(std::declval<F>(), std::declval<Us>()...), void()), Us...> {
325
+ using type = decltype(detail::invoke(std::declval<F>(), std::declval<Us>()...));
326
+ };
327
+
328
+ template<class F, class... Us>
329
+ using invoke_result = invoke_result_impl<F, void, Us...>;
330
+
331
+ template<class F, class... Us>
332
+ using invoke_result_t = typename invoke_result<F, Us...>::type;
333
+
334
+ #if defined(_MSC_VER) && _MSC_VER <= 1900
335
+ // TODO make a version which works with MSVC 2015
336
+ template<class T, class U = T>
337
+ struct is_swappable : std::true_type {
338
+ };
339
+
340
+ template<class T, class U = T>
341
+ struct is_nothrow_swappable : std::true_type {
342
+ };
343
+ #else
344
+ // https://stackoverflow.com/questions/26744589/what-is-a-proper-way-to-implement-is-swappable-to-test-for-the-swappable-concept
345
+ namespace swap_adl_tests
346
+ {
347
+ // if swap ADL finds this then it would call std::swap otherwise (same
348
+ // signature)
349
+ struct tag {
350
+ };
351
+
352
+ template<class T>
353
+ tag
354
+ swap(T&, T&);
355
+ template<class T, std::size_t N>
356
+ tag swap(T (&a)[N], T (&b)[N]);
357
+
358
+ // helper functions to test if an unqualified swap is possible, and if it
359
+ // becomes std::swap
360
+ template<class, class>
361
+ std::false_type
362
+ can_swap(...) noexcept(false);
363
+ template<class T, class U, class = decltype(swap(std::declval<T&>(), std::declval<U&>()))>
364
+ std::true_type
365
+ can_swap(int) noexcept(noexcept(swap(std::declval<T&>(), std::declval<U&>())));
366
+
367
+ template<class, class>
368
+ std::false_type
369
+ uses_std(...);
370
+ template<class T, class U>
371
+ std::is_same<decltype(swap(std::declval<T&>(), std::declval<U&>())), tag>
372
+ uses_std(int);
373
+
374
+ template<class T>
375
+ struct is_std_swap_noexcept
376
+ : std::integral_constant<bool, std::is_nothrow_move_constructible<T>::value && std::is_nothrow_move_assignable<T>::value> {
377
+ };
378
+
379
+ template<class T, std::size_t N>
380
+ struct is_std_swap_noexcept<T[N]> : is_std_swap_noexcept<T> {
381
+ };
382
+
383
+ template<class T, class U>
384
+ struct is_adl_swap_noexcept : std::integral_constant<bool, noexcept(can_swap<T, U>(0))> {
385
+ };
386
+ } // namespace swap_adl_tests
387
+
388
+ template<class T, class U = T>
389
+ struct is_swappable
390
+ : std::integral_constant<bool,
391
+ decltype(detail::swap_adl_tests::can_swap<T, U>(0))::value &&
392
+ (!decltype(detail::swap_adl_tests::uses_std<T, U>(0))::value ||
393
+ (std::is_move_assignable<T>::value && std::is_move_constructible<T>::value))> {
394
+ };
395
+
396
+ template<class T, std::size_t N>
397
+ struct is_swappable<T[N], T[N]>
398
+ : std::integral_constant<bool,
399
+ decltype(detail::swap_adl_tests::can_swap<T[N], T[N]>(0))::value &&
400
+ (!decltype(detail::swap_adl_tests::uses_std<T[N], T[N]>(0))::value || is_swappable<T, T>::value)> {
401
+ };
402
+
403
+ template<class T, class U = T>
404
+ struct is_nothrow_swappable
405
+ : std::integral_constant<
406
+ bool,
407
+ is_swappable<T, U>::value &&
408
+ ((decltype(detail::swap_adl_tests::uses_std<T, U>(0))::value&& detail::swap_adl_tests::is_std_swap_noexcept<T>::value) ||
409
+ (!decltype(detail::swap_adl_tests::uses_std<T, U>(0))::value&& detail::swap_adl_tests::is_adl_swap_noexcept<T, U>::value))> {
410
+ };
411
+ #endif
412
+ #endif
413
+
414
+ // Trait for checking if a type is a tl::expected
415
+ template<class T>
416
+ struct is_expected_impl : std::false_type {
417
+ };
418
+ template<class T, class E>
419
+ struct is_expected_impl<expected<T, E>> : std::true_type {
420
+ };
421
+ template<class T>
422
+ using is_expected = is_expected_impl<decay_t<T>>;
423
+
424
+ template<class T, class E, class U>
425
+ using expected_enable_forward_value =
426
+ detail::enable_if_t<std::is_constructible<T, U&&>::value && !std::is_same<detail::decay_t<U>, in_place_t>::value &&
427
+ !std::is_same<expected<T, E>, detail::decay_t<U>>::value && !std::is_same<unexpected<E>, detail::decay_t<U>>::value>;
428
+
429
+ template<class T, class E, class U, class G, class UR, class GR>
430
+ using expected_enable_from_other =
431
+ detail::enable_if_t<std::is_constructible<T, UR>::value && std::is_constructible<E, GR>::value &&
432
+ !std::is_constructible<T, expected<U, G>&>::value && !std::is_constructible<T, expected<U, G>&&>::value &&
433
+ !std::is_constructible<T, const expected<U, G>&>::value && !std::is_constructible<T, const expected<U, G>&&>::value &&
434
+ !std::is_convertible<expected<U, G>&, T>::value && !std::is_convertible<expected<U, G>&&, T>::value &&
435
+ !std::is_convertible<const expected<U, G>&, T>::value && !std::is_convertible<const expected<U, G>&&, T>::value>;
436
+
437
+ template<class T, class U>
438
+ using is_void_or = conditional_t<std::is_void<T>::value, std::true_type, U>;
439
+
440
+ template<class T>
441
+ using is_copy_constructible_or_void = is_void_or<T, std::is_copy_constructible<T>>;
442
+
443
+ template<class T>
444
+ using is_move_constructible_or_void = is_void_or<T, std::is_move_constructible<T>>;
445
+
446
+ template<class T>
447
+ using is_copy_assignable_or_void = is_void_or<T, std::is_copy_assignable<T>>;
448
+
449
+ template<class T>
450
+ using is_move_assignable_or_void = is_void_or<T, std::is_move_assignable<T>>;
451
+
452
+ } // namespace detail
453
+
454
+ namespace detail
455
+ {
456
+ struct no_init_t {
457
+ };
458
+ static constexpr no_init_t no_init{};
459
+
460
+ // Implements the storage of the values, and ensures that the destructor is
461
+ // trivial if it can be.
462
+ //
463
+ // This specialization is for where neither `T` or `E` is trivially
464
+ // destructible, so the destructors must be called on destruction of the
465
+ // `expected`
466
+ template<class T, class E, bool = std::is_trivially_destructible<T>::value, bool = std::is_trivially_destructible<E>::value>
467
+ struct expected_storage_base {
468
+ constexpr expected_storage_base()
469
+ : m_val(T{})
470
+ , m_has_val(true)
471
+ {
472
+ }
473
+ constexpr expected_storage_base(no_init_t)
474
+ : m_no_init()
475
+ , m_has_val(false)
476
+ {
477
+ }
478
+
479
+ template<class... Args, detail::enable_if_t<std::is_constructible<T, Args&&...>::value>* = nullptr>
480
+ constexpr expected_storage_base(in_place_t, Args&&... args)
481
+ : m_val(std::forward<Args>(args)...)
482
+ , m_has_val(true)
483
+ {
484
+ }
485
+
486
+ template<class U, class... Args, detail::enable_if_t<std::is_constructible<T, std::initializer_list<U>&, Args&&...>::value>* = nullptr>
487
+ constexpr expected_storage_base(in_place_t, std::initializer_list<U> il, Args&&... args)
488
+ : m_val(il, std::forward<Args>(args)...)
489
+ , m_has_val(true)
490
+ {
491
+ }
492
+ template<class... Args, detail::enable_if_t<std::is_constructible<E, Args&&...>::value>* = nullptr>
493
+ constexpr explicit expected_storage_base(unexpect_t, Args&&... args)
494
+ : m_unexpect(std::forward<Args>(args)...)
495
+ , m_has_val(false)
496
+ {
497
+ }
498
+
499
+ template<class U, class... Args, detail::enable_if_t<std::is_constructible<E, std::initializer_list<U>&, Args&&...>::value>* = nullptr>
500
+ constexpr explicit expected_storage_base(unexpect_t, std::initializer_list<U> il, Args&&... args)
501
+ : m_unexpect(il, std::forward<Args>(args)...)
502
+ , m_has_val(false)
503
+ {
504
+ }
505
+
506
+ ~expected_storage_base()
507
+ {
508
+ if (m_has_val) {
509
+ m_val.~T();
510
+ } else {
511
+ m_unexpect.~unexpected<E>();
512
+ }
513
+ }
514
+ union {
515
+ T m_val;
516
+ unexpected<E> m_unexpect;
517
+ char m_no_init;
518
+ };
519
+ bool m_has_val;
520
+ };
521
+
522
+ // This specialization is for when both `T` and `E` are trivially-destructible,
523
+ // so the destructor of the `expected` can be trivial.
524
+ template<class T, class E>
525
+ struct expected_storage_base<T, E, true, true> {
526
+ constexpr expected_storage_base()
527
+ : m_val(T{})
528
+ , m_has_val(true)
529
+ {
530
+ }
531
+ constexpr expected_storage_base(no_init_t)
532
+ : m_no_init()
533
+ , m_has_val(false)
534
+ {
535
+ }
536
+
537
+ template<class... Args, detail::enable_if_t<std::is_constructible<T, Args&&...>::value>* = nullptr>
538
+ constexpr expected_storage_base(in_place_t, Args&&... args)
539
+ : m_val(std::forward<Args>(args)...)
540
+ , m_has_val(true)
541
+ {
542
+ }
543
+
544
+ template<class U, class... Args, detail::enable_if_t<std::is_constructible<T, std::initializer_list<U>&, Args&&...>::value>* = nullptr>
545
+ constexpr expected_storage_base(in_place_t, std::initializer_list<U> il, Args&&... args)
546
+ : m_val(il, std::forward<Args>(args)...)
547
+ , m_has_val(true)
548
+ {
549
+ }
550
+ template<class... Args, detail::enable_if_t<std::is_constructible<E, Args&&...>::value>* = nullptr>
551
+ constexpr explicit expected_storage_base(unexpect_t, Args&&... args)
552
+ : m_unexpect(std::forward<Args>(args)...)
553
+ , m_has_val(false)
554
+ {
555
+ }
556
+
557
+ template<class U, class... Args, detail::enable_if_t<std::is_constructible<E, std::initializer_list<U>&, Args&&...>::value>* = nullptr>
558
+ constexpr explicit expected_storage_base(unexpect_t, std::initializer_list<U> il, Args&&... args)
559
+ : m_unexpect(il, std::forward<Args>(args)...)
560
+ , m_has_val(false)
561
+ {
562
+ }
563
+
564
+ ~expected_storage_base() = default;
565
+ union {
566
+ T m_val;
567
+ unexpected<E> m_unexpect;
568
+ char m_no_init;
569
+ };
570
+ bool m_has_val;
571
+ };
572
+
573
+ // T is trivial, E is not.
574
+ template<class T, class E>
575
+ struct expected_storage_base<T, E, true, false> {
576
+ constexpr expected_storage_base()
577
+ : m_val(T{})
578
+ , m_has_val(true)
579
+ {
580
+ }
581
+ TL_EXPECTED_MSVC2015_CONSTEXPR expected_storage_base(no_init_t)
582
+ : m_no_init()
583
+ , m_has_val(false)
584
+ {
585
+ }
586
+
587
+ template<class... Args, detail::enable_if_t<std::is_constructible<T, Args&&...>::value>* = nullptr>
588
+ constexpr expected_storage_base(in_place_t, Args&&... args)
589
+ : m_val(std::forward<Args>(args)...)
590
+ , m_has_val(true)
591
+ {
592
+ }
593
+
594
+ template<class U, class... Args, detail::enable_if_t<std::is_constructible<T, std::initializer_list<U>&, Args&&...>::value>* = nullptr>
595
+ constexpr expected_storage_base(in_place_t, std::initializer_list<U> il, Args&&... args)
596
+ : m_val(il, std::forward<Args>(args)...)
597
+ , m_has_val(true)
598
+ {
599
+ }
600
+ template<class... Args, detail::enable_if_t<std::is_constructible<E, Args&&...>::value>* = nullptr>
601
+ constexpr explicit expected_storage_base(unexpect_t, Args&&... args)
602
+ : m_unexpect(std::forward<Args>(args)...)
603
+ , m_has_val(false)
604
+ {
605
+ }
606
+
607
+ template<class U, class... Args, detail::enable_if_t<std::is_constructible<E, std::initializer_list<U>&, Args&&...>::value>* = nullptr>
608
+ constexpr explicit expected_storage_base(unexpect_t, std::initializer_list<U> il, Args&&... args)
609
+ : m_unexpect(il, std::forward<Args>(args)...)
610
+ , m_has_val(false)
611
+ {
612
+ }
613
+
614
+ ~expected_storage_base()
615
+ {
616
+ if (!m_has_val) {
617
+ m_unexpect.~unexpected<E>();
618
+ }
619
+ }
620
+
621
+ union {
622
+ T m_val;
623
+ unexpected<E> m_unexpect;
624
+ char m_no_init;
625
+ };
626
+ bool m_has_val;
627
+ };
628
+
629
+ // E is trivial, T is not.
630
+ template<class T, class E>
631
+ struct expected_storage_base<T, E, false, true> {
632
+ constexpr expected_storage_base()
633
+ : m_val(T{})
634
+ , m_has_val(true)
635
+ {
636
+ }
637
+ constexpr expected_storage_base(no_init_t)
638
+ : m_no_init()
639
+ , m_has_val(false)
640
+ {
641
+ }
642
+
643
+ template<class... Args, detail::enable_if_t<std::is_constructible<T, Args&&...>::value>* = nullptr>
644
+ constexpr expected_storage_base(in_place_t, Args&&... args)
645
+ : m_val(std::forward<Args>(args)...)
646
+ , m_has_val(true)
647
+ {
648
+ }
649
+
650
+ template<class U, class... Args, detail::enable_if_t<std::is_constructible<T, std::initializer_list<U>&, Args&&...>::value>* = nullptr>
651
+ constexpr expected_storage_base(in_place_t, std::initializer_list<U> il, Args&&... args)
652
+ : m_val(il, std::forward<Args>(args)...)
653
+ , m_has_val(true)
654
+ {
655
+ }
656
+ template<class... Args, detail::enable_if_t<std::is_constructible<E, Args&&...>::value>* = nullptr>
657
+ constexpr explicit expected_storage_base(unexpect_t, Args&&... args)
658
+ : m_unexpect(std::forward<Args>(args)...)
659
+ , m_has_val(false)
660
+ {
661
+ }
662
+
663
+ template<class U, class... Args, detail::enable_if_t<std::is_constructible<E, std::initializer_list<U>&, Args&&...>::value>* = nullptr>
664
+ constexpr explicit expected_storage_base(unexpect_t, std::initializer_list<U> il, Args&&... args)
665
+ : m_unexpect(il, std::forward<Args>(args)...)
666
+ , m_has_val(false)
667
+ {
668
+ }
669
+
670
+ ~expected_storage_base()
671
+ {
672
+ if (m_has_val) {
673
+ m_val.~T();
674
+ }
675
+ }
676
+ union {
677
+ T m_val;
678
+ unexpected<E> m_unexpect;
679
+ char m_no_init;
680
+ };
681
+ bool m_has_val;
682
+ };
683
+
684
+ // `T` is `void`, `E` is trivially-destructible
685
+ template<class E>
686
+ struct expected_storage_base<void, E, false, true> {
687
+ TL_EXPECTED_MSVC2015_CONSTEXPR expected_storage_base()
688
+ : m_has_val(true)
689
+ {
690
+ }
691
+ constexpr expected_storage_base(no_init_t)
692
+ : m_val()
693
+ , m_has_val(false)
694
+ {
695
+ }
696
+
697
+ constexpr expected_storage_base(in_place_t)
698
+ : m_has_val(true)
699
+ {
700
+ }
701
+
702
+ template<class... Args, detail::enable_if_t<std::is_constructible<E, Args&&...>::value>* = nullptr>
703
+ constexpr explicit expected_storage_base(unexpect_t, Args&&... args)
704
+ : m_unexpect(std::forward<Args>(args)...)
705
+ , m_has_val(false)
706
+ {
707
+ }
708
+
709
+ template<class U, class... Args, detail::enable_if_t<std::is_constructible<E, std::initializer_list<U>&, Args&&...>::value>* = nullptr>
710
+ constexpr explicit expected_storage_base(unexpect_t, std::initializer_list<U> il, Args&&... args)
711
+ : m_unexpect(il, std::forward<Args>(args)...)
712
+ , m_has_val(false)
713
+ {
714
+ }
715
+
716
+ ~expected_storage_base() = default;
717
+ struct dummy {
718
+ };
719
+ union {
720
+ unexpected<E> m_unexpect;
721
+ dummy m_val;
722
+ };
723
+ bool m_has_val;
724
+ };
725
+
726
+ // `T` is `void`, `E` is not trivially-destructible
727
+ template<class E>
728
+ struct expected_storage_base<void, E, false, false> {
729
+ constexpr expected_storage_base()
730
+ : m_dummy()
731
+ , m_has_val(true)
732
+ {
733
+ }
734
+ constexpr expected_storage_base(no_init_t)
735
+ : m_dummy()
736
+ , m_has_val(false)
737
+ {
738
+ }
739
+
740
+ constexpr expected_storage_base(in_place_t)
741
+ : m_dummy()
742
+ , m_has_val(true)
743
+ {
744
+ }
745
+
746
+ template<class... Args, detail::enable_if_t<std::is_constructible<E, Args&&...>::value>* = nullptr>
747
+ constexpr explicit expected_storage_base(unexpect_t, Args&&... args)
748
+ : m_unexpect(std::forward<Args>(args)...)
749
+ , m_has_val(false)
750
+ {
751
+ }
752
+
753
+ template<class U, class... Args, detail::enable_if_t<std::is_constructible<E, std::initializer_list<U>&, Args&&...>::value>* = nullptr>
754
+ constexpr explicit expected_storage_base(unexpect_t, std::initializer_list<U> il, Args&&... args)
755
+ : m_unexpect(il, std::forward<Args>(args)...)
756
+ , m_has_val(false)
757
+ {
758
+ }
759
+
760
+ ~expected_storage_base()
761
+ {
762
+ if (!m_has_val) {
763
+ m_unexpect.~unexpected<E>();
764
+ }
765
+ }
766
+
767
+ union {
768
+ unexpected<E> m_unexpect;
769
+ char m_dummy;
770
+ };
771
+ bool m_has_val;
772
+ };
773
+
774
+ // This base class provides some handy member functions which can be used in
775
+ // further derived classes
776
+ template<class T, class E>
777
+ struct expected_operations_base : expected_storage_base<T, E> {
778
+ using expected_storage_base<T, E>::expected_storage_base;
779
+
780
+ template<class... Args>
781
+ void construct(Args&&... args) noexcept
782
+ {
783
+ new (std::addressof(this->m_val)) T(std::forward<Args>(args)...);
784
+ this->m_has_val = true;
785
+ }
786
+
787
+ template<class Rhs>
788
+ void construct_with(Rhs&& rhs) noexcept
789
+ {
790
+ new (std::addressof(this->m_val)) T(std::forward<Rhs>(rhs).get());
791
+ this->m_has_val = true;
792
+ }
793
+
794
+ template<class... Args>
795
+ void construct_error(Args&&... args) noexcept
796
+ {
797
+ new (std::addressof(this->m_unexpect)) unexpected<E>(std::forward<Args>(args)...);
798
+ this->m_has_val = false;
799
+ }
800
+
801
+ #ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
802
+
803
+ // These assign overloads ensure that the most efficient assignment
804
+ // implementation is used while maintaining the strong exception guarantee.
805
+ // The problematic case is where rhs has a value, but *this does not.
806
+ //
807
+ // This overload handles the case where we can just copy-construct `T`
808
+ // directly into place without throwing.
809
+ template<class U = T, detail::enable_if_t<std::is_nothrow_copy_constructible<U>::value>* = nullptr>
810
+ void assign(const expected_operations_base& rhs) noexcept
811
+ {
812
+ if (!this->m_has_val && rhs.m_has_val) {
813
+ geterr().~unexpected<E>();
814
+ construct(rhs.get());
815
+ } else {
816
+ assign_common(rhs);
817
+ }
818
+ }
819
+
820
+ // This overload handles the case where we can attempt to create a copy of
821
+ // `T`, then no-throw move it into place if the copy was successful.
822
+ template<class U = T,
823
+ detail::enable_if_t<!std::is_nothrow_copy_constructible<U>::value && std::is_nothrow_move_constructible<U>::value>* = nullptr>
824
+ void assign(const expected_operations_base& rhs) noexcept
825
+ {
826
+ if (!this->m_has_val && rhs.m_has_val) {
827
+ T tmp = rhs.get();
828
+ geterr().~unexpected<E>();
829
+ construct(std::move(tmp));
830
+ } else {
831
+ assign_common(rhs);
832
+ }
833
+ }
834
+
835
+ // This overload is the worst-case, where we have to move-construct the
836
+ // unexpected value into temporary storage, then try to copy the T into place.
837
+ // If the construction succeeds, then everything is fine, but if it throws,
838
+ // then we move the old unexpected value back into place before rethrowing the
839
+ // exception.
840
+ template<class U = T,
841
+ detail::enable_if_t<!std::is_nothrow_copy_constructible<U>::value && !std::is_nothrow_move_constructible<U>::value>* = nullptr>
842
+ void assign(const expected_operations_base& rhs)
843
+ {
844
+ if (!this->m_has_val && rhs.m_has_val) {
845
+ auto tmp = std::move(geterr());
846
+ geterr().~unexpected<E>();
847
+
848
+ #ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
849
+ try {
850
+ construct(rhs.get());
851
+ } catch (...) {
852
+ geterr() = std::move(tmp);
853
+ throw;
854
+ }
855
+ #else
856
+ construct(rhs.get());
857
+ #endif
858
+ } else {
859
+ assign_common(rhs);
860
+ }
861
+ }
862
+
863
+ // These overloads do the same as above, but for rvalues
864
+ template<class U = T, detail::enable_if_t<std::is_nothrow_move_constructible<U>::value>* = nullptr>
865
+ void assign(expected_operations_base&& rhs) noexcept
866
+ {
867
+ if (!this->m_has_val && rhs.m_has_val) {
868
+ geterr().~unexpected<E>();
869
+ construct(std::move(rhs).get());
870
+ } else {
871
+ assign_common(std::move(rhs));
872
+ }
873
+ }
874
+
875
+ template<class U = T, detail::enable_if_t<!std::is_nothrow_move_constructible<U>::value>* = nullptr>
876
+ void assign(expected_operations_base&& rhs)
877
+ {
878
+ if (!this->m_has_val && rhs.m_has_val) {
879
+ auto tmp = std::move(geterr());
880
+ geterr().~unexpected<E>();
881
+ #ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
882
+ try {
883
+ construct(std::move(rhs).get());
884
+ } catch (...) {
885
+ geterr() = std::move(tmp);
886
+ throw;
887
+ }
888
+ #else
889
+ construct(std::move(rhs).get());
890
+ #endif
891
+ } else {
892
+ assign_common(std::move(rhs));
893
+ }
894
+ }
895
+
896
+ #else
897
+
898
+ // If exceptions are disabled then we can just copy-construct
899
+ void assign(const expected_operations_base& rhs) noexcept
900
+ {
901
+ if (!this->m_has_val && rhs.m_has_val) {
902
+ geterr().~unexpected<E>();
903
+ construct(rhs.get());
904
+ } else {
905
+ assign_common(rhs);
906
+ }
907
+ }
908
+
909
+ void assign(expected_operations_base&& rhs) noexcept
910
+ {
911
+ if (!this->m_has_val && rhs.m_has_val) {
912
+ geterr().~unexpected<E>();
913
+ construct(std::move(rhs).get());
914
+ } else {
915
+ assign_common(rhs);
916
+ }
917
+ }
918
+
919
+ #endif
920
+
921
+ // The common part of move/copy assigning
922
+ template<class Rhs>
923
+ void assign_common(Rhs&& rhs)
924
+ {
925
+ if (this->m_has_val) {
926
+ if (rhs.m_has_val) {
927
+ get() = std::forward<Rhs>(rhs).get();
928
+ } else {
929
+ destroy_val();
930
+ construct_error(std::forward<Rhs>(rhs).geterr());
931
+ }
932
+ } else {
933
+ if (!rhs.m_has_val) {
934
+ geterr() = std::forward<Rhs>(rhs).geterr();
935
+ }
936
+ }
937
+ }
938
+
939
+ bool has_value() const
940
+ {
941
+ return this->m_has_val;
942
+ }
943
+
944
+ TL_EXPECTED_11_CONSTEXPR T& get() &
945
+ {
946
+ return this->m_val;
947
+ }
948
+ constexpr const T& get() const&
949
+ {
950
+ return this->m_val;
951
+ }
952
+ TL_EXPECTED_11_CONSTEXPR T&& get() &&
953
+ {
954
+ return std::move(this->m_val);
955
+ }
956
+ #ifndef TL_EXPECTED_NO_CONSTRR
957
+ constexpr const T&& get() const&&
958
+ {
959
+ return std::move(this->m_val);
960
+ }
961
+ #endif
962
+
963
+ TL_EXPECTED_11_CONSTEXPR unexpected<E>& geterr() &
964
+ {
965
+ return this->m_unexpect;
966
+ }
967
+ constexpr const unexpected<E>& geterr() const&
968
+ {
969
+ return this->m_unexpect;
970
+ }
971
+ TL_EXPECTED_11_CONSTEXPR unexpected<E>&& geterr() &&
972
+ {
973
+ return std::move(this->m_unexpect);
974
+ }
975
+ #ifndef TL_EXPECTED_NO_CONSTRR
976
+ constexpr const unexpected<E>&& geterr() const&&
977
+ {
978
+ return std::move(this->m_unexpect);
979
+ }
980
+ #endif
981
+
982
+ TL_EXPECTED_11_CONSTEXPR void destroy_val()
983
+ {
984
+ get().~T();
985
+ }
986
+ };
987
+
988
+ // This base class provides some handy member functions which can be used in
989
+ // further derived classes
990
+ template<class E>
991
+ struct expected_operations_base<void, E> : expected_storage_base<void, E> {
992
+ using expected_storage_base<void, E>::expected_storage_base;
993
+
994
+ template<class... Args>
995
+ void construct() noexcept
996
+ {
997
+ this->m_has_val = true;
998
+ }
999
+
1000
+ // This function doesn't use its argument, but needs it so that code in
1001
+ // levels above this can work independently of whether T is void
1002
+ template<class Rhs>
1003
+ void construct_with(Rhs&&) noexcept
1004
+ {
1005
+ this->m_has_val = true;
1006
+ }
1007
+
1008
+ template<class... Args>
1009
+ void construct_error(Args&&... args) noexcept
1010
+ {
1011
+ new (std::addressof(this->m_unexpect)) unexpected<E>(std::forward<Args>(args)...);
1012
+ this->m_has_val = false;
1013
+ }
1014
+
1015
+ template<class Rhs>
1016
+ void assign(Rhs&& rhs) noexcept
1017
+ {
1018
+ if (!this->m_has_val) {
1019
+ if (rhs.m_has_val) {
1020
+ geterr().~unexpected<E>();
1021
+ construct();
1022
+ } else {
1023
+ geterr() = std::forward<Rhs>(rhs).geterr();
1024
+ }
1025
+ } else {
1026
+ if (!rhs.m_has_val) {
1027
+ construct_error(std::forward<Rhs>(rhs).geterr());
1028
+ }
1029
+ }
1030
+ }
1031
+
1032
+ bool has_value() const
1033
+ {
1034
+ return this->m_has_val;
1035
+ }
1036
+
1037
+ TL_EXPECTED_11_CONSTEXPR unexpected<E>& geterr() &
1038
+ {
1039
+ return this->m_unexpect;
1040
+ }
1041
+ constexpr const unexpected<E>& geterr() const&
1042
+ {
1043
+ return this->m_unexpect;
1044
+ }
1045
+ TL_EXPECTED_11_CONSTEXPR unexpected<E>&& geterr() &&
1046
+ {
1047
+ return std::move(this->m_unexpect);
1048
+ }
1049
+ #ifndef TL_EXPECTED_NO_CONSTRR
1050
+ constexpr const unexpected<E>&& geterr() const&&
1051
+ {
1052
+ return std::move(this->m_unexpect);
1053
+ }
1054
+ #endif
1055
+
1056
+ TL_EXPECTED_11_CONSTEXPR void destroy_val()
1057
+ {
1058
+ // no-op
1059
+ }
1060
+ };
1061
+
1062
+ // This class manages conditionally having a trivial copy constructor
1063
+ // This specialization is for when T and E are trivially copy constructible
1064
+ template<class T,
1065
+ class E,
1066
+ bool =
1067
+ is_void_or<T, TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T)>::value&& TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(E)::value>
1068
+ struct expected_copy_base : expected_operations_base<T, E> {
1069
+ using expected_operations_base<T, E>::expected_operations_base;
1070
+ };
1071
+
1072
+ // This specialization is for when T or E are not trivially copy constructible
1073
+ template<class T, class E>
1074
+ struct expected_copy_base<T, E, false> : expected_operations_base<T, E> {
1075
+ using expected_operations_base<T, E>::expected_operations_base;
1076
+
1077
+ expected_copy_base() = default;
1078
+ expected_copy_base(const expected_copy_base& rhs)
1079
+ : expected_operations_base<T, E>(no_init)
1080
+ {
1081
+ if (rhs.has_value()) {
1082
+ this->construct_with(rhs);
1083
+ } else {
1084
+ this->construct_error(rhs.geterr());
1085
+ }
1086
+ }
1087
+
1088
+ expected_copy_base(expected_copy_base&& rhs) = default;
1089
+ expected_copy_base& operator=(const expected_copy_base& rhs) = default;
1090
+ expected_copy_base& operator=(expected_copy_base&& rhs) = default;
1091
+ };
1092
+
1093
+ // This class manages conditionally having a trivial move constructor
1094
+ // Unfortunately there's no way to achieve this in GCC < 5 AFAIK, since it
1095
+ // doesn't implement an analogue to std::is_trivially_move_constructible. We
1096
+ // have to make do with a non-trivial move constructor even if T is trivially
1097
+ // move constructible
1098
+ #ifndef TL_EXPECTED_GCC49
1099
+ template<class T,
1100
+ class E,
1101
+ bool = is_void_or<T, std::is_trivially_move_constructible<T>>::value&& std::is_trivially_move_constructible<E>::value>
1102
+ struct expected_move_base : expected_copy_base<T, E> {
1103
+ using expected_copy_base<T, E>::expected_copy_base;
1104
+ };
1105
+ #else
1106
+ template<class T, class E, bool = false>
1107
+ struct expected_move_base;
1108
+ #endif
1109
+ template<class T, class E>
1110
+ struct expected_move_base<T, E, false> : expected_copy_base<T, E> {
1111
+ using expected_copy_base<T, E>::expected_copy_base;
1112
+
1113
+ expected_move_base() = default;
1114
+ expected_move_base(const expected_move_base& rhs) = default;
1115
+
1116
+ expected_move_base(expected_move_base&& rhs) noexcept(std::is_nothrow_move_constructible<T>::value)
1117
+ : expected_copy_base<T, E>(no_init)
1118
+ {
1119
+ if (rhs.has_value()) {
1120
+ this->construct_with(std::move(rhs));
1121
+ } else {
1122
+ this->construct_error(std::move(rhs.geterr()));
1123
+ }
1124
+ }
1125
+ expected_move_base& operator=(const expected_move_base& rhs) = default;
1126
+ expected_move_base& operator=(expected_move_base&& rhs) = default;
1127
+ };
1128
+
1129
+ // This class manages conditionally having a trivial copy assignment operator
1130
+ template<class T,
1131
+ class E,
1132
+ bool =
1133
+ is_void_or<T,
1134
+ conjunction<TL_EXPECTED_IS_TRIVIALLY_COPY_ASSIGNABLE(T),
1135
+ TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T),
1136
+ TL_EXPECTED_IS_TRIVIALLY_DESTRUCTIBLE(T)>>::value&& TL_EXPECTED_IS_TRIVIALLY_COPY_ASSIGNABLE(E)::value&&
1137
+ TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(E)::value&& TL_EXPECTED_IS_TRIVIALLY_DESTRUCTIBLE(E)::value>
1138
+ struct expected_copy_assign_base : expected_move_base<T, E> {
1139
+ using expected_move_base<T, E>::expected_move_base;
1140
+ };
1141
+
1142
+ template<class T, class E>
1143
+ struct expected_copy_assign_base<T, E, false> : expected_move_base<T, E> {
1144
+ using expected_move_base<T, E>::expected_move_base;
1145
+
1146
+ expected_copy_assign_base() = default;
1147
+ expected_copy_assign_base(const expected_copy_assign_base& rhs) = default;
1148
+
1149
+ expected_copy_assign_base(expected_copy_assign_base&& rhs) = default;
1150
+ expected_copy_assign_base& operator=(const expected_copy_assign_base& rhs)
1151
+ {
1152
+ this->assign(rhs);
1153
+ return *this;
1154
+ }
1155
+ expected_copy_assign_base& operator=(expected_copy_assign_base&& rhs) = default;
1156
+ };
1157
+
1158
+ // This class manages conditionally having a trivial move assignment operator
1159
+ // Unfortunately there's no way to achieve this in GCC < 5 AFAIK, since it
1160
+ // doesn't implement an analogue to std::is_trivially_move_assignable. We have
1161
+ // to make do with a non-trivial move assignment operator even if T is trivially
1162
+ // move assignable
1163
+ #ifndef TL_EXPECTED_GCC49
1164
+ template<
1165
+ class T,
1166
+ class E,
1167
+ bool = is_void_or<
1168
+ T,
1169
+ conjunction<std::is_trivially_destructible<T>, std::is_trivially_move_constructible<T>, std::is_trivially_move_assignable<T>>>::value&&
1170
+ std::is_trivially_destructible<E>::value&& std::is_trivially_move_constructible<E>::value&& std::is_trivially_move_assignable<E>::value>
1171
+ struct expected_move_assign_base : expected_copy_assign_base<T, E> {
1172
+ using expected_copy_assign_base<T, E>::expected_copy_assign_base;
1173
+ };
1174
+ #else
1175
+ template<class T, class E, bool = false>
1176
+ struct expected_move_assign_base;
1177
+ #endif
1178
+
1179
+ template<class T, class E>
1180
+ struct expected_move_assign_base<T, E, false> : expected_copy_assign_base<T, E> {
1181
+ using expected_copy_assign_base<T, E>::expected_copy_assign_base;
1182
+
1183
+ expected_move_assign_base() = default;
1184
+ expected_move_assign_base(const expected_move_assign_base& rhs) = default;
1185
+
1186
+ expected_move_assign_base(expected_move_assign_base&& rhs) = default;
1187
+
1188
+ expected_move_assign_base& operator=(const expected_move_assign_base& rhs) = default;
1189
+
1190
+ expected_move_assign_base& operator=(expected_move_assign_base&& rhs) noexcept(
1191
+ std::is_nothrow_move_constructible<T>::value&& std::is_nothrow_move_assignable<T>::value)
1192
+ {
1193
+ this->assign(std::move(rhs));
1194
+ return *this;
1195
+ }
1196
+ };
1197
+
1198
+ // expected_delete_ctor_base will conditionally delete copy and move
1199
+ // constructors depending on whether T is copy/move constructible
1200
+ template<class T,
1201
+ class E,
1202
+ bool EnableCopy = (is_copy_constructible_or_void<T>::value && std::is_copy_constructible<E>::value),
1203
+ bool EnableMove = (is_move_constructible_or_void<T>::value && std::is_move_constructible<E>::value)>
1204
+ struct expected_delete_ctor_base {
1205
+ expected_delete_ctor_base() = default;
1206
+ expected_delete_ctor_base(const expected_delete_ctor_base&) = default;
1207
+ expected_delete_ctor_base(expected_delete_ctor_base&&) noexcept = default;
1208
+ expected_delete_ctor_base& operator=(const expected_delete_ctor_base&) = default;
1209
+ expected_delete_ctor_base& operator=(expected_delete_ctor_base&&) noexcept = default;
1210
+ };
1211
+
1212
+ template<class T, class E>
1213
+ struct expected_delete_ctor_base<T, E, true, false> {
1214
+ expected_delete_ctor_base() = default;
1215
+ expected_delete_ctor_base(const expected_delete_ctor_base&) = default;
1216
+ expected_delete_ctor_base(expected_delete_ctor_base&&) noexcept = delete;
1217
+ expected_delete_ctor_base& operator=(const expected_delete_ctor_base&) = default;
1218
+ expected_delete_ctor_base& operator=(expected_delete_ctor_base&&) noexcept = default;
1219
+ };
1220
+
1221
+ template<class T, class E>
1222
+ struct expected_delete_ctor_base<T, E, false, true> {
1223
+ expected_delete_ctor_base() = default;
1224
+ expected_delete_ctor_base(const expected_delete_ctor_base&) = delete;
1225
+ expected_delete_ctor_base(expected_delete_ctor_base&&) noexcept = default;
1226
+ expected_delete_ctor_base& operator=(const expected_delete_ctor_base&) = default;
1227
+ expected_delete_ctor_base& operator=(expected_delete_ctor_base&&) noexcept = default;
1228
+ };
1229
+
1230
+ template<class T, class E>
1231
+ struct expected_delete_ctor_base<T, E, false, false> {
1232
+ expected_delete_ctor_base() = default;
1233
+ expected_delete_ctor_base(const expected_delete_ctor_base&) = delete;
1234
+ expected_delete_ctor_base(expected_delete_ctor_base&&) noexcept = delete;
1235
+ expected_delete_ctor_base& operator=(const expected_delete_ctor_base&) = default;
1236
+ expected_delete_ctor_base& operator=(expected_delete_ctor_base&&) noexcept = default;
1237
+ };
1238
+
1239
+ // expected_delete_assign_base will conditionally delete copy and move
1240
+ // constructors depending on whether T and E are copy/move constructible +
1241
+ // assignable
1242
+ template<class T,
1243
+ class E,
1244
+ bool EnableCopy = (is_copy_constructible_or_void<T>::value && std::is_copy_constructible<E>::value &&
1245
+ is_copy_assignable_or_void<T>::value && std::is_copy_assignable<E>::value),
1246
+ bool EnableMove = (is_move_constructible_or_void<T>::value && std::is_move_constructible<E>::value &&
1247
+ is_move_assignable_or_void<T>::value && std::is_move_assignable<E>::value)>
1248
+ struct expected_delete_assign_base {
1249
+ expected_delete_assign_base() = default;
1250
+ expected_delete_assign_base(const expected_delete_assign_base&) = default;
1251
+ expected_delete_assign_base(expected_delete_assign_base&&) noexcept = default;
1252
+ expected_delete_assign_base& operator=(const expected_delete_assign_base&) = default;
1253
+ expected_delete_assign_base& operator=(expected_delete_assign_base&&) noexcept = default;
1254
+ };
1255
+
1256
+ template<class T, class E>
1257
+ struct expected_delete_assign_base<T, E, true, false> {
1258
+ expected_delete_assign_base() = default;
1259
+ expected_delete_assign_base(const expected_delete_assign_base&) = default;
1260
+ expected_delete_assign_base(expected_delete_assign_base&&) noexcept = default;
1261
+ expected_delete_assign_base& operator=(const expected_delete_assign_base&) = default;
1262
+ expected_delete_assign_base& operator=(expected_delete_assign_base&&) noexcept = delete;
1263
+ };
1264
+
1265
+ template<class T, class E>
1266
+ struct expected_delete_assign_base<T, E, false, true> {
1267
+ expected_delete_assign_base() = default;
1268
+ expected_delete_assign_base(const expected_delete_assign_base&) = default;
1269
+ expected_delete_assign_base(expected_delete_assign_base&&) noexcept = default;
1270
+ expected_delete_assign_base& operator=(const expected_delete_assign_base&) = delete;
1271
+ expected_delete_assign_base& operator=(expected_delete_assign_base&&) noexcept = default;
1272
+ };
1273
+
1274
+ template<class T, class E>
1275
+ struct expected_delete_assign_base<T, E, false, false> {
1276
+ expected_delete_assign_base() = default;
1277
+ expected_delete_assign_base(const expected_delete_assign_base&) = default;
1278
+ expected_delete_assign_base(expected_delete_assign_base&&) noexcept = default;
1279
+ expected_delete_assign_base& operator=(const expected_delete_assign_base&) = delete;
1280
+ expected_delete_assign_base& operator=(expected_delete_assign_base&&) noexcept = delete;
1281
+ };
1282
+
1283
+ // This is needed to be able to construct the expected_default_ctor_base which
1284
+ // follows, while still conditionally deleting the default constructor.
1285
+ struct default_constructor_tag {
1286
+ explicit constexpr default_constructor_tag() = default;
1287
+ };
1288
+
1289
+ // expected_default_ctor_base will ensure that expected has a deleted default
1290
+ // consturctor if T is not default constructible.
1291
+ // This specialization is for when T is default constructible
1292
+ template<class T, class E, bool Enable = std::is_default_constructible<T>::value || std::is_void<T>::value>
1293
+ struct expected_default_ctor_base {
1294
+ constexpr expected_default_ctor_base() noexcept = default;
1295
+ constexpr expected_default_ctor_base(expected_default_ctor_base const&) noexcept = default;
1296
+ constexpr expected_default_ctor_base(expected_default_ctor_base&&) noexcept = default;
1297
+ expected_default_ctor_base& operator=(expected_default_ctor_base const&) noexcept = default;
1298
+ expected_default_ctor_base& operator=(expected_default_ctor_base&&) noexcept = default;
1299
+
1300
+ constexpr explicit expected_default_ctor_base(default_constructor_tag)
1301
+ {
1302
+ }
1303
+ };
1304
+
1305
+ // This specialization is for when T is not default constructible
1306
+ template<class T, class E>
1307
+ struct expected_default_ctor_base<T, E, false> {
1308
+ constexpr expected_default_ctor_base() noexcept = delete;
1309
+ constexpr expected_default_ctor_base(expected_default_ctor_base const&) noexcept = default;
1310
+ constexpr expected_default_ctor_base(expected_default_ctor_base&&) noexcept = default;
1311
+ expected_default_ctor_base& operator=(expected_default_ctor_base const&) noexcept = default;
1312
+ expected_default_ctor_base& operator=(expected_default_ctor_base&&) noexcept = default;
1313
+
1314
+ constexpr explicit expected_default_ctor_base(default_constructor_tag)
1315
+ {
1316
+ }
1317
+ };
1318
+ } // namespace detail
1319
+
1320
+ template<class E>
1321
+ class bad_expected_access : public std::exception
1322
+ {
1323
+ public:
1324
+ explicit bad_expected_access(E e)
1325
+ : m_val(std::move(e))
1326
+ {
1327
+ }
1328
+
1329
+ virtual const char* what() const noexcept override
1330
+ {
1331
+ return "Bad expected access";
1332
+ }
1333
+
1334
+ const E& error() const&
1335
+ {
1336
+ return m_val;
1337
+ }
1338
+ E& error() &
1339
+ {
1340
+ return m_val;
1341
+ }
1342
+ const E&& error() const&&
1343
+ {
1344
+ return std::move(m_val);
1345
+ }
1346
+ E&& error() &&
1347
+ {
1348
+ return std::move(m_val);
1349
+ }
1350
+
1351
+ private:
1352
+ E m_val;
1353
+ };
1354
+
1355
+ /// An `expected<T, E>` object is an object that contains the storage for
1356
+ /// another object and manages the lifetime of this contained object `T`.
1357
+ /// Alternatively it could contain the storage for another unexpected object
1358
+ /// `E`. The contained object may not be initialized after the expected object
1359
+ /// has been initialized, and may not be destroyed before the expected object
1360
+ /// has been destroyed. The initialization state of the contained object is
1361
+ /// tracked by the expected object.
1362
+ template<class T, class E>
1363
+ class expected
1364
+ : private detail::expected_move_assign_base<T, E>
1365
+ , private detail::expected_delete_ctor_base<T, E>
1366
+ , private detail::expected_delete_assign_base<T, E>
1367
+ , private detail::expected_default_ctor_base<T, E>
1368
+ {
1369
+ static_assert(!std::is_reference<T>::value, "T must not be a reference");
1370
+ static_assert(!std::is_same<T, std::remove_cv<in_place_t>::type>::value, "T must not be in_place_t");
1371
+ static_assert(!std::is_same<T, std::remove_cv<unexpect_t>::type>::value, "T must not be unexpect_t");
1372
+ static_assert(!std::is_same<T, typename std::remove_cv<unexpected<E>>::type>::value, "T must not be unexpected<E>");
1373
+ static_assert(!std::is_reference<E>::value, "E must not be a reference");
1374
+
1375
+ T* valptr()
1376
+ {
1377
+ return std::addressof(this->m_val);
1378
+ }
1379
+ const T* valptr() const
1380
+ {
1381
+ return std::addressof(this->m_val);
1382
+ }
1383
+ unexpected<E>* errptr()
1384
+ {
1385
+ return std::addressof(this->m_unexpect);
1386
+ }
1387
+ const unexpected<E>* errptr() const
1388
+ {
1389
+ return std::addressof(this->m_unexpect);
1390
+ }
1391
+
1392
+ template<class U = T, detail::enable_if_t<!std::is_void<U>::value>* = nullptr>
1393
+ TL_EXPECTED_11_CONSTEXPR U& val()
1394
+ {
1395
+ return this->m_val;
1396
+ }
1397
+ TL_EXPECTED_11_CONSTEXPR unexpected<E>& err()
1398
+ {
1399
+ return this->m_unexpect;
1400
+ }
1401
+
1402
+ template<class U = T, detail::enable_if_t<!std::is_void<U>::value>* = nullptr>
1403
+ constexpr const U& val() const
1404
+ {
1405
+ return this->m_val;
1406
+ }
1407
+ constexpr const unexpected<E>& err() const
1408
+ {
1409
+ return this->m_unexpect;
1410
+ }
1411
+
1412
+ using impl_base = detail::expected_move_assign_base<T, E>;
1413
+ using ctor_base = detail::expected_default_ctor_base<T, E>;
1414
+
1415
+ public:
1416
+ typedef T value_type;
1417
+ typedef E error_type;
1418
+ typedef unexpected<E> unexpected_type;
1419
+
1420
+ #if defined(TL_EXPECTED_CXX14) && !defined(TL_EXPECTED_GCC49) && !defined(TL_EXPECTED_GCC54) && !defined(TL_EXPECTED_GCC55)
1421
+ template<class F>
1422
+ TL_EXPECTED_11_CONSTEXPR auto and_then(F&& f) &
1423
+ {
1424
+ return and_then_impl(*this, std::forward<F>(f));
1425
+ }
1426
+ template<class F>
1427
+ TL_EXPECTED_11_CONSTEXPR auto and_then(F&& f) &&
1428
+ {
1429
+ return and_then_impl(std::move(*this), std::forward<F>(f));
1430
+ }
1431
+ template<class F>
1432
+ constexpr auto and_then(F&& f) const&
1433
+ {
1434
+ return and_then_impl(*this, std::forward<F>(f));
1435
+ }
1436
+
1437
+ #ifndef TL_EXPECTED_NO_CONSTRR
1438
+ template<class F>
1439
+ constexpr auto and_then(F&& f) const&&
1440
+ {
1441
+ return and_then_impl(std::move(*this), std::forward<F>(f));
1442
+ }
1443
+ #endif
1444
+
1445
+ #else
1446
+ template<class F>
1447
+ TL_EXPECTED_11_CONSTEXPR auto and_then(F&& f) & -> decltype(and_then_impl(std::declval<expected&>(), std::forward<F>(f)))
1448
+ {
1449
+ return and_then_impl(*this, std::forward<F>(f));
1450
+ }
1451
+ template<class F>
1452
+ TL_EXPECTED_11_CONSTEXPR auto and_then(F&& f) && -> decltype(and_then_impl(std::declval<expected&&>(), std::forward<F>(f)))
1453
+ {
1454
+ return and_then_impl(std::move(*this), std::forward<F>(f));
1455
+ }
1456
+ template<class F>
1457
+ constexpr auto and_then(F&& f) const& -> decltype(and_then_impl(std::declval<expected const&>(), std::forward<F>(f)))
1458
+ {
1459
+ return and_then_impl(*this, std::forward<F>(f));
1460
+ }
1461
+
1462
+ #ifndef TL_EXPECTED_NO_CONSTRR
1463
+ template<class F>
1464
+ constexpr auto and_then(F&& f) const&& -> decltype(and_then_impl(std::declval<expected const&&>(), std::forward<F>(f)))
1465
+ {
1466
+ return and_then_impl(std::move(*this), std::forward<F>(f));
1467
+ }
1468
+ #endif
1469
+ #endif
1470
+
1471
+ #if defined(TL_EXPECTED_CXX14) && !defined(TL_EXPECTED_GCC49) && !defined(TL_EXPECTED_GCC54) && !defined(TL_EXPECTED_GCC55)
1472
+ template<class F>
1473
+ TL_EXPECTED_11_CONSTEXPR auto map(F&& f) &
1474
+ {
1475
+ return expected_map_impl(*this, std::forward<F>(f));
1476
+ }
1477
+ template<class F>
1478
+ TL_EXPECTED_11_CONSTEXPR auto map(F&& f) &&
1479
+ {
1480
+ return expected_map_impl(std::move(*this), std::forward<F>(f));
1481
+ }
1482
+ template<class F>
1483
+ constexpr auto map(F&& f) const&
1484
+ {
1485
+ return expected_map_impl(*this, std::forward<F>(f));
1486
+ }
1487
+ template<class F>
1488
+ constexpr auto map(F&& f) const&&
1489
+ {
1490
+ return expected_map_impl(std::move(*this), std::forward<F>(f));
1491
+ }
1492
+ #else
1493
+ template<class F>
1494
+ TL_EXPECTED_11_CONSTEXPR decltype(expected_map_impl(std::declval<expected&>(), std::declval<F&&>())) map(F&& f) &
1495
+ {
1496
+ return expected_map_impl(*this, std::forward<F>(f));
1497
+ }
1498
+ template<class F>
1499
+ TL_EXPECTED_11_CONSTEXPR decltype(expected_map_impl(std::declval<expected>(), std::declval<F&&>())) map(F&& f) &&
1500
+ {
1501
+ return expected_map_impl(std::move(*this), std::forward<F>(f));
1502
+ }
1503
+ template<class F>
1504
+ constexpr decltype(expected_map_impl(std::declval<const expected&>(), std::declval<F&&>())) map(F&& f) const&
1505
+ {
1506
+ return expected_map_impl(*this, std::forward<F>(f));
1507
+ }
1508
+
1509
+ #ifndef TL_EXPECTED_NO_CONSTRR
1510
+ template<class F>
1511
+ constexpr decltype(expected_map_impl(std::declval<const expected&&>(), std::declval<F&&>())) map(F&& f) const&&
1512
+ {
1513
+ return expected_map_impl(std::move(*this), std::forward<F>(f));
1514
+ }
1515
+ #endif
1516
+ #endif
1517
+
1518
+ #if defined(TL_EXPECTED_CXX14) && !defined(TL_EXPECTED_GCC49) && !defined(TL_EXPECTED_GCC54) && !defined(TL_EXPECTED_GCC55)
1519
+ template<class F>
1520
+ TL_EXPECTED_11_CONSTEXPR auto transform(F&& f) &
1521
+ {
1522
+ return expected_map_impl(*this, std::forward<F>(f));
1523
+ }
1524
+ template<class F>
1525
+ TL_EXPECTED_11_CONSTEXPR auto transform(F&& f) &&
1526
+ {
1527
+ return expected_map_impl(std::move(*this), std::forward<F>(f));
1528
+ }
1529
+ template<class F>
1530
+ constexpr auto transform(F&& f) const&
1531
+ {
1532
+ return expected_map_impl(*this, std::forward<F>(f));
1533
+ }
1534
+ template<class F>
1535
+ constexpr auto transform(F&& f) const&&
1536
+ {
1537
+ return expected_map_impl(std::move(*this), std::forward<F>(f));
1538
+ }
1539
+ #else
1540
+ template<class F>
1541
+ TL_EXPECTED_11_CONSTEXPR decltype(expected_map_impl(std::declval<expected&>(), std::declval<F&&>())) transform(F&& f) &
1542
+ {
1543
+ return expected_map_impl(*this, std::forward<F>(f));
1544
+ }
1545
+ template<class F>
1546
+ TL_EXPECTED_11_CONSTEXPR decltype(expected_map_impl(std::declval<expected>(), std::declval<F&&>())) transform(F&& f) &&
1547
+ {
1548
+ return expected_map_impl(std::move(*this), std::forward<F>(f));
1549
+ }
1550
+ template<class F>
1551
+ constexpr decltype(expected_map_impl(std::declval<const expected&>(), std::declval<F&&>())) transform(F&& f) const&
1552
+ {
1553
+ return expected_map_impl(*this, std::forward<F>(f));
1554
+ }
1555
+
1556
+ #ifndef TL_EXPECTED_NO_CONSTRR
1557
+ template<class F>
1558
+ constexpr decltype(expected_map_impl(std::declval<const expected&&>(), std::declval<F&&>())) transform(F&& f) const&&
1559
+ {
1560
+ return expected_map_impl(std::move(*this), std::forward<F>(f));
1561
+ }
1562
+ #endif
1563
+ #endif
1564
+
1565
+ #if defined(TL_EXPECTED_CXX14) && !defined(TL_EXPECTED_GCC49) && !defined(TL_EXPECTED_GCC54) && !defined(TL_EXPECTED_GCC55)
1566
+ template<class F>
1567
+ TL_EXPECTED_11_CONSTEXPR auto map_error(F&& f) &
1568
+ {
1569
+ return map_error_impl(*this, std::forward<F>(f));
1570
+ }
1571
+ template<class F>
1572
+ TL_EXPECTED_11_CONSTEXPR auto map_error(F&& f) &&
1573
+ {
1574
+ return map_error_impl(std::move(*this), std::forward<F>(f));
1575
+ }
1576
+ template<class F>
1577
+ constexpr auto map_error(F&& f) const&
1578
+ {
1579
+ return map_error_impl(*this, std::forward<F>(f));
1580
+ }
1581
+ template<class F>
1582
+ constexpr auto map_error(F&& f) const&&
1583
+ {
1584
+ return map_error_impl(std::move(*this), std::forward<F>(f));
1585
+ }
1586
+ #else
1587
+ template<class F>
1588
+ TL_EXPECTED_11_CONSTEXPR decltype(map_error_impl(std::declval<expected&>(), std::declval<F&&>())) map_error(F&& f) &
1589
+ {
1590
+ return map_error_impl(*this, std::forward<F>(f));
1591
+ }
1592
+ template<class F>
1593
+ TL_EXPECTED_11_CONSTEXPR decltype(map_error_impl(std::declval<expected&&>(), std::declval<F&&>())) map_error(F&& f) &&
1594
+ {
1595
+ return map_error_impl(std::move(*this), std::forward<F>(f));
1596
+ }
1597
+ template<class F>
1598
+ constexpr decltype(map_error_impl(std::declval<const expected&>(), std::declval<F&&>())) map_error(F&& f) const&
1599
+ {
1600
+ return map_error_impl(*this, std::forward<F>(f));
1601
+ }
1602
+
1603
+ #ifndef TL_EXPECTED_NO_CONSTRR
1604
+ template<class F>
1605
+ constexpr decltype(map_error_impl(std::declval<const expected&&>(), std::declval<F&&>())) map_error(F&& f) const&&
1606
+ {
1607
+ return map_error_impl(std::move(*this), std::forward<F>(f));
1608
+ }
1609
+ #endif
1610
+ #endif
1611
+ template<class F>
1612
+ expected TL_EXPECTED_11_CONSTEXPR or_else(F&& f) &
1613
+ {
1614
+ return or_else_impl(*this, std::forward<F>(f));
1615
+ }
1616
+
1617
+ template<class F>
1618
+ expected TL_EXPECTED_11_CONSTEXPR or_else(F&& f) &&
1619
+ {
1620
+ return or_else_impl(std::move(*this), std::forward<F>(f));
1621
+ }
1622
+
1623
+ template<class F>
1624
+ expected constexpr or_else(F&& f) const&
1625
+ {
1626
+ return or_else_impl(*this, std::forward<F>(f));
1627
+ }
1628
+
1629
+ #ifndef TL_EXPECTED_NO_CONSTRR
1630
+ template<class F>
1631
+ expected constexpr or_else(F&& f) const&&
1632
+ {
1633
+ return or_else_impl(std::move(*this), std::forward<F>(f));
1634
+ }
1635
+ #endif
1636
+ constexpr expected() = default;
1637
+ constexpr expected(const expected& rhs) = default;
1638
+ constexpr expected(expected&& rhs) = default;
1639
+ expected& operator=(const expected& rhs) = default;
1640
+ expected& operator=(expected&& rhs) = default;
1641
+
1642
+ template<class... Args, detail::enable_if_t<std::is_constructible<T, Args&&...>::value>* = nullptr>
1643
+ constexpr expected(in_place_t, Args&&... args)
1644
+ : impl_base(in_place, std::forward<Args>(args)...)
1645
+ , ctor_base(detail::default_constructor_tag{})
1646
+ {
1647
+ }
1648
+
1649
+ template<class U, class... Args, detail::enable_if_t<std::is_constructible<T, std::initializer_list<U>&, Args&&...>::value>* = nullptr>
1650
+ constexpr expected(in_place_t, std::initializer_list<U> il, Args&&... args)
1651
+ : impl_base(in_place, il, std::forward<Args>(args)...)
1652
+ , ctor_base(detail::default_constructor_tag{})
1653
+ {
1654
+ }
1655
+
1656
+ template<class G = E,
1657
+ detail::enable_if_t<std::is_constructible<E, const G&>::value>* = nullptr,
1658
+ detail::enable_if_t<!std::is_convertible<const G&, E>::value>* = nullptr>
1659
+ explicit constexpr expected(const unexpected<G>& e)
1660
+ : impl_base(unexpect, e.value())
1661
+ , ctor_base(detail::default_constructor_tag{})
1662
+ {
1663
+ }
1664
+
1665
+ template<class G = E,
1666
+ detail::enable_if_t<std::is_constructible<E, const G&>::value>* = nullptr,
1667
+ detail::enable_if_t<std::is_convertible<const G&, E>::value>* = nullptr>
1668
+ constexpr expected(unexpected<G> const& e)
1669
+ : impl_base(unexpect, e.value())
1670
+ , ctor_base(detail::default_constructor_tag{})
1671
+ {
1672
+ }
1673
+
1674
+ template<class G = E,
1675
+ detail::enable_if_t<std::is_constructible<E, G&&>::value>* = nullptr,
1676
+ detail::enable_if_t<!std::is_convertible<G&&, E>::value>* = nullptr>
1677
+ explicit constexpr expected(unexpected<G>&& e) noexcept(std::is_nothrow_constructible<E, G&&>::value)
1678
+ : impl_base(unexpect, std::move(e.value()))
1679
+ , ctor_base(detail::default_constructor_tag{})
1680
+ {
1681
+ }
1682
+
1683
+ template<class G = E,
1684
+ detail::enable_if_t<std::is_constructible<E, G&&>::value>* = nullptr,
1685
+ detail::enable_if_t<std::is_convertible<G&&, E>::value>* = nullptr>
1686
+ constexpr expected(unexpected<G>&& e) noexcept(std::is_nothrow_constructible<E, G&&>::value)
1687
+ : impl_base(unexpect, std::move(e.value()))
1688
+ , ctor_base(detail::default_constructor_tag{})
1689
+ {
1690
+ }
1691
+
1692
+ template<class... Args, detail::enable_if_t<std::is_constructible<E, Args&&...>::value>* = nullptr>
1693
+ constexpr explicit expected(unexpect_t, Args&&... args)
1694
+ : impl_base(unexpect, std::forward<Args>(args)...)
1695
+ , ctor_base(detail::default_constructor_tag{})
1696
+ {
1697
+ }
1698
+
1699
+ template<class U, class... Args, detail::enable_if_t<std::is_constructible<E, std::initializer_list<U>&, Args&&...>::value>* = nullptr>
1700
+ constexpr explicit expected(unexpect_t, std::initializer_list<U> il, Args&&... args)
1701
+ : impl_base(unexpect, il, std::forward<Args>(args)...)
1702
+ , ctor_base(detail::default_constructor_tag{})
1703
+ {
1704
+ }
1705
+
1706
+ template<class U,
1707
+ class G,
1708
+ detail::enable_if_t<!(std::is_convertible<U const&, T>::value && std::is_convertible<G const&, E>::value)>* = nullptr,
1709
+ detail::expected_enable_from_other<T, E, U, G, const U&, const G&>* = nullptr>
1710
+ explicit TL_EXPECTED_11_CONSTEXPR expected(const expected<U, G>& rhs)
1711
+ : ctor_base(detail::default_constructor_tag{})
1712
+ {
1713
+ if (rhs.has_value()) {
1714
+ this->construct(*rhs);
1715
+ } else {
1716
+ this->construct_error(rhs.error());
1717
+ }
1718
+ }
1719
+
1720
+ template<class U,
1721
+ class G,
1722
+ detail::enable_if_t<(std::is_convertible<U const&, T>::value && std::is_convertible<G const&, E>::value)>* = nullptr,
1723
+ detail::expected_enable_from_other<T, E, U, G, const U&, const G&>* = nullptr>
1724
+ TL_EXPECTED_11_CONSTEXPR expected(const expected<U, G>& rhs)
1725
+ : ctor_base(detail::default_constructor_tag{})
1726
+ {
1727
+ if (rhs.has_value()) {
1728
+ this->construct(*rhs);
1729
+ } else {
1730
+ this->construct_error(rhs.error());
1731
+ }
1732
+ }
1733
+
1734
+ template<class U,
1735
+ class G,
1736
+ detail::enable_if_t<!(std::is_convertible<U&&, T>::value && std::is_convertible<G&&, E>::value)>* = nullptr,
1737
+ detail::expected_enable_from_other<T, E, U, G, U&&, G&&>* = nullptr>
1738
+ explicit TL_EXPECTED_11_CONSTEXPR expected(expected<U, G>&& rhs)
1739
+ : ctor_base(detail::default_constructor_tag{})
1740
+ {
1741
+ if (rhs.has_value()) {
1742
+ this->construct(std::move(*rhs));
1743
+ } else {
1744
+ this->construct_error(std::move(rhs.error()));
1745
+ }
1746
+ }
1747
+
1748
+ template<class U,
1749
+ class G,
1750
+ detail::enable_if_t<(std::is_convertible<U&&, T>::value && std::is_convertible<G&&, E>::value)>* = nullptr,
1751
+ detail::expected_enable_from_other<T, E, U, G, U&&, G&&>* = nullptr>
1752
+ TL_EXPECTED_11_CONSTEXPR expected(expected<U, G>&& rhs)
1753
+ : ctor_base(detail::default_constructor_tag{})
1754
+ {
1755
+ if (rhs.has_value()) {
1756
+ this->construct(std::move(*rhs));
1757
+ } else {
1758
+ this->construct_error(std::move(rhs.error()));
1759
+ }
1760
+ }
1761
+
1762
+ template<class U = T,
1763
+ detail::enable_if_t<!std::is_convertible<U&&, T>::value>* = nullptr,
1764
+ detail::expected_enable_forward_value<T, E, U>* = nullptr>
1765
+ explicit TL_EXPECTED_MSVC2015_CONSTEXPR expected(U&& v)
1766
+ : expected(in_place, std::forward<U>(v))
1767
+ {
1768
+ }
1769
+
1770
+ template<class U = T,
1771
+ detail::enable_if_t<std::is_convertible<U&&, T>::value>* = nullptr,
1772
+ detail::expected_enable_forward_value<T, E, U>* = nullptr>
1773
+ TL_EXPECTED_MSVC2015_CONSTEXPR expected(U&& v)
1774
+ : expected(in_place, std::forward<U>(v))
1775
+ {
1776
+ }
1777
+
1778
+ template<class U = T,
1779
+ class G = T,
1780
+ detail::enable_if_t<std::is_nothrow_constructible<T, U&&>::value>* = nullptr,
1781
+ detail::enable_if_t<!std::is_void<G>::value>* = nullptr,
1782
+ detail::enable_if_t<(!std::is_same<expected<T, E>, detail::decay_t<U>>::value &&
1783
+ !detail::conjunction<std::is_scalar<T>, std::is_same<T, detail::decay_t<U>>>::value &&
1784
+ std::is_constructible<T, U>::value && std::is_assignable<G&, U>::value &&
1785
+ std::is_nothrow_move_constructible<E>::value)>* = nullptr>
1786
+ expected& operator=(U&& v)
1787
+ {
1788
+ if (has_value()) {
1789
+ val() = std::forward<U>(v);
1790
+ } else {
1791
+ err().~unexpected<E>();
1792
+ ::new (valptr()) T(std::forward<U>(v));
1793
+ this->m_has_val = true;
1794
+ }
1795
+
1796
+ return *this;
1797
+ }
1798
+
1799
+ template<class U = T,
1800
+ class G = T,
1801
+ detail::enable_if_t<!std::is_nothrow_constructible<T, U&&>::value>* = nullptr,
1802
+ detail::enable_if_t<!std::is_void<U>::value>* = nullptr,
1803
+ detail::enable_if_t<(!std::is_same<expected<T, E>, detail::decay_t<U>>::value &&
1804
+ !detail::conjunction<std::is_scalar<T>, std::is_same<T, detail::decay_t<U>>>::value &&
1805
+ std::is_constructible<T, U>::value && std::is_assignable<G&, U>::value &&
1806
+ std::is_nothrow_move_constructible<E>::value)>* = nullptr>
1807
+ expected& operator=(U&& v)
1808
+ {
1809
+ if (has_value()) {
1810
+ val() = std::forward<U>(v);
1811
+ } else {
1812
+ auto tmp = std::move(err());
1813
+ err().~unexpected<E>();
1814
+
1815
+ #ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
1816
+ try {
1817
+ ::new (valptr()) T(std::forward<U>(v));
1818
+ this->m_has_val = true;
1819
+ } catch (...) {
1820
+ err() = std::move(tmp);
1821
+ throw;
1822
+ }
1823
+ #else
1824
+ ::new (valptr()) T(std::forward<U>(v));
1825
+ this->m_has_val = true;
1826
+ #endif
1827
+ }
1828
+
1829
+ return *this;
1830
+ }
1831
+
1832
+ template<class G = E, detail::enable_if_t<std::is_nothrow_copy_constructible<G>::value && std::is_assignable<G&, G>::value>* = nullptr>
1833
+ expected& operator=(const unexpected<G>& rhs)
1834
+ {
1835
+ if (!has_value()) {
1836
+ err() = rhs;
1837
+ } else {
1838
+ this->destroy_val();
1839
+ ::new (errptr()) unexpected<E>(rhs);
1840
+ this->m_has_val = false;
1841
+ }
1842
+
1843
+ return *this;
1844
+ }
1845
+
1846
+ template<class G = E, detail::enable_if_t<std::is_nothrow_move_constructible<G>::value && std::is_move_assignable<G>::value>* = nullptr>
1847
+ expected& operator=(unexpected<G>&& rhs) noexcept
1848
+ {
1849
+ if (!has_value()) {
1850
+ err() = std::move(rhs);
1851
+ } else {
1852
+ this->destroy_val();
1853
+ ::new (errptr()) unexpected<E>(std::move(rhs));
1854
+ this->m_has_val = false;
1855
+ }
1856
+
1857
+ return *this;
1858
+ }
1859
+
1860
+ template<class... Args, detail::enable_if_t<std::is_nothrow_constructible<T, Args&&...>::value>* = nullptr>
1861
+ void emplace(Args&&... args)
1862
+ {
1863
+ if (has_value()) {
1864
+ val() = T(std::forward<Args>(args)...);
1865
+ } else {
1866
+ err().~unexpected<E>();
1867
+ ::new (valptr()) T(std::forward<Args>(args)...);
1868
+ this->m_has_val = true;
1869
+ }
1870
+ }
1871
+
1872
+ template<class... Args, detail::enable_if_t<!std::is_nothrow_constructible<T, Args&&...>::value>* = nullptr>
1873
+ void emplace(Args&&... args)
1874
+ {
1875
+ if (has_value()) {
1876
+ val() = T(std::forward<Args>(args)...);
1877
+ } else {
1878
+ auto tmp = std::move(err());
1879
+ err().~unexpected<E>();
1880
+
1881
+ #ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
1882
+ try {
1883
+ ::new (valptr()) T(std::forward<Args>(args)...);
1884
+ this->m_has_val = true;
1885
+ } catch (...) {
1886
+ err() = std::move(tmp);
1887
+ throw;
1888
+ }
1889
+ #else
1890
+ ::new (valptr()) T(std::forward<Args>(args)...);
1891
+ this->m_has_val = true;
1892
+ #endif
1893
+ }
1894
+ }
1895
+
1896
+ template<class U,
1897
+ class... Args,
1898
+ detail::enable_if_t<std::is_nothrow_constructible<T, std::initializer_list<U>&, Args&&...>::value>* = nullptr>
1899
+ void emplace(std::initializer_list<U> il, Args&&... args)
1900
+ {
1901
+ if (has_value()) {
1902
+ T t(il, std::forward<Args>(args)...);
1903
+ val() = std::move(t);
1904
+ } else {
1905
+ err().~unexpected<E>();
1906
+ ::new (valptr()) T(il, std::forward<Args>(args)...);
1907
+ this->m_has_val = true;
1908
+ }
1909
+ }
1910
+
1911
+ template<class U,
1912
+ class... Args,
1913
+ detail::enable_if_t<!std::is_nothrow_constructible<T, std::initializer_list<U>&, Args&&...>::value>* = nullptr>
1914
+ void emplace(std::initializer_list<U> il, Args&&... args)
1915
+ {
1916
+ if (has_value()) {
1917
+ T t(il, std::forward<Args>(args)...);
1918
+ val() = std::move(t);
1919
+ } else {
1920
+ auto tmp = std::move(err());
1921
+ err().~unexpected<E>();
1922
+
1923
+ #ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
1924
+ try {
1925
+ ::new (valptr()) T(il, std::forward<Args>(args)...);
1926
+ this->m_has_val = true;
1927
+ } catch (...) {
1928
+ err() = std::move(tmp);
1929
+ throw;
1930
+ }
1931
+ #else
1932
+ ::new (valptr()) T(il, std::forward<Args>(args)...);
1933
+ this->m_has_val = true;
1934
+ #endif
1935
+ }
1936
+ }
1937
+
1938
+ private:
1939
+ using t_is_void = std::true_type;
1940
+ using t_is_not_void = std::false_type;
1941
+ using t_is_nothrow_move_constructible = std::true_type;
1942
+ using move_constructing_t_can_throw = std::false_type;
1943
+ using e_is_nothrow_move_constructible = std::true_type;
1944
+ using move_constructing_e_can_throw = std::false_type;
1945
+
1946
+ void swap_where_both_have_value(expected& /*rhs*/, t_is_void) noexcept
1947
+ {
1948
+ // swapping void is a no-op
1949
+ }
1950
+
1951
+ void swap_where_both_have_value(expected& rhs, t_is_not_void)
1952
+ {
1953
+ using std::swap;
1954
+ swap(val(), rhs.val());
1955
+ }
1956
+
1957
+ void swap_where_only_one_has_value(expected& rhs, t_is_void) noexcept(std::is_nothrow_move_constructible<E>::value)
1958
+ {
1959
+ ::new (errptr()) unexpected_type(std::move(rhs.err()));
1960
+ rhs.err().~unexpected_type();
1961
+ std::swap(this->m_has_val, rhs.m_has_val);
1962
+ }
1963
+
1964
+ void swap_where_only_one_has_value(expected& rhs, t_is_not_void)
1965
+ {
1966
+ swap_where_only_one_has_value_and_t_is_not_void(
1967
+ rhs, typename std::is_nothrow_move_constructible<T>::type{}, typename std::is_nothrow_move_constructible<E>::type{});
1968
+ }
1969
+
1970
+ void swap_where_only_one_has_value_and_t_is_not_void(expected& rhs,
1971
+ t_is_nothrow_move_constructible,
1972
+ e_is_nothrow_move_constructible) noexcept
1973
+ {
1974
+ auto temp = std::move(val());
1975
+ val().~T();
1976
+ ::new (errptr()) unexpected_type(std::move(rhs.err()));
1977
+ rhs.err().~unexpected_type();
1978
+ ::new (rhs.valptr()) T(std::move(temp));
1979
+ std::swap(this->m_has_val, rhs.m_has_val);
1980
+ }
1981
+
1982
+ void swap_where_only_one_has_value_and_t_is_not_void(expected& rhs, t_is_nothrow_move_constructible, move_constructing_e_can_throw)
1983
+ {
1984
+ auto temp = std::move(val());
1985
+ val().~T();
1986
+ #ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
1987
+ try {
1988
+ ::new (errptr()) unexpected_type(std::move(rhs.err()));
1989
+ rhs.err().~unexpected_type();
1990
+ ::new (rhs.valptr()) T(std::move(temp));
1991
+ std::swap(this->m_has_val, rhs.m_has_val);
1992
+ } catch (...) {
1993
+ val() = std::move(temp);
1994
+ throw;
1995
+ }
1996
+ #else
1997
+ ::new (errptr()) unexpected_type(std::move(rhs.err()));
1998
+ rhs.err().~unexpected_type();
1999
+ ::new (rhs.valptr()) T(std::move(temp));
2000
+ std::swap(this->m_has_val, rhs.m_has_val);
2001
+ #endif
2002
+ }
2003
+
2004
+ void swap_where_only_one_has_value_and_t_is_not_void(expected& rhs, move_constructing_t_can_throw, t_is_nothrow_move_constructible)
2005
+ {
2006
+ auto temp = std::move(rhs.err());
2007
+ rhs.err().~unexpected_type();
2008
+ #ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
2009
+ try {
2010
+ ::new (rhs.valptr()) T(val());
2011
+ val().~T();
2012
+ ::new (errptr()) unexpected_type(std::move(temp));
2013
+ std::swap(this->m_has_val, rhs.m_has_val);
2014
+ } catch (...) {
2015
+ rhs.err() = std::move(temp);
2016
+ throw;
2017
+ }
2018
+ #else
2019
+ ::new (rhs.valptr()) T(val());
2020
+ val().~T();
2021
+ ::new (errptr()) unexpected_type(std::move(temp));
2022
+ std::swap(this->m_has_val, rhs.m_has_val);
2023
+ #endif
2024
+ }
2025
+
2026
+ public:
2027
+ template<class OT = T, class OE = E>
2028
+ detail::enable_if_t<detail::is_swappable<OT>::value && detail::is_swappable<OE>::value &&
2029
+ (std::is_nothrow_move_constructible<OT>::value || std::is_nothrow_move_constructible<OE>::value)>
2030
+ swap(expected& rhs) noexcept(std::is_nothrow_move_constructible<T>::value&& detail::is_nothrow_swappable<T>::value&&
2031
+ std::is_nothrow_move_constructible<E>::value&& detail::is_nothrow_swappable<E>::value)
2032
+ {
2033
+ if (has_value() && rhs.has_value()) {
2034
+ swap_where_both_have_value(rhs, typename std::is_void<T>::type{});
2035
+ } else if (!has_value() && rhs.has_value()) {
2036
+ rhs.swap(*this);
2037
+ } else if (has_value()) {
2038
+ swap_where_only_one_has_value(rhs, typename std::is_void<T>::type{});
2039
+ } else {
2040
+ using std::swap;
2041
+ swap(err(), rhs.err());
2042
+ }
2043
+ }
2044
+
2045
+ constexpr const T* operator->() const
2046
+ {
2047
+ return valptr();
2048
+ }
2049
+ TL_EXPECTED_11_CONSTEXPR T* operator->()
2050
+ {
2051
+ return valptr();
2052
+ }
2053
+
2054
+ template<class U = T, detail::enable_if_t<!std::is_void<U>::value>* = nullptr>
2055
+ constexpr const U& operator*() const&
2056
+ {
2057
+ return val();
2058
+ }
2059
+ template<class U = T, detail::enable_if_t<!std::is_void<U>::value>* = nullptr>
2060
+ TL_EXPECTED_11_CONSTEXPR U& operator*() &
2061
+ {
2062
+ return val();
2063
+ }
2064
+ template<class U = T, detail::enable_if_t<!std::is_void<U>::value>* = nullptr>
2065
+ constexpr const U&& operator*() const&&
2066
+ {
2067
+ return std::move(val());
2068
+ }
2069
+ template<class U = T, detail::enable_if_t<!std::is_void<U>::value>* = nullptr>
2070
+ TL_EXPECTED_11_CONSTEXPR U&& operator*() &&
2071
+ {
2072
+ return std::move(val());
2073
+ }
2074
+
2075
+ constexpr bool has_value() const noexcept
2076
+ {
2077
+ return this->m_has_val;
2078
+ }
2079
+ constexpr explicit operator bool() const noexcept
2080
+ {
2081
+ return this->m_has_val;
2082
+ }
2083
+
2084
+ template<class U = T, detail::enable_if_t<!std::is_void<U>::value>* = nullptr>
2085
+ TL_EXPECTED_11_CONSTEXPR const U& value() const&
2086
+ {
2087
+ if (!has_value())
2088
+ detail::throw_exception(bad_expected_access<E>(err().value()));
2089
+ return val();
2090
+ }
2091
+ template<class U = T, detail::enable_if_t<!std::is_void<U>::value>* = nullptr>
2092
+ TL_EXPECTED_11_CONSTEXPR U& value() &
2093
+ {
2094
+ if (!has_value())
2095
+ detail::throw_exception(bad_expected_access<E>(err().value()));
2096
+ return val();
2097
+ }
2098
+ template<class U = T, detail::enable_if_t<!std::is_void<U>::value>* = nullptr>
2099
+ TL_EXPECTED_11_CONSTEXPR const U&& value() const&&
2100
+ {
2101
+ if (!has_value())
2102
+ detail::throw_exception(bad_expected_access<E>(std::move(err()).value()));
2103
+ return std::move(val());
2104
+ }
2105
+ template<class U = T, detail::enable_if_t<!std::is_void<U>::value>* = nullptr>
2106
+ TL_EXPECTED_11_CONSTEXPR U&& value() &&
2107
+ {
2108
+ if (!has_value())
2109
+ detail::throw_exception(bad_expected_access<E>(std::move(err()).value()));
2110
+ return std::move(val());
2111
+ }
2112
+
2113
+ constexpr const E& error() const&
2114
+ {
2115
+ return err().value();
2116
+ }
2117
+ TL_EXPECTED_11_CONSTEXPR E& error() &
2118
+ {
2119
+ return err().value();
2120
+ }
2121
+ constexpr const E&& error() const&&
2122
+ {
2123
+ return std::move(err().value());
2124
+ }
2125
+ TL_EXPECTED_11_CONSTEXPR E&& error() &&
2126
+ {
2127
+ return std::move(err().value());
2128
+ }
2129
+
2130
+ template<class U>
2131
+ constexpr T value_or(U&& v) const&
2132
+ {
2133
+ static_assert(std::is_copy_constructible<T>::value && std::is_convertible<U&&, T>::value,
2134
+ "T must be copy-constructible and convertible to from U&&");
2135
+ return bool(*this) ? **this : static_cast<T>(std::forward<U>(v));
2136
+ }
2137
+ template<class U>
2138
+ TL_EXPECTED_11_CONSTEXPR T value_or(U&& v) &&
2139
+ {
2140
+ static_assert(std::is_move_constructible<T>::value && std::is_convertible<U&&, T>::value,
2141
+ "T must be move-constructible and convertible to from U&&");
2142
+ return bool(*this) ? std::move(**this) : static_cast<T>(std::forward<U>(v));
2143
+ }
2144
+ };
2145
+
2146
+ namespace detail
2147
+ {
2148
+ template<class Exp>
2149
+ using exp_t = typename detail::decay_t<Exp>::value_type;
2150
+ template<class Exp>
2151
+ using err_t = typename detail::decay_t<Exp>::error_type;
2152
+ template<class Exp, class Ret>
2153
+ using ret_t = expected<Ret, err_t<Exp>>;
2154
+
2155
+ #ifdef TL_EXPECTED_CXX14
2156
+ template<class Exp,
2157
+ class F,
2158
+ detail::enable_if_t<!std::is_void<exp_t<Exp>>::value>* = nullptr,
2159
+ class Ret = decltype(detail::invoke(std::declval<F>(), *std::declval<Exp>()))>
2160
+ constexpr auto
2161
+ and_then_impl(Exp&& exp, F&& f)
2162
+ {
2163
+ static_assert(detail::is_expected<Ret>::value, "F must return an expected");
2164
+
2165
+ return exp.has_value() ? detail::invoke(std::forward<F>(f), *std::forward<Exp>(exp)) : Ret(unexpect, std::forward<Exp>(exp).error());
2166
+ }
2167
+
2168
+ template<class Exp,
2169
+ class F,
2170
+ detail::enable_if_t<std::is_void<exp_t<Exp>>::value>* = nullptr,
2171
+ class Ret = decltype(detail::invoke(std::declval<F>()))>
2172
+ constexpr auto
2173
+ and_then_impl(Exp&& exp, F&& f)
2174
+ {
2175
+ static_assert(detail::is_expected<Ret>::value, "F must return an expected");
2176
+
2177
+ return exp.has_value() ? detail::invoke(std::forward<F>(f)) : Ret(unexpect, std::forward<Exp>(exp).error());
2178
+ }
2179
+ #else
2180
+ template<class>
2181
+ struct TC;
2182
+ template<class Exp,
2183
+ class F,
2184
+ class Ret = decltype(detail::invoke(std::declval<F>(), *std::declval<Exp>())),
2185
+ detail::enable_if_t<!std::is_void<exp_t<Exp>>::value>* = nullptr>
2186
+ auto
2187
+ and_then_impl(Exp&& exp, F&& f) -> Ret
2188
+ {
2189
+ static_assert(detail::is_expected<Ret>::value, "F must return an expected");
2190
+
2191
+ return exp.has_value() ? detail::invoke(std::forward<F>(f), *std::forward<Exp>(exp)) : Ret(unexpect, std::forward<Exp>(exp).error());
2192
+ }
2193
+
2194
+ template<class Exp,
2195
+ class F,
2196
+ class Ret = decltype(detail::invoke(std::declval<F>())),
2197
+ detail::enable_if_t<std::is_void<exp_t<Exp>>::value>* = nullptr>
2198
+ constexpr auto
2199
+ and_then_impl(Exp&& exp, F&& f) -> Ret
2200
+ {
2201
+ static_assert(detail::is_expected<Ret>::value, "F must return an expected");
2202
+
2203
+ return exp.has_value() ? detail::invoke(std::forward<F>(f)) : Ret(unexpect, std::forward<Exp>(exp).error());
2204
+ }
2205
+ #endif
2206
+
2207
+ #ifdef TL_EXPECTED_CXX14
2208
+ template<class Exp,
2209
+ class F,
2210
+ detail::enable_if_t<!std::is_void<exp_t<Exp>>::value>* = nullptr,
2211
+ class Ret = decltype(detail::invoke(std::declval<F>(), *std::declval<Exp>())),
2212
+ detail::enable_if_t<!std::is_void<Ret>::value>* = nullptr>
2213
+ constexpr auto
2214
+ expected_map_impl(Exp&& exp, F&& f)
2215
+ {
2216
+ using result = ret_t<Exp, detail::decay_t<Ret>>;
2217
+ return exp.has_value() ? result(detail::invoke(std::forward<F>(f), *std::forward<Exp>(exp)))
2218
+ : result(unexpect, std::forward<Exp>(exp).error());
2219
+ }
2220
+
2221
+ template<class Exp,
2222
+ class F,
2223
+ detail::enable_if_t<!std::is_void<exp_t<Exp>>::value>* = nullptr,
2224
+ class Ret = decltype(detail::invoke(std::declval<F>(), *std::declval<Exp>())),
2225
+ detail::enable_if_t<std::is_void<Ret>::value>* = nullptr>
2226
+ auto
2227
+ expected_map_impl(Exp&& exp, F&& f)
2228
+ {
2229
+ using result = expected<void, err_t<Exp>>;
2230
+ if (exp.has_value()) {
2231
+ detail::invoke(std::forward<F>(f), *std::forward<Exp>(exp));
2232
+ return result();
2233
+ }
2234
+
2235
+ return result(unexpect, std::forward<Exp>(exp).error());
2236
+ }
2237
+
2238
+ template<class Exp,
2239
+ class F,
2240
+ detail::enable_if_t<std::is_void<exp_t<Exp>>::value>* = nullptr,
2241
+ class Ret = decltype(detail::invoke(std::declval<F>())),
2242
+ detail::enable_if_t<!std::is_void<Ret>::value>* = nullptr>
2243
+ constexpr auto
2244
+ expected_map_impl(Exp&& exp, F&& f)
2245
+ {
2246
+ using result = ret_t<Exp, detail::decay_t<Ret>>;
2247
+ return exp.has_value() ? result(detail::invoke(std::forward<F>(f))) : result(unexpect, std::forward<Exp>(exp).error());
2248
+ }
2249
+
2250
+ template<class Exp,
2251
+ class F,
2252
+ detail::enable_if_t<std::is_void<exp_t<Exp>>::value>* = nullptr,
2253
+ class Ret = decltype(detail::invoke(std::declval<F>())),
2254
+ detail::enable_if_t<std::is_void<Ret>::value>* = nullptr>
2255
+ auto
2256
+ expected_map_impl(Exp&& exp, F&& f)
2257
+ {
2258
+ using result = expected<void, err_t<Exp>>;
2259
+ if (exp.has_value()) {
2260
+ detail::invoke(std::forward<F>(f));
2261
+ return result();
2262
+ }
2263
+
2264
+ return result(unexpect, std::forward<Exp>(exp).error());
2265
+ }
2266
+ #else
2267
+ template<class Exp,
2268
+ class F,
2269
+ detail::enable_if_t<!std::is_void<exp_t<Exp>>::value>* = nullptr,
2270
+ class Ret = decltype(detail::invoke(std::declval<F>(), *std::declval<Exp>())),
2271
+ detail::enable_if_t<!std::is_void<Ret>::value>* = nullptr>
2272
+
2273
+ constexpr auto
2274
+ expected_map_impl(Exp&& exp, F&& f) -> ret_t<Exp, detail::decay_t<Ret>>
2275
+ {
2276
+ using result = ret_t<Exp, detail::decay_t<Ret>>;
2277
+
2278
+ return exp.has_value() ? result(detail::invoke(std::forward<F>(f), *std::forward<Exp>(exp)))
2279
+ : result(unexpect, std::forward<Exp>(exp).error());
2280
+ }
2281
+
2282
+ template<class Exp,
2283
+ class F,
2284
+ detail::enable_if_t<!std::is_void<exp_t<Exp>>::value>* = nullptr,
2285
+ class Ret = decltype(detail::invoke(std::declval<F>(), *std::declval<Exp>())),
2286
+ detail::enable_if_t<std::is_void<Ret>::value>* = nullptr>
2287
+
2288
+ auto
2289
+ expected_map_impl(Exp&& exp, F&& f) -> expected<void, err_t<Exp>>
2290
+ {
2291
+ if (exp.has_value()) {
2292
+ detail::invoke(std::forward<F>(f), *std::forward<Exp>(exp));
2293
+ return {};
2294
+ }
2295
+
2296
+ return unexpected<err_t<Exp>>(std::forward<Exp>(exp).error());
2297
+ }
2298
+
2299
+ template<class Exp,
2300
+ class F,
2301
+ detail::enable_if_t<std::is_void<exp_t<Exp>>::value>* = nullptr,
2302
+ class Ret = decltype(detail::invoke(std::declval<F>())),
2303
+ detail::enable_if_t<!std::is_void<Ret>::value>* = nullptr>
2304
+
2305
+ constexpr auto
2306
+ expected_map_impl(Exp&& exp, F&& f) -> ret_t<Exp, detail::decay_t<Ret>>
2307
+ {
2308
+ using result = ret_t<Exp, detail::decay_t<Ret>>;
2309
+
2310
+ return exp.has_value() ? result(detail::invoke(std::forward<F>(f))) : result(unexpect, std::forward<Exp>(exp).error());
2311
+ }
2312
+
2313
+ template<class Exp,
2314
+ class F,
2315
+ detail::enable_if_t<std::is_void<exp_t<Exp>>::value>* = nullptr,
2316
+ class Ret = decltype(detail::invoke(std::declval<F>())),
2317
+ detail::enable_if_t<std::is_void<Ret>::value>* = nullptr>
2318
+
2319
+ auto
2320
+ expected_map_impl(Exp&& exp, F&& f) -> expected<void, err_t<Exp>>
2321
+ {
2322
+ if (exp.has_value()) {
2323
+ detail::invoke(std::forward<F>(f));
2324
+ return {};
2325
+ }
2326
+
2327
+ return unexpected<err_t<Exp>>(std::forward<Exp>(exp).error());
2328
+ }
2329
+ #endif
2330
+
2331
+ #if defined(TL_EXPECTED_CXX14) && !defined(TL_EXPECTED_GCC49) && !defined(TL_EXPECTED_GCC54) && !defined(TL_EXPECTED_GCC55)
2332
+ template<class Exp,
2333
+ class F,
2334
+ detail::enable_if_t<!std::is_void<exp_t<Exp>>::value>* = nullptr,
2335
+ class Ret = decltype(detail::invoke(std::declval<F>(), std::declval<Exp>().error())),
2336
+ detail::enable_if_t<!std::is_void<Ret>::value>* = nullptr>
2337
+ constexpr auto
2338
+ map_error_impl(Exp&& exp, F&& f)
2339
+ {
2340
+ using result = expected<exp_t<Exp>, detail::decay_t<Ret>>;
2341
+ return exp.has_value() ? result(*std::forward<Exp>(exp))
2342
+ : result(unexpect, detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error()));
2343
+ }
2344
+ template<class Exp,
2345
+ class F,
2346
+ detail::enable_if_t<!std::is_void<exp_t<Exp>>::value>* = nullptr,
2347
+ class Ret = decltype(detail::invoke(std::declval<F>(), std::declval<Exp>().error())),
2348
+ detail::enable_if_t<std::is_void<Ret>::value>* = nullptr>
2349
+ auto
2350
+ map_error_impl(Exp&& exp, F&& f)
2351
+ {
2352
+ using result = expected<exp_t<Exp>, monostate>;
2353
+ if (exp.has_value()) {
2354
+ return result(*std::forward<Exp>(exp));
2355
+ }
2356
+
2357
+ detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error());
2358
+ return result(unexpect, monostate{});
2359
+ }
2360
+ template<class Exp,
2361
+ class F,
2362
+ detail::enable_if_t<std::is_void<exp_t<Exp>>::value>* = nullptr,
2363
+ class Ret = decltype(detail::invoke(std::declval<F>(), std::declval<Exp>().error())),
2364
+ detail::enable_if_t<!std::is_void<Ret>::value>* = nullptr>
2365
+ constexpr auto
2366
+ map_error_impl(Exp&& exp, F&& f)
2367
+ {
2368
+ using result = expected<exp_t<Exp>, detail::decay_t<Ret>>;
2369
+ return exp.has_value() ? result() : result(unexpect, detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error()));
2370
+ }
2371
+ template<class Exp,
2372
+ class F,
2373
+ detail::enable_if_t<std::is_void<exp_t<Exp>>::value>* = nullptr,
2374
+ class Ret = decltype(detail::invoke(std::declval<F>(), std::declval<Exp>().error())),
2375
+ detail::enable_if_t<std::is_void<Ret>::value>* = nullptr>
2376
+ auto
2377
+ map_error_impl(Exp&& exp, F&& f)
2378
+ {
2379
+ using result = expected<exp_t<Exp>, monostate>;
2380
+ if (exp.has_value()) {
2381
+ return result();
2382
+ }
2383
+
2384
+ detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error());
2385
+ return result(unexpect, monostate{});
2386
+ }
2387
+ #else
2388
+ template<class Exp,
2389
+ class F,
2390
+ detail::enable_if_t<!std::is_void<exp_t<Exp>>::value>* = nullptr,
2391
+ class Ret = decltype(detail::invoke(std::declval<F>(), std::declval<Exp>().error())),
2392
+ detail::enable_if_t<!std::is_void<Ret>::value>* = nullptr>
2393
+ constexpr auto
2394
+ map_error_impl(Exp&& exp, F&& f) -> expected<exp_t<Exp>, detail::decay_t<Ret>>
2395
+ {
2396
+ using result = expected<exp_t<Exp>, detail::decay_t<Ret>>;
2397
+
2398
+ return exp.has_value() ? result(*std::forward<Exp>(exp))
2399
+ : result(unexpect, detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error()));
2400
+ }
2401
+
2402
+ template<class Exp,
2403
+ class F,
2404
+ detail::enable_if_t<!std::is_void<exp_t<Exp>>::value>* = nullptr,
2405
+ class Ret = decltype(detail::invoke(std::declval<F>(), std::declval<Exp>().error())),
2406
+ detail::enable_if_t<std::is_void<Ret>::value>* = nullptr>
2407
+ auto
2408
+ map_error_impl(Exp&& exp, F&& f) -> expected<exp_t<Exp>, monostate>
2409
+ {
2410
+ using result = expected<exp_t<Exp>, monostate>;
2411
+ if (exp.has_value()) {
2412
+ return result(*std::forward<Exp>(exp));
2413
+ }
2414
+
2415
+ detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error());
2416
+ return result(unexpect, monostate{});
2417
+ }
2418
+
2419
+ template<class Exp,
2420
+ class F,
2421
+ detail::enable_if_t<std::is_void<exp_t<Exp>>::value>* = nullptr,
2422
+ class Ret = decltype(detail::invoke(std::declval<F>(), std::declval<Exp>().error())),
2423
+ detail::enable_if_t<!std::is_void<Ret>::value>* = nullptr>
2424
+ constexpr auto
2425
+ map_error_impl(Exp&& exp, F&& f) -> expected<exp_t<Exp>, detail::decay_t<Ret>>
2426
+ {
2427
+ using result = expected<exp_t<Exp>, detail::decay_t<Ret>>;
2428
+
2429
+ return exp.has_value() ? result() : result(unexpect, detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error()));
2430
+ }
2431
+
2432
+ template<class Exp,
2433
+ class F,
2434
+ detail::enable_if_t<std::is_void<exp_t<Exp>>::value>* = nullptr,
2435
+ class Ret = decltype(detail::invoke(std::declval<F>(), std::declval<Exp>().error())),
2436
+ detail::enable_if_t<std::is_void<Ret>::value>* = nullptr>
2437
+ auto
2438
+ map_error_impl(Exp&& exp, F&& f) -> expected<exp_t<Exp>, monostate>
2439
+ {
2440
+ using result = expected<exp_t<Exp>, monostate>;
2441
+ if (exp.has_value()) {
2442
+ return result();
2443
+ }
2444
+
2445
+ detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error());
2446
+ return result(unexpect, monostate{});
2447
+ }
2448
+ #endif
2449
+
2450
+ #ifdef TL_EXPECTED_CXX14
2451
+ template<class Exp,
2452
+ class F,
2453
+ class Ret = decltype(detail::invoke(std::declval<F>(), std::declval<Exp>().error())),
2454
+ detail::enable_if_t<!std::is_void<Ret>::value>* = nullptr>
2455
+ constexpr auto
2456
+ or_else_impl(Exp&& exp, F&& f)
2457
+ {
2458
+ static_assert(detail::is_expected<Ret>::value, "F must return an expected");
2459
+ return exp.has_value() ? std::forward<Exp>(exp) : detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error());
2460
+ }
2461
+
2462
+ template<class Exp,
2463
+ class F,
2464
+ class Ret = decltype(detail::invoke(std::declval<F>(), std::declval<Exp>().error())),
2465
+ detail::enable_if_t<std::is_void<Ret>::value>* = nullptr>
2466
+ detail::decay_t<Exp>
2467
+ or_else_impl(Exp&& exp, F&& f)
2468
+ {
2469
+ return exp.has_value() ? std::forward<Exp>(exp)
2470
+ : (detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error()), std::forward<Exp>(exp));
2471
+ }
2472
+ #else
2473
+ template<class Exp,
2474
+ class F,
2475
+ class Ret = decltype(detail::invoke(std::declval<F>(), std::declval<Exp>().error())),
2476
+ detail::enable_if_t<!std::is_void<Ret>::value>* = nullptr>
2477
+ auto
2478
+ or_else_impl(Exp&& exp, F&& f) -> Ret
2479
+ {
2480
+ static_assert(detail::is_expected<Ret>::value, "F must return an expected");
2481
+ return exp.has_value() ? std::forward<Exp>(exp) : detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error());
2482
+ }
2483
+
2484
+ template<class Exp,
2485
+ class F,
2486
+ class Ret = decltype(detail::invoke(std::declval<F>(), std::declval<Exp>().error())),
2487
+ detail::enable_if_t<std::is_void<Ret>::value>* = nullptr>
2488
+ detail::decay_t<Exp>
2489
+ or_else_impl(Exp&& exp, F&& f)
2490
+ {
2491
+ return exp.has_value() ? std::forward<Exp>(exp)
2492
+ : (detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error()), std::forward<Exp>(exp));
2493
+ }
2494
+ #endif
2495
+ } // namespace detail
2496
+
2497
+ template<class T, class E, class U, class F>
2498
+ constexpr bool
2499
+ operator==(const expected<T, E>& lhs, const expected<U, F>& rhs)
2500
+ {
2501
+ return (lhs.has_value() != rhs.has_value()) ? false : (!lhs.has_value() ? lhs.error() == rhs.error() : *lhs == *rhs);
2502
+ }
2503
+ template<class T, class E, class U, class F>
2504
+ constexpr bool
2505
+ operator!=(const expected<T, E>& lhs, const expected<U, F>& rhs)
2506
+ {
2507
+ return (lhs.has_value() != rhs.has_value()) ? true : (!lhs.has_value() ? lhs.error() != rhs.error() : *lhs != *rhs);
2508
+ }
2509
+
2510
+ template<class T, class E, class U>
2511
+ constexpr bool
2512
+ operator==(const expected<T, E>& x, const U& v)
2513
+ {
2514
+ return x.has_value() ? *x == v : false;
2515
+ }
2516
+ template<class T, class E, class U>
2517
+ constexpr bool
2518
+ operator==(const U& v, const expected<T, E>& x)
2519
+ {
2520
+ return x.has_value() ? *x == v : false;
2521
+ }
2522
+ template<class T, class E, class U>
2523
+ constexpr bool
2524
+ operator!=(const expected<T, E>& x, const U& v)
2525
+ {
2526
+ return x.has_value() ? *x != v : true;
2527
+ }
2528
+ template<class T, class E, class U>
2529
+ constexpr bool
2530
+ operator!=(const U& v, const expected<T, E>& x)
2531
+ {
2532
+ return x.has_value() ? *x != v : true;
2533
+ }
2534
+
2535
+ template<class T, class E>
2536
+ constexpr bool
2537
+ operator==(const expected<T, E>& x, const unexpected<E>& e)
2538
+ {
2539
+ return x.has_value() ? false : x.error() == e.value();
2540
+ }
2541
+ template<class T, class E>
2542
+ constexpr bool
2543
+ operator==(const unexpected<E>& e, const expected<T, E>& x)
2544
+ {
2545
+ return x.has_value() ? false : x.error() == e.value();
2546
+ }
2547
+ template<class T, class E>
2548
+ constexpr bool
2549
+ operator!=(const expected<T, E>& x, const unexpected<E>& e)
2550
+ {
2551
+ return x.has_value() ? true : x.error() != e.value();
2552
+ }
2553
+ template<class T, class E>
2554
+ constexpr bool
2555
+ operator!=(const unexpected<E>& e, const expected<T, E>& x)
2556
+ {
2557
+ return x.has_value() ? true : x.error() != e.value();
2558
+ }
2559
+
2560
+ template<class T,
2561
+ class E,
2562
+ detail::enable_if_t<(std::is_void<T>::value || std::is_move_constructible<T>::value) && detail::is_swappable<T>::value &&
2563
+ std::is_move_constructible<E>::value && detail::is_swappable<E>::value>* = nullptr>
2564
+ void
2565
+ swap(expected<T, E>& lhs, expected<T, E>& rhs) noexcept(noexcept(lhs.swap(rhs)))
2566
+ {
2567
+ lhs.swap(rhs);
2568
+ }
2569
+ } // namespace tl
2570
+
2571
+ #endif