Multiple argument #99
-
Something like this : |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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
cardinality
as it default to one argument. The former defaults to multiple as it assu…