[#BloombergLP-ball-RuleSet-addRules]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/RuleSet.adoc[RuleSet]::addRules
:relfileprefix: ../../../
:mrdocs:

Add each rule in the specified `rules` to this rule set&period; Return the number of rules added&period; Note that a rule in `rules` will be ignored if there is an existing rule having the same value or if the number of rules in the set has reached the upper limit&period; Also note that if not all valid rules will fit, the (possibly empty) subset of unique values that will be added is implementation dependent&period;

== Synopsis

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

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


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