MCPcopy Create free account
hub / github.com/ceph/ceph / operator=

Method operator=

src/include/cpp-btree/btree.h:1951–1964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1949
1950template <typename P>
1951auto 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
1966template <typename P>
1967auto btree<P>::operator=(btree &&x) noexcept -> btree & {

Callers

nothing calls this directly

Calls 5

allocatorFunction · 0.85
key_compMethod · 0.80
mutable_key_compMethod · 0.80
swapFunction · 0.70
clearFunction · 0.50

Tested by

no test coverage detected