libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ _M_move_data() [1/2]

template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc>
void std::_Rb_tree< _Key, _Val, _KeyOfValue, _Compare, _Alloc >::_M_move_data ( _Rb_tree< _Key, _Val, _KeyOfValue, _Compare, _Alloc > & __x,
false_type  )
private

Definition at line 2373 of file stl_tree.h.

2375 {
2378 else
2379 {
2381 _Alloc_node __an(*this);
2383#pragma GCC diagnostic push
2384#pragma GCC diagnostic ignored "-Wc++17-extensions" // if constexpr
2385 if constexpr (__move)
2386 __x.clear();
2387#pragma GCC diagnostic pop
2388 }
2389 }
__bool_constant< true > true_type
The type used as a compile-time boolean with true value.
Definition type_traits:119
_Base_ptr _M_copy(_Node_ptr, _Base_ptr, _NodeGen &)
Definition stl_tree.h:2584
_Node_allocator & _M_get_Node_allocator() noexcept
Definition stl_tree.h:1154
void _M_move_data(_Rb_tree &__x, true_type)
Definition stl_tree.h:2058
_Base_ptr & _M_root() noexcept
Definition stl_tree.h:1353
void clear() noexcept
Definition stl_tree.h:1902

References _Rb_tree(), _M_copy(), _M_get_Node_allocator(), _M_move_data(), _M_root(), and clear().

Here is the call graph for this function: