[PATCH] D132336: [ADT] Remove is_splat
Jakub Kuderski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 6 10:56:31 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG20573d11b74e: [ADT] Remove is_splat (authored by kuhar).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132336/new/
https://reviews.llvm.org/D132336
Files:
llvm/include/llvm/ADT/STLExtras.h
Index: llvm/include/llvm/ADT/STLExtras.h
===================================================================
--- llvm/include/llvm/ADT/STLExtras.h
+++ llvm/include/llvm/ADT/STLExtras.h
@@ -1791,24 +1791,6 @@
return all_equal<std::initializer_list<T>>(std::move(Values));
}
-/// Returns true if Range consists of the same value repeated multiple times.
-template <typename R>
-LLVM_DEPRECATED(
- "Use 'all_equal(Range)' or '!empty(Range) && all_equal(Range)' instead.",
- "all_equal")
-bool is_splat(R &&Range) {
- return !llvm::empty(Range) && all_equal(Range);
-}
-
-/// Returns true if Values consists of the same value repeated multiple times.
-template <typename T>
-LLVM_DEPRECATED(
- "Use 'all_equal(Values)' or '!empty(Values) && all_equal(Values)' instead.",
- "all_equal")
-bool is_splat(std::initializer_list<T> Values) {
- return is_splat<std::initializer_list<T>>(std::move(Values));
-}
-
/// Provide a container algorithm similar to C++ Library Fundamentals v2's
/// `erase_if` which is equivalent to:
///
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132336.458217.patch
Type: text/x-patch
Size: 1042 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220906/211f308b/attachment.bin>
More information about the llvm-commits
mailing list