mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
remove brackets around this deref for span_iterator operators
This commit is contained in:
parent
7fcc142ffc
commit
ff5f7973a2
@ -163,7 +163,7 @@ namespace details
|
|||||||
|
|
||||||
constexpr span_iterator operator++(int) noexcept
|
constexpr span_iterator operator++(int) noexcept
|
||||||
{
|
{
|
||||||
auto ret{*this};
|
span_iterator ret = *this;
|
||||||
++*this;
|
++*this;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -178,7 +178,7 @@ namespace details
|
|||||||
|
|
||||||
constexpr span_iterator operator--(int) noexcept
|
constexpr span_iterator operator--(int) noexcept
|
||||||
{
|
{
|
||||||
auto ret{*this};
|
span_iterator ret = *this;
|
||||||
--*this;
|
--*this;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -194,7 +194,7 @@ namespace details
|
|||||||
|
|
||||||
constexpr span_iterator operator+(const difference_type n) const noexcept
|
constexpr span_iterator operator+(const difference_type n) const noexcept
|
||||||
{
|
{
|
||||||
auto ret{*this};
|
span_iterator ret = *this;
|
||||||
return ret += n;
|
return ret += n;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -215,7 +215,7 @@ namespace details
|
|||||||
|
|
||||||
constexpr span_iterator operator-(const difference_type n) const noexcept
|
constexpr span_iterator operator-(const difference_type n) const noexcept
|
||||||
{
|
{
|
||||||
auto ret{*this};
|
span_iterator ret = *this;
|
||||||
return ret -= n;
|
return ret -= n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user