Commit a68acf5c authored by Max Kellermann's avatar Max Kellermann

util/ConstBuffer: add FromVoid(), ToVoid() to "void" specialization

Provide the full API.
parent 707d379b
......@@ -63,6 +63,14 @@ struct ConstBuffer<void> {
return ConstBuffer(nullptr, 0);
}
constexpr static ConstBuffer<void> FromVoid(ConstBuffer<void> other) {
return other;
}
constexpr ConstBuffer<void> ToVoid() const {
return *this;
}
constexpr bool IsNull() const {
return data == nullptr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment