Skip to content

Commit

Permalink
drops init list support from unique_everseen
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhaining committed Apr 8, 2016
1 parent 1497c42 commit 6c03359
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions unique_everseen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ namespace iter {
};
return filter(func, std::forward<Container>(container));
}

template <typename T>
auto unique_everseen(std::initializer_list<T> il) {
auto func = [elem_seen = std::unordered_set<T>()](const T& e) mutable {
return elem_seen.insert(e).second;
};
return filter(func, il);
}
}

#endif

0 comments on commit 6c03359

Please sign in to comment.