BloombergLP::bdlat_CustomizedTypeFunctions::createBaseAndConvert

Create a base value, manipulate it, and convert it into object.

Synopsis

Declared in <bdlat_customizedtypefunctions.h>

template<
    class t_TYPE,
    class t_MANIPULATOR>
int
createBaseAndConvert(
    t_TYPE* object,
    t_MANIPULATOR& baseManipulator);

Description

Create an uninitialized value of the base type, apply the specified baseManipulator to it, then call the bdlat_CustomizedTypeFunctions::convertFromBaseType function with the specified object and the value.

Return Value

0 if successful, and a non-zero value otherwise

Parameters

NameDescription
objectcustomized type to receive the converted value
baseManipulatorfunctor applied to an uninitialized base-type value