BloombergLP::baljsn::EncodeImplUtil::validate

Same as the preceding validate overload for the specified category.

Synopsis

Declared in <baljsn_encodeimplutil.h>

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

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 type-category tag