mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Merge branch 'dev/jomaples/unsigned' of https://github.com/jordanmaples/gsl into dev/jomaples/unsigned
This commit is contained in:
commit
2b7a8f1f2f
@ -187,7 +187,7 @@ namespace details
|
||||
{
|
||||
Expects(begin_ && current_ && end_);
|
||||
if (n > 0) Expects(end_ - current_ >= n);
|
||||
if (n < 0) Expects(end_ - current_ >= -n);
|
||||
if (n < 0) Expects(current_ - begin_ >= -n);
|
||||
current_ += n;
|
||||
return *this;
|
||||
}
|
||||
@ -294,7 +294,7 @@ namespace details
|
||||
}
|
||||
|
||||
constexpr void _Verify_offset(const difference_type n) const noexcept
|
||||
{ // test that the iterator *this + n is a valid range in an STL
|
||||
{ // test that *this + n is within the span of this iterator STL
|
||||
// algorithm call
|
||||
Expects((current_ + n) >= begin_ && (current_ + n) <= end_);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user