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

Return a shared pointer to the constraint associated with the described option&period;

== Synopsis

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

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

== Description

Return a shared pointer to the (opaque) object storing the constraint associated with the described option&period; If this object has no constraint an empty shared pointer is returned&period; The lifetime of any shared reference to this object&apos;s constraint must not exceed that of this object&apos;s allocator&period;

== Return Value

shared pointer to the associated constraint, or empty


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