| 177 | |
| 178 | template <template <typename...> class Map, typename Value, typename Allocator, typename... Args> |
| 179 | auto OrderedSetWrapper<Map, Value, Allocator, Args...>::insert(value_type const& v) -> pair<iterator, bool> { |
| 180 | auto i = m_map.find(v); |
| 181 | if (i == m_map.end()) { |
| 182 | auto orderIt = m_order.insert(m_order.end(), v); |
| 183 | m_map.insert(typename MapType::value_type(std::cref(*orderIt), orderIt)); |
| 184 | return {orderIt, true}; |
| 185 | } |
| 186 | return {i->second, false}; |
| 187 | } |
| 188 | |
| 189 | template <template <typename...> class Map, typename Value, typename Allocator, typename... Args> |
| 190 | bool OrderedSetWrapper<Map, Value, Allocator, Args...>::add(Value const& v) { |
no test coverage detected