compound: add explode_fragmented
We will use it in the next patches in this series.
This commit is contained in:
8
keys.hh
8
keys.hh
@@ -252,6 +252,14 @@ public:
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<managed_bytes> explode_fragmented() const {
|
||||
std::vector<managed_bytes> result;
|
||||
for (managed_bytes_view c : components()) {
|
||||
result.emplace_back(managed_bytes(c));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
struct tri_compare {
|
||||
typename TopLevel::compound _t;
|
||||
tri_compare(const schema& s) : _t(get_compound_type(s)) {}
|
||||
|
||||
Reference in New Issue
Block a user