Repository navigation
Multiple argument #99
|
Something like this : |
Answered by
grafikrobot
Feb 9, 2025
Replies: 1 comment 1 reply
|
There isn't an explicit example of this.. but it is supported in two alternatives. If you pass in a container, i.e. The other is you can pass a lambda for the bound value that can collect as you wish. For example to collect only unique numbers: For that the latter you need to specify the Working CE example: https://godbolt.org/z/Ee3Pj8K6j |
1 reply
Answer selected by
Xxproner
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There isn't an explicit example of this.. but it is supported in two alternatives. If you pass in a container, i.e.
std::vector, as the binding value the multiple options will automatically collect into the vector:The other is you can pass a lambda for the bound value that can collect as you wish. For example to collect only unique numbers:
For that the latter you need to specify the
cardinalityas it default to one argument. The former defaults to multiple as it assu…