@@ -245,7 +245,7 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 void __tree_left_rotate(_Nod
245245// Effects: Makes __x->__left_ the subtree root with __x as its right child
246246// while preserving in-order order.
247247template <class _NodePtr >
248- _LIBCPP_HIDE_FROM_ABI void __tree_right_rotate (_NodePtr __x) _NOEXCEPT {
248+ _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI void __tree_right_rotate (_NodePtr __x) _NOEXCEPT {
249249 _LIBCPP_ASSERT_INTERNAL (__x != nullptr , " node shouldn't be null" );
250250 _LIBCPP_ASSERT_INTERNAL (__x->__left_ != nullptr , " node should have a left child" );
251251 _NodePtr __y = __x->__left_ ;
@@ -1147,7 +1147,7 @@ public:
11471147 return __emplace_hint_multi (__p, std::forward<_Vp>(__v));
11481148 }
11491149
1150- _LIBCPP_HIDE_FROM_ABI pair<iterator, bool >
1150+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 pair<iterator, bool >
11511151 __node_assign_unique (const __container_value_type& __v, __node_pointer __dest);
11521152
11531153 _LIBCPP_HIDE_FROM_ABI iterator __node_insert_multi (__node_pointer __nd);
@@ -1289,22 +1289,22 @@ private:
12891289 _LIBCPP_HIDE_FROM_ABI void __move_assign_alloc (__tree&, false_type) _NOEXCEPT {}
12901290
12911291 struct _DetachedTreeCache {
1292- _LIBCPP_HIDE_FROM_ABI explicit _DetachedTreeCache (__tree* __t ) _NOEXCEPT
1292+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 explicit _DetachedTreeCache (__tree* __t ) _NOEXCEPT
12931293 : __t_(__t ),
12941294 __cache_root_(__detach_from_tree(__t )) {
12951295 __advance ();
12961296 }
12971297
1298- _LIBCPP_HIDE_FROM_ABI __node_pointer __get () const _NOEXCEPT { return __cache_elem_; }
1298+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 __node_pointer __get () const _NOEXCEPT { return __cache_elem_; }
12991299
1300- _LIBCPP_HIDE_FROM_ABI void __advance () _NOEXCEPT {
1300+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 void __advance () _NOEXCEPT {
13011301 __cache_elem_ = __cache_root_;
13021302 if (__cache_root_) {
13031303 __cache_root_ = __detach_next (__cache_root_);
13041304 }
13051305 }
13061306
1307- _LIBCPP_HIDE_FROM_ABI ~_DetachedTreeCache () {
1307+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 ~_DetachedTreeCache () {
13081308 __t_->destroy (__cache_elem_);
13091309 if (__cache_root_) {
13101310 while (__cache_root_->__parent_ != nullptr )
@@ -1317,8 +1317,8 @@ private:
13171317 _DetachedTreeCache& operator =(_DetachedTreeCache const &) = delete ;
13181318
13191319 private:
1320- _LIBCPP_HIDE_FROM_ABI static __node_pointer __detach_from_tree (__tree* __t ) _NOEXCEPT;
1321- _LIBCPP_HIDE_FROM_ABI static __node_pointer __detach_next (__node_pointer) _NOEXCEPT;
1320+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 static __node_pointer __detach_from_tree (__tree* __t ) _NOEXCEPT;
1321+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 static __node_pointer __detach_next (__node_pointer) _NOEXCEPT;
13221322
13231323 __tree* __t_;
13241324 __node_pointer __cache_root_;
@@ -1347,7 +1347,7 @@ _LIBCPP_CONSTEXPR_SINCE_CXX26 __tree<_Tp, _Compare, _Allocator>::__tree(const va
13471347
13481348// Precondition: size() != 0
13491349template <class _Tp , class _Compare , class _Allocator >
1350- typename __tree<_Tp, _Compare, _Allocator>::__node_pointer
1350+ _LIBCPP_CONSTEXPR_SINCE_CXX26 typename __tree<_Tp, _Compare, _Allocator>::__node_pointer
13511351__tree<_Tp, _Compare, _Allocator>::_DetachedTreeCache::__detach_from_tree(__tree* __t ) _NOEXCEPT {
13521352 __node_pointer __cache = static_cast <__node_pointer>(__t ->__begin_node ());
13531353 __t ->__begin_node () = __t ->__end_node ();
@@ -1367,7 +1367,7 @@ __tree<_Tp, _Compare, _Allocator>::_DetachedTreeCache::__detach_from_tree(__tree
13671367// __cache->right_ == nullptr
13681368// This is no longer a red-black tree
13691369template <class _Tp , class _Compare , class _Allocator >
1370- typename __tree<_Tp, _Compare, _Allocator>::__node_pointer
1370+ _LIBCPP_CONSTEXPR_SINCE_CXX26 typename __tree<_Tp, _Compare, _Allocator>::__node_pointer
13711371__tree<_Tp, _Compare, _Allocator>::_DetachedTreeCache::__detach_next(__node_pointer __cache) _NOEXCEPT {
13721372 if (__cache->__parent_ == nullptr )
13731373 return nullptr ;
@@ -1945,7 +1945,7 @@ _LIBCPP_CONSTEXPR_SINCE_CXX26 __tree<_Tp, _Compare, _Allocator>::__emplace_hint_
19451945}
19461946
19471947template <class _Tp , class _Compare , class _Allocator >
1948- pair<typename __tree<_Tp, _Compare, _Allocator>::iterator, bool >
1948+ _LIBCPP_CONSTEXPR_SINCE_CXX26 pair<typename __tree<_Tp, _Compare, _Allocator>::iterator, bool >
19491949__tree<_Tp, _Compare, _Allocator>::__node_assign_unique(const __container_value_type& __v, __node_pointer __nd) {
19501950 __parent_pointer __parent;
19511951 __node_base_pointer& __child = __find_equal (__parent, _NodeTypes::__get_key (__v));
0 commit comments