MCPcopy Create free account
hub / github.com/KTH-RPL/dufomap / insert

Function insert

src/toml.hpp:6648–6657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6646
6647 template <typename ElemType>
6648 iterator insert(const_iterator pos, ElemType&& val, value_flags flags = preserve_source_value_flags)
6649 {
6650 if constexpr (is_node_view<ElemType>)
6651 {
6652 if (!val)
6653 return end();
6654 }
6655 return iterator{ insert_at(const_vector_iterator{ pos },
6656 impl::make_node(static_cast<ElemType&&>(val), flags)) };
6657 }
6658
6659 template <typename ElemType>
6660 iterator insert(const_iterator pos,

Callers 1

resizeFunction · 0.85

Calls 3

endFunction · 0.85
make_nodeFunction · 0.85
moveFunction · 0.85

Tested by

no test coverage detected