ΒΆtemplate <
typename IterTy,
typename Pred = bool (*)(
const decltype(*std::declval<IterTy>())&)>
bool hasNItemsOrLess(
IterTy&& Begin,
IterTy&& End,
unsigned int N,
Pred&& ShouldBeCounted =
[](const decltype(*std::declval<
type - parameter - 0 -
0>())&) {
return true;
})
template <
typename IterTy,
typename Pred = bool (*)(
const decltype(*std::declval<IterTy>())&)>
bool hasNItemsOrLess(
IterTy&& Begin,
IterTy&& End,
unsigned int N,
Pred&& ShouldBeCounted =
[](const decltype(*std::declval<
type - parameter - 0 -
0>())&) {
return true;
})
Description
Returns true if the sequence [Begin, End) has N or less items. Can optionally take a predicate to lazily filter some items.
Declared at: llvm/include/llvm/ADT/STLExtras.h:2172
Templates
- IterTy
- Pred = bool (*)(const decltype(* std::declval<IterTy>()) &)
Parameters
- IterTy&& Begin
- IterTy&& End
- unsigned int N
- Pred&& ShouldBeCounted = [](const decltype(* std::declval<type-parameter-0-0>()) &) { return true; }