Browse Source

container: cleanup

skypjack 2 months ago
parent
commit
77a66812d4
2 changed files with 2 additions and 6 deletions
  1. 1 3
      src/entt/container/dense_map.hpp
  2. 1 3
      src/entt/container/dense_set.hpp

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

@@ -544,12 +544,10 @@ public:
 
     /**
      * @brief Inserts elements into the container, if their keys do not exist.
-     * @tparam It Type of input iterator.
      * @param first An iterator to the first element of the range of elements.
      * @param last An iterator past the last element of the range of elements.
      */
-    template<std::input_iterator It>
-    void insert(It first, It last) {
+    void insert(std::input_iterator auto first, std::input_iterator auto last) {
         for(; first != last; ++first) {
             insert(*first);
         }

+ 1 - 3
src/entt/container/dense_set.hpp

@@ -521,12 +521,10 @@ public:
 
     /**
      * @brief Inserts elements into the container, if they do not exist.
-     * @tparam It Type of input iterator.
      * @param first An iterator to the first element of the range of elements.
      * @param last An iterator past the last element of the range of elements.
      */
-    template<std::input_iterator It>
-    void insert(It first, It last) {
+    void insert(std::input_iterator auto first, std::input_iterator auto last) {
         for(; first != last; ++first) {
             insert(*first);
         }