[#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. Return the number of rules added. 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. Also note that if not all valid rules will fit, the (possibly empty) subset of unique values that will be added is implementation dependent. == Synopsis Declared in `<ball_ruleset.h>` [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]#