BloombergLP::bdlar::SymbolicConverter::convert

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.

static
int
convert(
    AnyRef lhs,
    AnyConstRef rhs);
» more...

Convert the value of the specified rhs object to the specified (modifiable) lhs object.

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

Convert the value of the specified rhs type-erased object to the specified (modifiable) lhs type-erased object.

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

Convert the value of the specified rhs object to the specified (modifiable) lhs object.

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

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
lhsdestination type-erased object to receive the converted value
rhssource type-erased object to convert from
errorStreamstream for diagnostic messages