diff --git a/include/boost/unordered/unordered_map.hpp b/include/boost/unordered/unordered_map.hpp index 51d37e6b..7b2ff6fc 100644 --- a/include/boost/unordered/unordered_map.hpp +++ b/include/boost/unordered/unordered_map.hpp @@ -707,10 +707,6 @@ template class unordered_map hasher hash_function() const; key_equal key_eq() const; - mapped_type& operator[](const key_type&); - mapped_type& at(const key_type&); - mapped_type const& at(const key_type&) const; - // lookup iterator find(const key_type&); @@ -732,6 +728,10 @@ template class unordered_map std::pair equal_range( const key_type&) const; + mapped_type& operator[](const key_type&); + mapped_type& at(const key_type&); + mapped_type const& at(const key_type&) const; + // bucket interface size_type bucket_count() const BOOST_NOEXCEPT @@ -1563,27 +1563,6 @@ unordered_map::key_eq() const return table_.key_eq(); } -template -typename unordered_map::mapped_type& - unordered_map::operator[](const key_type& k) -{ - return table_.try_emplace_impl(k).first->second; -} - -template -typename unordered_map::mapped_type& -unordered_map::at(const key_type& k) -{ - return table_.at(k).second; -} - -template -typename unordered_map::mapped_type const& -unordered_map::at(const key_type& k) const -{ - return table_.at(k).second; -} - // lookup template @@ -1641,6 +1620,27 @@ unordered_map::equal_range(const key_type& k) const return table_.equal_range(k); } +template +typename unordered_map::mapped_type& + unordered_map::operator[](const key_type& k) +{ + return table_.try_emplace_impl(k).first->second; +} + +template +typename unordered_map::mapped_type& +unordered_map::at(const key_type& k) +{ + return table_.at(k).second; +} + +template +typename unordered_map::mapped_type const& +unordered_map::at(const key_type& k) const +{ + return table_.at(k).second; +} + template typename unordered_map::size_type unordered_map::bucket_size(size_type n) const