[Openmp-commits] [openmp] [libomp] Add kmp_str_ref (ADT 1/2) (PR #176162)

Robert Imschweiler via Openmp-commits openmp-commits at lists.llvm.org
Tue Jun 2 05:39:42 PDT 2026


================

----------------
ro-i wrote:

I think count_while makes a lot of sense given that we have drop- and take-while. But I see that `llvm::StringRef` and `std::string_view` have slightly worse semantics, so I added some find methods similar to `find_if` and `find_if_not` from `llvm::StringRef` and kept count_while only as a helper (since I adopted npos as sentinel return value, similar to the other string ref/view implementations)

https://github.com/llvm/llvm-project/pull/176162


More information about the Openmp-commits mailing list