@@ -279,8 +279,8 @@ class _LIBCPP_TEMPLATE_VIS vector<bool, _Allocator> {
279
279
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_reference operator [](size_type __n) const {
280
280
return __make_ref (__n);
281
281
}
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 ;
284
284
285
285
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 reference front () { return __make_ref (0 ); }
286
286
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_reference front () const { return __make_ref (0 ); }
@@ -853,14 +853,15 @@ _LIBCPP_CONSTEXPR_SINCE_CXX20 void vector<bool, _Allocator>::shrink_to_fit() _NO
853
853
}
854
854
855
855
template <class _Allocator >
856
- typename vector<bool , _Allocator>::reference vector<bool , _Allocator>::at (size_type __n) {
856
+ _LIBCPP_CONSTEXPR_SINCE_CXX20 typename vector<bool , _Allocator>::reference vector<bool , _Allocator>::at (size_type __n) {
857
857
if (__n >= size ())
858
858
this ->__throw_out_of_range ();
859
859
return (*this )[__n];
860
860
}
861
861
862
862
template <class _Allocator >
863
- typename vector<bool , _Allocator>::const_reference vector<bool , _Allocator>::at (size_type __n) const {
863
+ _LIBCPP_CONSTEXPR_SINCE_CXX20 typename vector<bool , _Allocator>::const_reference
864
+ vector<bool , _Allocator>::at (size_type __n) const {
864
865
if (__n >= size ())
865
866
this ->__throw_out_of_range ();
866
867
return (*this )[__n];
0 commit comments