BloombergLP::ball::RuleSet::addRule

Create a new Rule object having the specified value. Return the non-negative id of this non-modifiable object on success, and a negative value otherwise. A return value of -1 indicates that another rule having this value already exists. A return value of -2 indicates that the maximum number of rules for this rule set has been reached.

Synopsis

Declared in <ball_ruleset.h>

int
addRule(Rule const& value);