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::spanコンパイル エラーが発生std::spanしsize_typeますindex_type。index_type署名すべきか否かについては大きなドラマがありましたが、なぜスキップするのsize_typeでしょうか? これは、コンテナー (またはコンテナーのようなオブジェクト) にsize_type.
std::span
size_type
index_type