[#BloombergLP-bdlat_CustomizedTypeFunctions-createBaseAndConvert]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_CustomizedTypeFunctions.adoc[bdlat&lowbar;CustomizedTypeFunctions]::createBaseAndConvert
:relfileprefix: ../../
:mrdocs:

Create a base value, manipulate it, and convert it into `object`&period;

== Synopsis

Declared in `&lt;bdlat&lowbar;customizedtypefunctions&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;TYPE,
    class t&lowbar;MANIPULATOR&gt;
int
createBaseAndConvert(
    t&lowbar;TYPE* object,
    t&lowbar;MANIPULATOR& baseManipulator);
----

== Description

Create an uninitialized value of the base type, apply the specified `baseManipulator` to it, then call the `bdlat&lowbar;CustomizedTypeFunctions&colon;&colon;convertFromBaseType` function with the specified `object` and the value&period;

== Return Value

0 if successful, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| customized type to receive the converted value
| *baseManipulator*
| functor applied to an uninitialized base&hyphen;type value
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
