Back to Adaptive Vision Library website
You are here: Start » Function Reference » Loop Generators » EnumerateCombinations
![](../../img/icon/ForLoop.png)
EnumerateCombinations
In each consecutive iteration produces a consecutive combination of integer numbers.
Syntax
bool avl::EnumerateCombinations ( EnumerateCombinationsState& ioState, int inCombinationSize, int inSetSize, atl::Array<int>& outCombination, int& outIndex )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
ioState | EnumerateCombinationsState& | Object used to maintain state of the function. | |||
![]() |
inCombinationSize | int | 0 - ![]() |
2 | |
![]() |
inSetSize | int | 0 - ![]() |
3 | |
![]() |
outCombination | Array<int>& | |||
![]() |
outIndex | int& |
Errors
Error type | Description |
---|---|
DomainError | Combination size cannot be greater than the set size in EnumerateCombinations. |