BloombergLP::balcl::TypeInfoUtil::satisfiesConstraint

Return true if the value at variable satisfies the constraint of typeInfo.

Synopsis

Declared in <balcl_typeinfo.h>

static
bool
satisfiesConstraint(
    void const* variable,
    TypeInfo const& typeInfo,
    std::ostream& stream);

Description

Return true if the value at the specified variable satisfies the constraint of the specified typeInfo object, writing errors to the specified stream if validation fails.

Return Value

true if the value satisfies the constraint (or there is none), and false otherwise

Parameters

NameDescription
variableaddress of the value to validate
typeInfotype and constraint information
streamdiagnostic output stream