BloombergLP::balcl::TypeInfoUtil::satisfiesConstraint

satisfiesConstraint overloads

Synopses

Declared in <balcl_typeinfo.h>

Return true if the specified element satisfies the constraint of typeInfo.

static
bool
satisfiesConstraint(
    OptionValue const& element,
    TypeInfo const& typeInfo);
» more...

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

static
bool
satisfiesConstraint(
    void const* variable,
    TypeInfo const& typeInfo);
» more...

Return true if element satisfies the constraint of typeInfo.

static
bool
satisfiesConstraint(
    OptionValue const& element,
    TypeInfo const& typeInfo,
    std::ostream& stream);
» more...

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

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

Return Value

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

Parameters

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