@@ -279,8 +279,8 @@ class _LIBCPP_TEMPLATE_VIS vector<bool, _Allocator> {
279279 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_reference operator [](size_type __n) const {
280280 return __make_ref (__n);
281281 }
282- _LIBCPP_HIDE_FROM_ABI reference at (size_type __n);
283- _LIBCPP_HIDE_FROM_ABI const_reference at (size_type __n) const ;
282+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 reference at (size_type __n);
283+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_reference at (size_type __n) const ;
284284
285285 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 reference front () { return __make_ref (0 ); }
286286 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_reference front () const { return __make_ref (0 ); }
@@ -854,14 +854,15 @@ _LIBCPP_CONSTEXPR_SINCE_CXX20 void vector<bool, _Allocator>::shrink_to_fit() _NO
854854}
855855
856856template <class _Allocator >
857- typename vector<bool , _Allocator>::reference vector<bool , _Allocator>::at (size_type __n) {
857+ _LIBCPP_CONSTEXPR_SINCE_CXX20 typename vector<bool , _Allocator>::reference vector<bool , _Allocator>::at (size_type __n) {
858858 if (__n >= size ())
859859 this ->__throw_out_of_range ();
860860 return (*this )[__n];
861861}
862862
863863template <class _Allocator >
864- typename vector<bool , _Allocator>::const_reference vector<bool , _Allocator>::at (size_type __n) const {
864+ _LIBCPP_CONSTEXPR_SINCE_CXX20 typename vector<bool , _Allocator>::const_reference
865+ vector<bool , _Allocator>::at (size_type __n) const {
865866 if (__n >= size ())
866867 this ->__throw_out_of_range ();
867868 return (*this )[__n];
0 commit comments