view: drop redundant check

This commit is contained in:
Michele Caini
2024-06-12 11:36:03 +02:00
parent 154b91e835
commit f7cdf202e9

View File

@@ -583,9 +583,7 @@ public:
*/
template<typename Func>
void each(Func func) const {
if(this->index != sizeof...(Get)) {
pick_and_each(func, std::index_sequence_for<Get...>{});
}
pick_and_each(func, std::index_sequence_for<Get...>{});
}
/**