@@ -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 ); }
@@ -854,14 +854,15 @@ _LIBCPP_CONSTEXPR_SINCE_CXX20 void vector<bool, _Allocator>::shrink_to_fit() _NO
854
854
}
855
855
856
856
template <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) {
858
858
if (__n >= size ())
859
859
this ->__throw_out_of_range ();
860
860
return (*this )[__n];
861
861
}
862
862
863
863
template <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 {
865
866
if (__n >= size ())
866
867
this ->__throw_out_of_range ();
867
868
return (*this )[__n];
0 commit comments