BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bdlat_ValueTypeFunctions Namespace Reference

Functions

template<class LHS_TYPE , class RHS_TYPE >
int assign (LHS_TYPE *lhs, const RHS_TYPE &rhs)
 
template<class TYPE >
void reset (TYPE *object)
 
template<class LHS_TYPE , class RHS_TYPE >
int bdlat_valueTypeAssign (LHS_TYPE *lhs, const RHS_TYPE &rhs)
 
template<class TYPE >
void bdlat_valueTypeReset (TYPE *object)
 

Detailed Description

The functions provided in this namespace may be applied to value types. See the component-level documentation for what is meant by "value type".

This namespace declaration adds the default implementations of the "value type" customization-point functions to bdlat_ValueTypeFunctions. These default implementations are provided for a variety of types.

Function Documentation

◆ assign()

template<class LHS_TYPE , class RHS_TYPE >
int bdlat_ValueTypeFunctions::assign ( LHS_TYPE *  lhs,
const RHS_TYPE &  rhs 
)

Assign the value of the specified rhs to the object specified its address lhs. Return 0 if successful, and a non-zero value otherwise.

◆ bdlat_valueTypeAssign()

template<class LHS_TYPE , class RHS_TYPE >
int bdlat_ValueTypeFunctions::bdlat_valueTypeAssign ( LHS_TYPE *  lhs,
const RHS_TYPE &  rhs 
)

◆ bdlat_valueTypeReset()

template<class TYPE >
void bdlat_ValueTypeFunctions::bdlat_valueTypeReset ( TYPE *  object)

◆ reset()

template<class TYPE >
void bdlat_ValueTypeFunctions::reset ( TYPE *  object)

Reset the value of the specified object to its default value.