From c7f9b3301ac10f464fff0a7d2d3f5e0eb4e24b97 Mon Sep 17 00:00:00 2001 From: "Jordan Maples [MSFT]" <49793787+JordanMaples@users.noreply.github.com> Date: Thu, 9 Jan 2020 12:13:12 -0800 Subject: [PATCH] noexcepting new functions --- include/gsl/span | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gsl/span b/include/gsl/span index c16ded4..8536cf7 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -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];