@@ -254,9 +254,15 @@ class _LIBCPP_TEMPLATE_VIS vector<bool, _Allocator> {
254254 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void reserve (size_type __n);
255255 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void shrink_to_fit () _NOEXCEPT;
256256
257- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator begin () _NOEXCEPT _LIBCPP_LIFETIMEBOUND { return __make_iter (0 ); }
258- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_iterator begin () const _NOEXCEPT _LIBCPP_LIFETIMEBOUND { return __make_iter (0 ); }
259- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator end () _NOEXCEPT _LIBCPP_LIFETIMEBOUND { return __make_iter (__size_); }
257+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator begin () _NOEXCEPT _LIBCPP_LIFETIMEBOUND {
258+ return __make_iter (0 );
259+ }
260+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_iterator begin () const _NOEXCEPT _LIBCPP_LIFETIMEBOUND {
261+ return __make_iter (0 );
262+ }
263+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator end () _NOEXCEPT _LIBCPP_LIFETIMEBOUND {
264+ return __make_iter (__size_);
265+ }
260266 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_iterator end () const _NOEXCEPT _LIBCPP_LIFETIMEBOUND {
261267 return __make_iter (__size_);
262268 }
@@ -274,7 +280,9 @@ class _LIBCPP_TEMPLATE_VIS vector<bool, _Allocator> {
274280 return const_reverse_iterator (begin ());
275281 }
276282
277- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_iterator cbegin () const _NOEXCEPT _LIBCPP_LIFETIMEBOUND { return __make_iter (0 ); }
283+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_iterator cbegin () const _NOEXCEPT _LIBCPP_LIFETIMEBOUND {
284+ return __make_iter (0 );
285+ }
278286 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_iterator cend () const _NOEXCEPT _LIBCPP_LIFETIMEBOUND {
279287 return __make_iter (__size_);
280288 }
@@ -283,17 +291,26 @@ class _LIBCPP_TEMPLATE_VIS vector<bool, _Allocator> {
283291 }
284292 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_reverse_iterator crend () const _NOEXCEPT { return rend (); }
285293
286- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 reference operator [](size_type __n) _LIBCPP_LIFETIMEBOUND { return __make_ref (__n); }
287- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_reference operator [](size_type __n) const _LIBCPP_LIFETIMEBOUND {
294+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 reference operator [](size_type __n) _LIBCPP_LIFETIMEBOUND {
295+ return __make_ref (__n);
296+ }
297+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_reference
298+ operator [](size_type __n) const _LIBCPP_LIFETIMEBOUND {
288299 return __make_ref (__n);
289300 }
290301 _LIBCPP_HIDE_FROM_ABI reference at (size_type __n) _LIBCPP_LIFETIMEBOUND;
291302 _LIBCPP_HIDE_FROM_ABI const_reference at (size_type __n) const _LIBCPP_LIFETIMEBOUND;
292303
293304 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 reference front () _LIBCPP_LIFETIMEBOUND { return __make_ref (0 ); }
294- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_reference front () const _LIBCPP_LIFETIMEBOUND { return __make_ref (0 ); }
295- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 reference back () _LIBCPP_LIFETIMEBOUND { return __make_ref (__size_ - 1 ); }
296- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_reference back () const _LIBCPP_LIFETIMEBOUND { return __make_ref (__size_ - 1 ); }
305+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_reference front () const _LIBCPP_LIFETIMEBOUND {
306+ return __make_ref (0 );
307+ }
308+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 reference back () _LIBCPP_LIFETIMEBOUND {
309+ return __make_ref (__size_ - 1 );
310+ }
311+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 const_reference back () const _LIBCPP_LIFETIMEBOUND {
312+ return __make_ref (__size_ - 1 );
313+ }
297314
298315 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void push_back (const value_type& __x);
299316#if _LIBCPP_STD_VER >= 14
@@ -322,12 +339,14 @@ class _LIBCPP_TEMPLATE_VIS vector<bool, _Allocator> {
322339
323340#if _LIBCPP_STD_VER >= 14
324341 template <class ... _Args>
325- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator emplace (const_iterator __position, _Args&&... __args) _LIBCPP_LIFETIMEBOUND {
342+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator emplace (const_iterator __position, _Args&&... __args)
343+ _LIBCPP_LIFETIMEBOUND {
326344 return insert (__position, value_type (std::forward<_Args>(__args)...));
327345 }
328346#endif
329347
330- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator insert (const_iterator __position, const value_type& __x) _LIBCPP_LIFETIMEBOUND;
348+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator insert (const_iterator __position, const value_type& __x)
349+ _LIBCPP_LIFETIMEBOUND;
331350 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator
332351 insert (const_iterator __position, size_type __n, const value_type& __x) _LIBCPP_LIFETIMEBOUND;
333352 template <class _InputIterator , __enable_if_t <__has_exactly_input_iterator_category<_InputIterator>::value, int > = 0 >
@@ -339,7 +358,8 @@ class _LIBCPP_TEMPLATE_VIS vector<bool, _Allocator> {
339358
340359#if _LIBCPP_STD_VER >= 23
341360 template <_ContainerCompatibleRange<bool > _Range>
342- _LIBCPP_HIDE_FROM_ABI constexpr iterator insert_range (const_iterator __position, _Range&& __range) _LIBCPP_LIFETIMEBOUND {
361+ _LIBCPP_HIDE_FROM_ABI constexpr iterator
362+ insert_range (const_iterator __position, _Range&& __range) _LIBCPP_LIFETIMEBOUND {
343363 if constexpr (ranges::forward_range<_Range> || ranges::sized_range<_Range>) {
344364 auto __n = static_cast <size_type>(ranges::distance (__range));
345365 return __insert_with_size (__position, ranges::begin (__range), ranges::end (__range), __n);
@@ -358,7 +378,8 @@ class _LIBCPP_TEMPLATE_VIS vector<bool, _Allocator> {
358378#endif
359379
360380 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator erase (const_iterator __position) _LIBCPP_LIFETIMEBOUND;
361- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator erase (const_iterator __first, const_iterator __last) _LIBCPP_LIFETIMEBOUND;
381+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator erase (const_iterator __first, const_iterator __last)
382+ _LIBCPP_LIFETIMEBOUND;
362383
363384 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void clear () _NOEXCEPT { __size_ = 0 ; }
364385
0 commit comments