Function call operators

Synopses

Declared in <balber_berencoder.h>

Encode the specified object.

template<typename TYPE>
int
operator()(TYPE const& object);

Encode the specified object; the behavior is undefined unless invoked.

template<typename TYPE>
int
operator()(
    TYPE const& object,
    bslmf::Nil category);

Encode the specified object for the given category.

template<
    typename TYPE,
    typename ANY_CATEGORY>
int
operator()(
    TYPE const& object,
    ANY_CATEGORY category);

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

object

value to encode

category

unused type‐category tag (always bslmf::Nil)

Created with MrDocs