| 1949 | |
| 1950 | template <typename P> |
| 1951 | auto btree<P>::operator=(const btree &x) -> btree & { |
| 1952 | if (this != &x) { |
| 1953 | clear(); |
| 1954 | |
| 1955 | *mutable_key_comp() = x.key_comp(); |
| 1956 | if constexpr (std::allocator_traits< |
| 1957 | allocator_type>::propagate_on_container_copy_assignment::value) { |
| 1958 | *mutable_allocator() = x.allocator(); |
| 1959 | } |
| 1960 | |
| 1961 | copy_or_move_values_in_order(&x); |
| 1962 | } |
| 1963 | return *this; |
| 1964 | } |
| 1965 | |
| 1966 | template <typename P> |
| 1967 | auto btree<P>::operator=(btree &&x) noexcept -> btree & { |
nothing calls this directly
no test coverage detected