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
db2134485a
@ -207,7 +207,7 @@ namespace details
|
|||||||
constexpr span_iterator& operator-=(const difference_type n) noexcept
|
constexpr span_iterator& operator-=(const difference_type n) noexcept
|
||||||
{
|
{
|
||||||
Expects(begin_ && end_ && current_);
|
Expects(begin_ && end_ && current_);
|
||||||
if (n > 0) Expects(end_ - current_ >= n);
|
if (n > 0) Expects(current_ - begin_ >= n);
|
||||||
if (n < 0) Expects(end_ - current_ >= -n);
|
if (n < 0) Expects(end_ - current_ >= -n);
|
||||||
current_ -= n;
|
current_ -= n;
|
||||||
return *this;
|
return *this;
|
||||||
|
Loading…
Reference in New Issue
Block a user