mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-25 01:01:58 -05:00
remove comparison to dynamic_extent
This commit is contained in:
parent
3e40b3fa4b
commit
d9d6ea8196
@ -517,13 +517,13 @@ public:
|
||||
|
||||
constexpr reference front() const noexcept
|
||||
{
|
||||
Expects(size() != dynamic_extent && size() > 0);
|
||||
Expects(size() > 0);
|
||||
return data()[0];
|
||||
}
|
||||
|
||||
constexpr reference back() const noexcept
|
||||
{
|
||||
Expects(size() != dynamic_extent && size() > 0);
|
||||
Expects(size() > 0);
|
||||
return data()[size() - 1];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user