[#BloombergLP-ball-RuleSet-ruleId] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/RuleSet.adoc[RuleSet]::ruleId :relfileprefix: ../../../ :mrdocs: Return the id of the rule having the specified `value` if such a rule exists, and a negative value otherwise. Note that if there are multiple rules having `value`, the id of the first one found will be returned and the order in which rules are searched is implementation dependent. == Synopsis Declared in `<ball_ruleset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int ruleId(xref:BloombergLP/ball/Rule.adoc[Rule] const& value) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#