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

Method operator=

source/core/StarFlatHashMap.hpp:318–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316
317template <typename Key, typename Mapped, typename Hash, typename Equals, typename Allocator>
318auto FlatHashMap<Key, Mapped, Hash, Equals, Allocator>::operator=(FlatHashMap const& other) -> FlatHashMap& {
319 m_table.clear();
320 m_table.reserve(other.size());
321 for (auto const& p : other)
322 m_table.insert(p);
323 return *this;
324}
325
326template <typename Key, typename Mapped, typename Hash, typename Equals, typename Allocator>
327auto FlatHashMap<Key, Mapped, Hash, Equals, Allocator>::operator=(FlatHashMap&& other) -> FlatHashMap& {

Callers

nothing calls this directly

Calls 6

clearMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected