BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslma::ManagedPtr_DefaultDeleter< MANAGED_TYPE > Struct Template Reference

#include <bslma_managedptr.h>

Static Public Member Functions

static void deleter (void *ptr, void *)
 

Detailed Description

template<class MANAGED_TYPE>
struct bslma::ManagedPtr_DefaultDeleter< MANAGED_TYPE >

This struct provides a function-like managed pointer deleter that invokes delete with the passed pointer.

Member Function Documentation

◆ deleter()

template<class MANAGED_TYPE >
void bslma::ManagedPtr_DefaultDeleter< MANAGED_TYPE >::deleter ( void *  ptr,
void *   
)
inlinestatic

Cast the specified ptr to (template parameter) type MANAGED_TYPE *, and then call delete with the cast pointer.


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