Laszlo Ersek
607abe96e8
test/sstable: merge test_using_reusable_sst*()
...
All lambdas passed to test_using_reusable_sst() conform to the prototype
void (test_env&, sstable_ptr)
All lambdas passed to test_using_reusable_sst_returning() conform to the
prototype
NON_VOID (test_env&, sstable_ptr)
The common parameter list of both prototypes can be expressed with the
concept
std::invocable<test_env&, sstable_ptr>
Once a "Func" template parameter (i.e., function type) satisfying this
concept is taken, then "Func"'s void or non-void return type can be
commonly expressed with
std::invoke_result_t<Func, test_env&, sstable_ptr>
In turn, test_env::do_with_async_returning<...> can be instantiated with
this return type, even if it happens to be "void".
([stmt.return] specifies, "[a] return statement with an operand of type
void shall be used only in a function that has a cv void return type",
meaning that
return func(env)
will do the right thing in the body of
test_env::do_with_async_returning<void>().)
Merge test_using_reusable_sst() and test_using_reusable_sst_returning()
into one. Preserve the function name from the former, and the
test_env::do_with_async_returning<...>() call from the latter.
Suggested-by: Avi Kivity <avi@scylladb.com >
Signed-off-by: Laszlo Ersek <laszlo.ersek@scylladb.com >
Closes scylladb/scylladb#20090
2024-08-12 17:52:01 +03:00
..
2024-02-06 13:22:16 +02:00
2024-02-06 13:22:16 +02:00
2024-05-20 12:56:20 +03:00
2024-06-21 19:20:27 +03:00
2024-02-06 13:22:16 +02:00
2024-07-26 08:15:11 +03:00
2024-08-05 08:23:35 +03:00
2024-02-02 22:12:57 +08:00
2024-08-05 08:23:35 +03:00
2024-06-17 17:33:55 +03:00
2024-08-05 08:23:35 +03:00
2024-02-02 22:12:57 +08:00
2024-02-06 13:22:16 +02:00
2024-05-02 19:37:04 +03:00
2024-02-06 13:22:16 +02:00
2024-08-05 08:23:35 +03:00
2024-08-05 08:23:35 +03:00
2024-02-02 22:12:57 +08:00
2024-06-14 13:47:10 +05:30
2024-06-25 12:08:11 +03:00
2024-07-16 20:42:50 +05:30
2024-05-20 12:56:20 +03:00
2024-06-17 17:33:55 +03:00
2024-08-05 08:23:35 +03:00
2024-08-02 14:38:46 +02:00
2024-05-26 12:32:43 +08:00
2024-06-07 06:44:59 +08:00
2024-01-11 08:37:56 +02:00
2024-05-20 12:56:20 +03:00
2024-05-20 12:56:20 +03:00
2024-08-05 08:23:35 +03:00
2024-02-06 13:22:16 +02:00
2024-08-02 14:38:46 +02:00
2024-02-06 13:22:16 +02:00
2024-08-05 08:23:35 +03:00
2024-06-21 07:12:06 +03:00
2024-08-11 10:26:43 +03:00
2024-02-06 13:22:16 +02:00
2024-01-18 12:50:06 +02:00
2024-02-06 13:22:16 +02:00
2024-04-19 07:44:07 +03:00
2024-05-20 12:56:20 +03:00
2024-02-06 13:22:16 +02:00
2024-02-06 13:22:16 +02:00
2024-08-05 08:23:35 +03:00
2024-05-26 12:32:43 +08:00
2024-05-05 23:31:48 +03:00
2024-02-06 13:22:16 +02:00
2024-08-05 08:23:35 +03:00
2024-06-21 07:12:06 +03:00
2024-05-20 12:56:20 +03:00
2024-04-19 22:56:16 +08:00
2024-07-31 09:18:54 +02:00
2024-01-11 08:37:56 +02:00
2024-06-19 23:19:33 +02:00
2024-08-05 08:23:35 +03:00
2024-07-16 20:42:50 +05:30
2024-05-05 23:31:48 +03:00
2024-02-06 13:22:16 +02:00
2024-02-06 13:22:16 +02:00
2024-02-02 22:12:57 +08:00
2024-08-05 08:23:35 +03:00
2024-08-05 08:23:35 +03:00
2024-08-05 08:23:35 +03:00
2024-02-02 22:12:57 +08:00
2024-08-05 08:23:35 +03:00
2024-08-05 08:23:35 +03:00
2024-08-05 08:23:35 +03:00
2024-08-11 13:52:35 +03:00
2024-02-06 13:22:16 +02:00
2024-08-05 08:23:35 +03:00
2024-06-21 07:12:06 +03:00
2024-08-05 08:23:35 +03:00
2024-08-05 08:23:35 +03:00
2024-08-05 08:23:35 +03:00
2024-08-06 08:56:28 -04:00
2024-06-21 07:12:06 +03:00
2024-08-05 08:23:35 +03:00
2024-08-05 08:23:35 +03:00
2024-05-26 12:32:43 +08:00
2024-02-06 13:22:16 +02:00
2024-08-05 08:23:35 +03:00
2024-05-16 00:28:47 +02:00
2024-01-11 14:33:47 +08:00
2024-06-21 07:12:06 +03:00
2024-05-26 12:32:43 +08:00
2024-03-11 11:37:48 +02:00
2024-08-05 08:23:35 +03:00
2024-06-21 07:12:06 +03:00
2024-04-19 22:56:16 +08:00
2024-02-06 13:22:16 +02:00
2024-08-05 08:23:35 +03:00
2024-06-04 15:43:04 +02:00
2024-08-05 08:23:35 +03:00
2024-08-05 08:23:35 +03:00
2024-08-11 09:53:19 -04:00
2024-06-21 07:12:06 +03:00
2024-06-21 07:12:06 +03:00
2024-03-26 15:31:18 +02:00
2024-08-05 08:23:35 +03:00
2024-06-18 15:55:22 +08:00
2024-08-08 10:42:09 +02:00
2024-04-19 22:57:36 +08:00
2024-05-27 17:34:38 +03:00
2024-05-16 13:30:03 +02:00
2024-08-05 08:23:35 +03:00
2024-08-12 15:09:58 +03:00
2024-08-05 08:23:35 +03:00
2024-08-05 08:23:35 +03:00
2024-07-28 17:26:31 +03:00
2024-02-02 22:12:57 +08:00
2024-06-21 07:12:06 +03:00
2024-02-02 22:12:57 +08:00
2024-06-21 07:12:06 +03:00
2024-06-21 07:12:06 +03:00
2024-08-12 17:52:01 +03:00
2024-08-05 08:23:35 +03:00
2024-06-18 23:36:30 +05:30
2024-05-26 12:32:43 +08:00
2024-04-19 22:56:16 +08:00
2024-05-03 11:34:23 +03:00
2024-07-19 13:15:57 +05:30
2024-02-06 13:22:16 +02:00
2024-08-11 09:53:19 -04:00
2024-04-19 22:57:36 +08:00
2024-05-27 17:34:38 +03:00
2024-02-06 13:22:16 +02:00
2024-02-06 13:22:16 +02:00
2024-06-04 15:43:04 +02:00
2024-06-18 15:55:22 +08:00
2024-05-26 12:32:43 +08:00
2024-04-19 22:56:16 +08:00
2024-03-26 13:38:37 +08:00
2024-06-21 07:12:06 +03:00
2024-08-02 14:38:46 +02:00
2024-05-05 23:31:48 +03:00
2024-05-05 23:31:48 +03:00
2024-06-06 10:45:13 +02:00
2024-02-06 13:22:16 +02:00
2024-02-06 13:22:16 +02:00
2024-02-06 13:22:16 +02:00
2024-05-26 12:32:43 +08:00