mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-04 05:53:13 +00:00
std::function<> requires the functor it wraps to be copyable, which is an unnecessarily strict requirement. To relax this, we use noncopyable_function<> instead. Since the former seems to lack some disambiguation magic of the latter, we add `_v1` and `_v2` postfixes to manually disambiguate.
25 lines
637 B
C++
25 lines
637 B
C++
/*
|
|
* Copyright (C) 2022-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
#include "schema_fwd.hh"
|
|
#include <functional>
|
|
#include <seastar/core/future.hh>
|
|
#include "mutation_fragment_fwd.hh"
|
|
|
|
using namespace seastar;
|
|
|
|
class flat_mutation_reader_v2;
|
|
class reader_permit;
|
|
|
|
flat_mutation_reader_v2
|
|
make_generating_reader_v2(schema_ptr s, reader_permit permit, noncopyable_function<future<mutation_fragment_v2_opt> ()> get_next_fragment);
|
|
|
|
flat_mutation_reader_v2
|
|
make_generating_reader_v1(schema_ptr s, reader_permit permit, noncopyable_function<future<mutation_fragment_opt> ()> get_next_fragment);
|