Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个答案回答了为什么 C++20 引入了std::ssize(),但是根据最新std::span的规范,size_typeofstd::span现在是unsigned std::size_t,那么还有其他用例std::ssize()吗?
std::ssize()
std::span
size_type
std::size_t