Răsfoiți Sursa

dense_map: get rid of unnecessary template parameter

skypjack 1 lună în urmă
părinte
comite
84ba626acd
1 a modificat fișierele cu 0 adăugiri și 1 ștergeri
  1. 0 1
      src/entt/container/dense_map.hpp

+ 0 - 1
src/entt/container/dense_map.hpp

@@ -748,7 +748,6 @@ public:
      * @param key Key value of an element to search for.
      * @param key Key value of an element to search for.
      * @return Number of elements matching the key (either 1 or 0).
      * @return Number of elements matching the key (either 1 or 0).
      */
      */
-    template<typename Other>
     [[nodiscard]] size_type count(const auto &key) const
     [[nodiscard]] size_type count(const auto &key) const
     requires is_transparent_v<hasher> && is_transparent_v<key_equal> {
     requires is_transparent_v<hasher> && is_transparent_v<key_equal> {
         return find(key) != end();
         return find(key) != end();