| 18932 | : Container{init, alloc} {} |
| 18933 | |
| 18934 | std::pair<iterator, bool> emplace(const key_type& key, T&& t) |
| 18935 | { |
| 18936 | for (auto it = this->begin(); it != this->end(); ++it) |
| 18937 | { |
| 18938 | if (m_compare(it->first, key)) |
| 18939 | { |
| 18940 | return {it, false}; |
| 18941 | } |
| 18942 | } |
| 18943 | Container::emplace_back(key, std::forward<T>(t)); |
| 18944 | return {std::prev(this->end()), true}; |
| 18945 | } |
| 18946 | |
| 18947 | template<class KeyType, detail::enable_if_t< |
| 18948 | detail::is_usable_as_key_type<key_compare, key_type, KeyType>::value, int> = 0> |
no test coverage detected