MCPcopy Create free account
hub / github.com/LUX-Core/lux / insert_range_impl

Function insert_range_impl

src/config/implementation.hpp:4051–4066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4049
4050 template <class InputIt>
4051 void insert_range_impl(const_key_type& k, InputIt i, InputIt j)
4052 {
4053 insert_range_impl2(k, i, j);
4054
4055 while (++i != j) {
4056 // Note: can't use get_key as '*i' might not be value_type - it
4057 // could be a pair with first_types as key_type without const or
4058 // a different second_type.
4059 //
4060 // TODO: Might be worth storing the value_type instead of the
4061 // key here. Could be more efficient if '*i' is expensive. Could
4062 // be less efficient if copying the full value_type is
4063 // expensive.
4064 insert_range_impl2(extractor::extract(*i), i, j);
4065 }
4066 }
4067
4068 template <class InputIt>
4069 void insert_range_impl2(const_key_type& k, InputIt i, InputIt j)

Callers 1

insert_rangeFunction · 0.85

Calls 10

insert_range_impl2Function · 0.85
call_constructFunction · 0.85
create_nodeMethod · 0.80
reclaimMethod · 0.80
reserve_for_insertMethod · 0.80
value_ptrMethod · 0.45
releaseMethod · 0.45
valueMethod · 0.45
hashMethod · 0.45
add_nodeMethod · 0.45

Tested by

no test coverage detected