Is this use of the upcoming C++20 std::span correct and with no overhead to wrap up the command line arguments?
#include <iostream>
#include <span>
int main(int argc, const char* argv[])
{
for (auto s : std::span { argv, static_cast<std::size_t>(argc) })
std::cout << s << std::endl;
}
If it is correct, could I go futher and use with std::string_view?