diff options
Diffstat (limited to 'libcxx/include')
-rw-r--r-- | libcxx/include/map | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/map b/libcxx/include/map index 14eb4eb23d9..cdcf40569ba 100644 --- a/libcxx/include/map +++ b/libcxx/include/map @@ -1117,7 +1117,7 @@ public: template <typename _K2> _LIBCPP_INLINE_VISIBILITY typename enable_if<__is_transparent<_Compare, _K2>::value,size_type>::type - count(const _K2& __k) {return __tree_.__count_unique(__k);} + count(const _K2& __k) const {return __tree_.__count_unique(__k);} #endif _LIBCPP_INLINE_VISIBILITY iterator lower_bound(const key_type& __k) @@ -1850,7 +1850,7 @@ public: template <typename _K2> _LIBCPP_INLINE_VISIBILITY typename enable_if<__is_transparent<_Compare, _K2>::value,size_type>::type - count(const _K2& __k) {return __tree_.__count_multi(__k);} + count(const _K2& __k) const {return __tree_.__count_multi(__k);} #endif _LIBCPP_INLINE_VISIBILITY iterator lower_bound(const key_type& __k) |