mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-03 06:16:06 +00:00

std::size, introduced in C++17, allows us to directly obtain the number of elements of an array. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716