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

Name

Description

element

option value to validate

typeInfo

type and constraint information

stream

diagnostic output stream

Created with MrDocs