BloombergLP::balcl::TypeInfoUtil::satisfiesConstraint

Return true if element satisfies the constraint of typeInfo.

Synopsis

Declared in <balcl_typeinfo.h>

static
bool
satisfiesConstraint(
    OptionValue const& element,
    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

NameDescription
elementoption value to validate
typeInfotype and constraint information
streamdiagnostic output stream