Fix #717 - Add empty() to strided_span (#718)

This commit is contained in:
Stephan Dollberg
2018-08-17 19:47:03 +01:00
committed by Anna Gringauze
parent 55aad0ab6d
commit 86be2366c7
2 changed files with 5 additions and 0 deletions

View File

@ -1931,6 +1931,8 @@ public:
constexpr pointer data() const noexcept { return data_; }
constexpr bool empty() const noexcept { return this->size() == 0; }
constexpr explicit operator bool() const noexcept { return data_ != nullptr; }
constexpr iterator begin() const { return iterator{this, true}; }