int main() { test_iter(); test_iter_comp(); return test_result(); }
void test_iter_comp(unsigned N) { std::unique_ptr<int[]> a{new int[N]}; std::iota(a.get(), a.get()+N, 0); std::shuffle(a.get(), a.get()+N, gen); test_iter_comp(Iter(a.get()), Sent(a.get()+N)); }