Repository navigation
Replies: 2 comments 2 replies
|
Sure that's reasonable, do you want to do a PR? Maybe change template <typename Pred>
struct _ctx_cis;and then expose an overload for |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am probably missing something, and there may be a better way to do this, but it'd be nice to add "is_not" and "is_not_zero" functions to the context counter. This would allow, for example, checking if a list of variants has at least one instance of a specific object.
eg.:
Adding this is as easy as:
struct _ctx_cis,struct _ctx_cisnottry_parsetoreturn _ctx_counter<Id>::get(cb) != Value;All reactions