From 77a66812d4fe7f53950f9eb1f93ed5632d924712 Mon Sep 17 00:00:00 2001 From: skypjack Date: Mon, 19 Jan 2026 15:47:59 +0100 Subject: [PATCH] container: cleanup --- src/entt/container/dense_map.hpp | 4 +--- src/entt/container/dense_set.hpp | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/entt/container/dense_map.hpp b/src/entt/container/dense_map.hpp index 3cebf74f8..01e1c4adb 100644 --- a/src/entt/container/dense_map.hpp +++ b/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 - void insert(It first, It last) { + void insert(std::input_iterator auto first, std::input_iterator auto last) { for(; first != last; ++first) { insert(*first); } diff --git a/src/entt/container/dense_set.hpp b/src/entt/container/dense_set.hpp index 5f530b425..d4e2cc387 100644 --- a/src/entt/container/dense_set.hpp +++ b/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 - void insert(It first, It last) { + void insert(std::input_iterator auto first, std::input_iterator auto last) { for(; first != last; ++first) { insert(*first); }