mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
noexcepting new functions
This commit is contained in:
parent
6eccc81c5f
commit
c7f9b3301a
@ -513,13 +513,13 @@ public:
|
||||
constexpr reference at(index_type idx) const { return this->operator[](idx); }
|
||||
constexpr reference operator()(index_type idx) const { return this->operator[](idx); }
|
||||
|
||||
constexpr reference front() const
|
||||
constexpr reference front() const noexcept
|
||||
{
|
||||
Expects(size() > 0);
|
||||
return data()[0];
|
||||
}
|
||||
|
||||
constexpr reference back() const
|
||||
constexpr reference back() const noexcept
|
||||
{
|
||||
Expects(size() > 0);
|
||||
return data()[size() - 1];
|
||||
|
Loading…
Reference in New Issue
Block a user