MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / insert

Method insert

source/core/StarFlatHashMap.hpp:385–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383
384template <typename Key, typename Mapped, typename Hash, typename Equals, typename Allocator>
385auto FlatHashMap<Key, Mapped, Hash, Equals, Allocator>::insert(value_type const& value) -> pair<iterator, bool> {
386 auto res = m_table.insert(TableValue(value));
387 return {iterator{res.first}, res.second};
388}
389
390template <typename Key, typename Mapped, typename Hash, typename Equals, typename Allocator>
391template <typename T, typename>

Callers 2

operator=Method · 0.45
operator[]Method · 0.45

Calls 4

reserveMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected