BloombergLP::baljsn::EncodeImplUtil::validate

validate overloads

Synopses

Declared in <baljsn_encodeimplutil.h>

Determine whether value meets the encoding requirements for category.

template<class TYPE>
static
int
validate(
    std::ostream* logStream,
    TYPE const& value,
    bdlat_TypeCategory::Choice category);
» more...

Same as the preceding validate overload for the specified category.

template<
    class TYPE,
    class CATEGORY>
static
int
validate(
    std::ostream* logStream,
    TYPE const& value,
    CATEGORY category);
» more...

Return Value

0 if valid, and a non-zero value otherwise

Parameters

NameDescription
logStreamstream for human-readable error descriptions
valuevalue to validate for encoding
categorybdlat Choice type-category tag