[#BloombergLP-balcl-TypeInfoUtil-satisfiesConstraint-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/TypeInfoUtil.adoc[TypeInfoUtil]::satisfiesConstraint :relfileprefix: ../../../ :mrdocs: Return `true` if `element` satisfies the constraint of `typeInfo`. == Synopsis Declared in `<balcl_typeinfo.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool satisfiesConstraint( xref:BloombergLP/balcl/OptionValue.adoc[OptionValue] const& element, xref:BloombergLP/balcl/TypeInfo.adoc[TypeInfo] const& typeInfo, std::ostream& stream); ---- == Description Same as the preceding overload, but write a descriptive error message to the specified `stream` when validation fails. == Return Value `true` if `element` satisfies the constraint (or there is none), and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *element* | option value to validate | *typeInfo* | type and constraint information | *stream* | diagnostic output stream |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#