Skip to content

Commit d1de5b1

Browse files
cf
1 parent f1fabdc commit d1de5b1

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

libcxx/include/__tree

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,6 @@ public:
897897
return __value_comp_;
898898
}
899899

900-
901900
private:
902901
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 const __node_allocator& __node_alloc() const _NOEXCEPT {
903902
return __node_alloc_;
@@ -912,10 +911,10 @@ private:
912911
public:
913912
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 __node_pointer __root() const _NOEXCEPT {
914913
// double t = __end_node()->__left_;
915-
// using __ptr_traits = pointer_traits<__node_pointer>;
916-
// using __element_type = typename __ptr_traits::element_type;
917-
// typename __element_type_type x{};
918-
// double t = x;
914+
// using __ptr_traits = pointer_traits<__node_pointer>;
915+
// using __element_type = typename __ptr_traits::element_type;
916+
// typename __element_type_type x{};
917+
// double t = x;
919918
return std::__static_fancy_pointer_cast<__node_pointer>(__end_node()->__left_);
920919
// return static_cast<__node_pointer>(__end_node()->__left_);
921920
}
@@ -1908,8 +1907,7 @@ pair<typename __tree<_Tp, _Compare, _Allocator>::iterator, bool>
19081907

19091908
// TODO: collapse into one branch
19101909
if (__libcpp_is_constant_evaluated()) {
1911-
__insert_node_at(__parent, __child,
1912-
std::__static_fancy_pointer_cast<__node_base_pointer>(__h.get()));
1910+
__insert_node_at(__parent, __child, std::__static_fancy_pointer_cast<__node_base_pointer>(__h.get()));
19131911
} else {
19141912
__insert_node_at(__parent, __child, static_cast<__node_base_pointer>(__h.get()));
19151913
}

0 commit comments

Comments
 (0)