BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bsltf::StdTestAllocator_CommonUtil Struct Reference

#include <bsltf_stdtestallocator.h>

Detailed Description

This struct provides a namespace for utilities that are common to all instantiations of the StdTestAllocator class template.

See bsltf_stdtestallocator

Static Public Member Functions

static size_t maxSize (size_t elementSize)
 

Member Function Documentation

◆ maxSize()

static size_t bsltf::StdTestAllocator_CommonUtil::maxSize ( size_t  elementSize)
static

Return the maximum number of objects, each taking the specified elementSize bytes of storage, that can potentially be allocated by a StdTestAllocator.

Note
Note that this function is mostly about insulating consumers of this component from a standard header, so that this test component does not hide missing header dependencies in testing scenarios.

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