[#BloombergLP-baljsn-EncodeImplUtil_SelectionDispatcher-operator_call-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncodeImplUtil_SelectionDispatcher.adoc[EncodeImplUtil_SelectionDispatcher]::operator() :relfileprefix: ../../../ :mrdocs: Function call operators == Synopses Declared in `<baljsn_encodeimplutil.h>` Encode the JSON representation of `selection` for the given category. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int xref:BloombergLP/baljsn/EncodeImplUtil_SelectionDispatcher/operator_call-0a.adoc[operator()]( TYPE const& selection, xref:BloombergLP/bdlat_TypeCategory/CustomizedType.adoc[bdlat_TypeCategory::CustomizedType] category); ---- [.small]#xref:BloombergLP/baljsn/EncodeImplUtil_SelectionDispatcher/operator_call-0a.adoc[_» more..._]# Same as the primary `operator()` overload for the specified `category`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int xref:BloombergLP/baljsn/EncodeImplUtil_SelectionDispatcher/operator_call-04.adoc[operator()]( TYPE const& selection, xref:BloombergLP/bdlat_TypeCategory/DynamicType.adoc[bdlat_TypeCategory::DynamicType] category); ---- [.small]#xref:BloombergLP/baljsn/EncodeImplUtil_SelectionDispatcher/operator_call-04.adoc[_» more..._]# The behavior of this function is undefined. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int xref:BloombergLP/baljsn/EncodeImplUtil_SelectionDispatcher/operator_call-0d.adoc[operator()]( TYPE const& selection, xref:BloombergLP/bslmf/Nil.adoc[bslmf::Nil] category); ---- [.small]#xref:BloombergLP/baljsn/EncodeImplUtil_SelectionDispatcher/operator_call-0d.adoc[_» more..._]# Same as the primary `operator()` overload for the specified `category`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class TYPE, class CATEGORY> int xref:BloombergLP/baljsn/EncodeImplUtil_SelectionDispatcher/operator_call-05.adoc[operator()]( TYPE const& selection, CATEGORY category); ---- [.small]#xref:BloombergLP/baljsn/EncodeImplUtil_SelectionDispatcher/operator_call-05.adoc[_» more..._]# == Return Value * 0 on success, and a non‐zero value otherwise * an unspecified value == Parameters [cols="1,4"] |=== | Name| Description | *selection* | choice selection to encode | *category* | `bdlat` CustomizedType type‐category tag |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#