mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Removed some redundant parens.
This commit is contained in:
parent
d9d6ff0121
commit
25ff7eca1f
@ -254,9 +254,7 @@ span_iterator<Span> operator+(typename span_iterator<Span>::difference_type n,
|
|||||||
template <typename Span>
|
template <typename Span>
|
||||||
span_iterator<Span> operator-(typename span_iterator<Span>::difference_type n,
|
span_iterator<Span> operator-(typename span_iterator<Span>::difference_type n,
|
||||||
const span_iterator<Span>& rhs) noexcept
|
const span_iterator<Span>& rhs) noexcept
|
||||||
{
|
{ return rhs - n; }
|
||||||
return rhs - n;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace details
|
} // namespace details
|
||||||
@ -289,7 +287,7 @@ public:
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
constexpr span(pointer ptr, index_type count) : storage_(ptr, count)
|
constexpr span(pointer ptr, index_type count) : storage_(ptr, count)
|
||||||
{ Expects(((!ptr && count == 0) || (ptr && count >= 0))); }
|
{ Expects((!ptr && count == 0) || (ptr && count >= 0)); }
|
||||||
|
|
||||||
constexpr span(pointer firstElem, pointer lastElem)
|
constexpr span(pointer firstElem, pointer lastElem)
|
||||||
: storage_(firstElem, std::distance(firstElem, lastElem))
|
: storage_(firstElem, std::distance(firstElem, lastElem))
|
||||||
|
Loading…
Reference in New Issue
Block a user