mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 11:10:40 +00:00
cql3: allow moving data out of raw_value
in order to be able to elide copying when transferring data from raw_value.
This commit is contained in:
@@ -169,6 +169,11 @@ public:
|
||||
const bytes& operator*() const {
|
||||
return std::get<bytes>(_data);
|
||||
}
|
||||
bytes&& extract_value() && {
|
||||
auto b = std::get_if<bytes>(&_data);
|
||||
assert(b);
|
||||
return std::move(*b);
|
||||
}
|
||||
raw_value_view to_view() const;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user