convert overloads

Synopses

Declared in <bdlar_symbolicconverter.h>

Convert the value of the specified rhs type‐erased object to the specified (modifiable) lhs type‐erased object. Return 0 on success and a non‐zero value otherwise.

static
int
convert(
    AnyRef lhs,
    AnyConstRef rhs);

Convert the value of the specified rhs object to the specified (modifiable) lhs object. Return 0 on success and a non‐zero value otherwise. The supported conversions are described in the bdlat_symbolicconverter component‐level documentation.

template<
    class LHS_TYPE,
    class RHS_TYPE>
static
int
convert(
    LHS_TYPE* lhs,
    RHS_TYPE const& rhs);

Convert the value of the specified rhs type‐erased object to the specified (modifiable) lhs type‐erased object. Write diagnostic messages to the specified errorStream on failure. Return 0 on success and a non‐zero value otherwise.

static
int
convert(
    AnyRef lhs,
    AnyConstRef rhs,
    std::ostream& errorStream);

Convert the value of the specified rhs object to the specified (modifiable) lhs object. Optionally specify an errorStream to print error messages. Return 0 on success and a non‐zero value otherwise. The supported conversions are described in the bdlat_symbolicconverter component‐level documentation.

template<
    class LHS_TYPE,
    class RHS_TYPE>
static
int
convert(
    LHS_TYPE* lhs,
    RHS_TYPE const& rhs,
    std::ostream& errorStream);

Created with MrDocs