[PATCH] D122079: [ADT] add initializer list specialization for is_contained
Jakub Kuderski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 29 10:28:29 PDT 2022
kuhar added inline comments.
================
Comment at: llvm/include/llvm/ADT/STLExtras.h:1661
+template <typename T>
+constexpr bool is_contained(std::initializer_list<T> set, T value) {
+ // TODO: Use std::find when we switch to C++20.
----------------
nit: variable names should be capitalized in this function
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122079/new/
https://reviews.llvm.org/D122079
More information about the llvm-commits
mailing list