While reading C++ 20 book came across this function:
void print(std::ranges::input_range auto&& coll) {
// ...
}
Can someone explain the role of auto and rewrite the function signature without using auto if that is possible.
While reading C++ 20 book came across this function:
void print(std::ranges::input_range auto&& coll) {
// ...
}
Can someone explain the role of auto and rewrite the function signature without using auto if that is possible.