BloombergLP::baljsn::EncodeImplUtil_SelectionDispatcher::operator()

Function call operators

Synopses

Declared in <baljsn_encodeimplutil.h>

Encode the JSON representation of selection for the given category.

template<class TYPE>
int
operator()(
    TYPE const& selection,
    bdlat_TypeCategory::CustomizedType category);
» more...

Same as the primary operator() overload for the specified category.

template<class TYPE>
int
operator()(
    TYPE const& selection,
    bdlat_TypeCategory::DynamicType category);
» more...

The behavior of this function is undefined.

template<class TYPE>
int
operator()(
    TYPE const& selection,
    bslmf::Nil category);
» more...

Same as the primary operator() overload for the specified category.

template<
    class TYPE,
    class CATEGORY>
int
operator()(
    TYPE const& selection,
    CATEGORY category);
» more...

Return Value

  • 0 on success, and a non-zero value otherwise
  • an unspecified value

Parameters

NameDescription
selectionchoice selection to encode
categorybdlat CustomizedType type-category tag