hasNItemsOrLess overloads
Declared in <llvm/ADT/STLExtras.h>
Return true if container C has at most N items.
template<typename ContainerTy>
bool
hasNItemsOrLess(
ContainerTy&& C,
unsigned int N);
» more...
Return true if []Begin, End) contains at most N counted items.
template<
typename IterTy,
typename Pred = bool(*)( constdecltype(*std::declval<IterTy>())&)>
bool
hasNItemsOrLess(
IterTy&& Begin,
IterTy&& End,
unsigned int N,
Pred&& ShouldBeCounted = [](const decltype(*std::declval<IterTy>()) &) {
return true;
});
» more...
C has at most N items.N counted items.| Name | Description |
|---|---|
| C | Container to inspect. |
| N | Maximum number of items allowed. |
| Begin | Iterator to the first element. |
| End | Iterator past the last element. |
| ShouldBeCounted | Predicate selecting which items count toward N. |