[#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&period;

== Synopsis

Declared in `&lt;ball&lowbar;ruleset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ruleId(xref:BloombergLP/ball/Rule.adoc[Rule] const& value) const;
----

== Description

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&period;

== Return Value

non&hyphen;negative id if found, or a negative value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| rule whose id is sought
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
