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

Name

Description

variable

address of the value to validate

typeInfo

type and constraint information

stream

diagnostic output stream

Created with MrDocs