container: cleanup

This commit is contained in:
skypjack
2026-01-19 15:47:59 +01:00
parent 5feca37a78
commit 77a66812d4
2 changed files with 2 additions and 6 deletions

View File

@@ -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);
}

View File

@@ -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);
}