[#BloombergLP-balcl-TypeInfo-setConstraint-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/TypeInfo.adoc[TypeInfo]::setConstraint
:relfileprefix: ../../../
:mrdocs:

`setConstraint` overloads

== Synopses

Declared in `&lt;balcl&lowbar;typeinfo&period;h&gt;`

Put the specified `constraint` on the value of the described option&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balcl/TypeInfo/setConstraint-0ad.adoc[setConstraint](xref:BloombergLP/balcl/Constraint/CharConstraint.adoc[Constraint::CharConstraint] const& constraint);
----

[.small]#xref:BloombergLP/balcl/TypeInfo/setConstraint-0ad.adoc[_» more&period;&period;&period;_]#

Put the specified `constraint` on the value of the described option&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balcl/TypeInfo/setConstraint-0ac.adoc[setConstraint](xref:BloombergLP/balcl/Constraint/DateConstraint.adoc[Constraint::DateConstraint] const& constraint);
----

[.small]#xref:BloombergLP/balcl/TypeInfo/setConstraint-0ac.adoc[_» more&period;&period;&period;_]#

Put the specified `constraint` on the value of the described option&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balcl/TypeInfo/setConstraint-09.adoc[setConstraint](xref:BloombergLP/balcl/Constraint/DatetimeConstraint.adoc[Constraint::DatetimeConstraint] const& constraint);
----

[.small]#xref:BloombergLP/balcl/TypeInfo/setConstraint-09.adoc[_» more&period;&period;&period;_]#

Put the specified `constraint` on the value of the described option&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balcl/TypeInfo/setConstraint-0d.adoc[setConstraint](xref:BloombergLP/balcl/Constraint/DoubleConstraint.adoc[Constraint::DoubleConstraint] const& constraint);
----

[.small]#xref:BloombergLP/balcl/TypeInfo/setConstraint-0d.adoc[_» more&period;&period;&period;_]#

Put the specified `constraint` on the value of the described option&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balcl/TypeInfo/setConstraint-08.adoc[setConstraint](xref:BloombergLP/balcl/Constraint/Int64Constraint.adoc[Constraint::Int64Constraint] const& constraint);
----

[.small]#xref:BloombergLP/balcl/TypeInfo/setConstraint-08.adoc[_» more&period;&period;&period;_]#

Put the specified `constraint` on the value of the described option&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balcl/TypeInfo/setConstraint-0a8.adoc[setConstraint](xref:BloombergLP/balcl/Constraint/IntConstraint.adoc[Constraint::IntConstraint] const& constraint);
----

[.small]#xref:BloombergLP/balcl/TypeInfo/setConstraint-0a8.adoc[_» more&period;&period;&period;_]#

Put the specified `constraint` on the value of the described option&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balcl/TypeInfo/setConstraint-05.adoc[setConstraint](xref:BloombergLP/balcl/Constraint/StringConstraint.adoc[Constraint::StringConstraint] const& constraint);
----

[.small]#xref:BloombergLP/balcl/TypeInfo/setConstraint-05.adoc[_» more&period;&period;&period;_]#

Put the specified `constraint` on the value of the described option&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balcl/TypeInfo/setConstraint-0a5.adoc[setConstraint](xref:BloombergLP/balcl/Constraint/TimeConstraint.adoc[Constraint::TimeConstraint] const& constraint);
----

[.small]#xref:BloombergLP/balcl/TypeInfo/setConstraint-0a5.adoc[_» more&period;&period;&period;_]#

Set the constraint of the described option to the specified `constraint`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balcl/TypeInfo/setConstraint-07.adoc[setConstraint](xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;TypeInfoConstraint&gt;] const& constraint);
----

[.small]#xref:BloombergLP/balcl/TypeInfo/setConstraint-07.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *constraint*
| value constraint for the option
|===


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