| 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) |
no test coverage detected