Commit 15501135 authored by Max Kellermann's avatar Max Kellermann

util/DynamicFifoBuffer: add nullptr constructor overload

parent a82d61a5
......@@ -46,6 +46,12 @@ public:
using typename ForeignFifoBuffer<T>::Range;
/**
* Construct without allocating a buffer.
*/
explicit constexpr DynamicFifoBuffer(std::nullptr_t n) noexcept
:ForeignFifoBuffer<T>(n) {}
/**
* Allocate a buffer with the given capacity.
*/
explicit DynamicFifoBuffer(size_type _capacity) noexcept
......
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