Skip to content

Commit 752e651

Browse files
[ADT] Remove llvm::empty
Note that I deprecated llvm::empty on September 18, 2022 in commit 6b49f30.
1 parent 1c308d6 commit 752e651

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

llvm/include/llvm/ADT/STLExtras.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -376,13 +376,6 @@ void adl_swap(T &&lhs, T &&rhs) noexcept(
376376
adl_detail::adl_swap(std::forward<T>(lhs), std::forward<T>(rhs));
377377
}
378378

379-
/// Test whether \p RangeOrContainer is empty. Similar to C++17 std::empty.
380-
template <typename T>
381-
LLVM_DEPRECATED("Use x.empty() instead", "empty")
382-
constexpr bool empty(const T &RangeOrContainer) {
383-
return adl_begin(RangeOrContainer) == adl_end(RangeOrContainer);
384-
}
385-
386379
/// Returns true if the given container only contains a single element.
387380
template <typename ContainerTy> bool hasSingleElement(ContainerTy &&C) {
388381
auto B = std::begin(C), E = std::end(C);

0 commit comments

Comments
 (0)