| 549 | |
| 550 | template <template <typename...> class Map, typename Key, typename Value, typename Allocator, typename... MapArgs> |
| 551 | auto OrderedMapWrapper<Map, Key, Value, Allocator, MapArgs...>::first() const -> value_type const& { |
| 552 | if (empty()) |
| 553 | throw MapException("OrderedMap::takeFirst() called on empty OrderedMap"); |
| 554 | |
| 555 | return *m_order.begin(); |
| 556 | } |
| 557 | |
| 558 | template <template <typename...> class Map, typename Key, typename Value, typename Allocator, typename... MapArgs> |
| 559 | auto OrderedMapWrapper<Map, Key, Value, Allocator, MapArgs...>::firstValue() -> mapped_type& { |