Commit 5930a041 authored by Dominik Charousset's avatar Dominik Charousset

Add missing member function span::subspan

parent b3478a09
......@@ -168,6 +168,10 @@ public:
return {begin_ + offset, num_bytes};
}
constexpr span subspan(size_t offset) const {
return {begin_ + offset, size_ - offset};
}
constexpr span first(size_t num_bytes) const {
return {begin_, num_bytes};
}
......
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