We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c308d6 commit 752e651Copy full SHA for 752e651
llvm/include/llvm/ADT/STLExtras.h
@@ -376,13 +376,6 @@ void adl_swap(T &&lhs, T &&rhs) noexcept(
376
adl_detail::adl_swap(std::forward<T>(lhs), std::forward<T>(rhs));
377
}
378
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
-
386
/// Returns true if the given container only contains a single element.
387
template <typename ContainerTy> bool hasSingleElement(ContainerTy &&C) {
388
auto B = std::begin(C), E = std::end(C);
0 commit comments