BloombergLP::balcl::TypeInfo::setConstraint

Set the constraint of the described option to the specified constraint.

Synopsis

Declared in <balcl_typeinfo.h>

void
setConstraint(bsl::shared_ptr<TypeInfoConstraint> const& constraint);

Description

Set the constraint of the described option to the specified constraint. The behavior is undefined unless the option associated with constraint has the same type as the option associated with this object. Note that the linked variable, if any, is unchanged by this method.

Parameters

NameDescription
constraintshared constraint to install