[#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. == Synopsis Declared in `<ball_ruleset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int addRules(xref:BloombergLP/ball/RuleSet.adoc[RuleSet] const& rules); ---- == Description 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. == Return Value number of rules added == Parameters [cols="1,4"] |=== | Name| Description | *rules* | rule set whose rules are to be added |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#