// Test for concepts support. Not just the language feature; also headers. #include #include #include template concept Foo = std::ranges::input_range; template auto foo(F const &r) { return std::distance(std::begin(r), std::end(r)); } int main() { std::vector const v{1, 2, 3}; std::cout << foo(v) << '\n'; }