mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Gnilleps
This commit is contained in:
parent
1da082353f
commit
a73c536ea1
@ -269,7 +269,7 @@ namespace details
|
|||||||
&& lhs.index_ <= rhs.index_); // range must not be transposed
|
&& lhs.index_ <= rhs.index_); // range must not be transposed
|
||||||
}
|
}
|
||||||
|
|
||||||
cosntexpr void _Verify_offset(const difference_type n) const noexcpt
|
cosntexpr void _Verify_offset(const difference_type n) const noexcept
|
||||||
{ // test that the iterator *this + n is a valid range in an STL
|
{ // test that the iterator *this + n is a valid range in an STL
|
||||||
// algorithm call
|
// algorithm call
|
||||||
Expects((index_ + n) >= 0 && (index_ + n) <= span_->size());
|
Expects((index_ + n) >= 0 && (index_ + n) <= span_->size());
|
||||||
@ -288,7 +288,7 @@ namespace details
|
|||||||
|
|
||||||
constexpr void _Seek_to(const pointer p) noexcept
|
constexpr void _Seek_to(const pointer p) noexcept
|
||||||
{ // adjust the position of *this to previously verified location p
|
{ // adjust the position of *this to previously verified location p
|
||||||
// after _Unwrap
|
// after _Unwrapped
|
||||||
index_ = p - span_->data();
|
index_ = p - span_->data();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user