noexcepting new functions

This commit is contained in:
Jordan Maples [MSFT] 2020-01-09 12:13:12 -08:00
parent 6eccc81c5f
commit c7f9b3301a

View File

@ -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];