ZeroTierOne/ext/libpqxx-7.7.3/config-tests/span.cxx
2022-06-24 10:12:36 -07:00

9 lines
189 B
C++

// Test for std::span.
#include <span>
int main(int argc, char **argv)
{
std::span<char *> args{argv, static_cast<std::size_t>(argc)};
return static_cast<int>(std::size(args) - 1u);
}