Quick Links:

bal | bbl | bdl | bsl

Public Types | Public Member Functions

bslma::TestAllocatorException Class Reference

#include <bslma_testallocatorexception.h>

List of all members.

Public Types

typedef Allocator::size_type size_type

Public Member Functions

 TestAllocatorException (size_type numBytes)
 ~TestAllocatorException ()
size_type numBytes () const
const char * what () const BSLS_EXCEPTION_VIRTUAL_NOTHROW BSLS_KEYWORD_OVERRIDE

Detailed Description

This class defines an exception object for memory allocation operations. Objects of this class contain information about an allocation request.

See Component bslma_testallocatorexception


Member Typedef Documentation


Constructor & Destructor Documentation

bslma::TestAllocatorException::TestAllocatorException ( size_type  numBytes  )  [explicit]

Create an exception object initialized with the specified numBytes that indicates an allocation request size.

bslma::TestAllocatorException::~TestAllocatorException (  ) 

Destroy this object. Note that this method's definition is compiler generated.


Member Function Documentation

size_type bslma::TestAllocatorException::numBytes (  )  const

Return the number of bytes (supplied at construction) that indicates an allocation request size.

const char* bslma::TestAllocatorException::what (  )  const

Return a pointer to the string literal "bslma::TestAllocatorException" having a storage duration of the lifetime of the program. Note that the caller should not attempt to free this memory.


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