BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsltf::TestValuesArray_DefaultConverter< VALUE, ALLOCATOR > Struct Template Reference

#include <bsltf_testvaluesarray.h>

Static Public Member Functions

static void createInplace (VALUE *objPtr, char value, ALLOCATOR allocator)
 

Detailed Description

template<class VALUE, class ALLOCATOR>
struct bsltf::TestValuesArray_DefaultConverter< VALUE, ALLOCATOR >

This struct provides a namespace for an utility function, createInplace, that creates an object of the (template parameter) type VALUE from a character identifier.

Member Function Documentation

◆ createInplace()

template<class VALUE , class ALLOCATOR >
void bsltf::TestValuesArray_DefaultConverter< VALUE, ALLOCATOR >::createInplace ( VALUE *  objPtr,
char  value,
ALLOCATOR  allocator 
)
inlinestatic

Create an object of the (template parameter) type VALUE at the specified objPtr address whose state is unique for the specified value. Use the specified allocator to supply memory. The behavior is undefined unless 0 <= value && value < 128 and VALUE is contained in the macro BSLTF_TEMPLATETESTFACILITY_TEST_TYPES_ALL.


The documentation for this struct was generated from the following file: