BloombergLP::bdlar::bdlat_customizedTypeCreateBaseAndConvert

Create a base-type value, apply baseManipulator, then convert it.

Synopsis

Declared in <bdlar_customizedtypetraits.h>

template<class t_MANIPULATOR>
int
bdlat_customizedTypeCreateBaseAndConvert(
    CustomizedTypeRef* ref,
    t_MANIPULATOR& baseManipulator);

Description

Create an uninitialized value of the base type, apply the specified baseManipulator to it, then convert the result into the customized type referred to by the specified ref. Return 0 on success and a non-zero value otherwise.

Return Value

0 on success and a non-zero value otherwise

Parameters

NameDescription
refcustomized-type reference to receive the converted value
baseManipulatormanipulator to apply to the base value