mirror of
https://github.com/microsoft/GSL.git
synced 2025-03-27 23:38:29 -04:00
Tidied up assertion.
This commit is contained in:
parent
30a038ca6a
commit
520c72d777
@ -212,8 +212,8 @@ public:
|
|||||||
|
|
||||||
constexpr const_span_iterator& operator+=(difference_type n) noexcept
|
constexpr const_span_iterator& operator+=(difference_type n) noexcept
|
||||||
{
|
{
|
||||||
|
Expects(span_ && (index_ + n) >= 0 && (index_ + n) <= span_->length());
|
||||||
index_ += n;
|
index_ += n;
|
||||||
Expects(span_ && index_ >= 0 && index_ <= span_->length());
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user