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:
Piotr Sarna
2020-08-26 09:35:53 +02:00
parent a4b07955c5
commit 94a258d06c

View File

@@ -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;
};