diff --git a/alloc/raw/linear.hpp b/alloc/raw/linear.hpp index a63f73aa..dd5f0167 100644 --- a/alloc/raw/linear.hpp +++ b/alloc/raw/linear.hpp @@ -52,6 +52,13 @@ namespace util::alloc::raw { size_t offset (const void*) const; + template + size_t + offset (util::view ptr) const + { + return offset (ptr.data ()); + } + void reset (void); size_t capacity (void) const;