BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsl::Vector_PushProctor< VALUE_TYPE, ALLOCATOR > Class Template Reference

#include <bslstl_vector.h>

Public Member Functions

 Vector_PushProctor (VALUE_TYPE *target, const ALLOCATOR &allocator)
 
 ~Vector_PushProctor ()
 
void release ()
 

Detailed Description

template<class VALUE_TYPE, class ALLOCATOR>
class bsl::Vector_PushProctor< VALUE_TYPE, ALLOCATOR >

This class template provides a proctor for a newly created object that is managed by an allocator. The object will be constructed through a call to allocator_traits<ALLOCATOR>::construct, and it should be destroyed by a call to allocator_traits<ALLOCATOR>::destroy. Note that this proctor takes no responsibility for the allocated memory that the supplied value is constructed in.

See bslstl_vector

Constructor & Destructor Documentation

◆ Vector_PushProctor()

template<class VALUE_TYPE , class ALLOCATOR >
bsl::Vector_PushProctor< VALUE_TYPE, ALLOCATOR >::Vector_PushProctor ( VALUE_TYPE *  target,
const ALLOCATOR &  allocator 
)
inline

Create a proctor that conditionally manages the specified target object (if non-zero) by destroying the managed object with a call to allocator_traits<ALLOCATOR>::destroy using the specified allocator upon destruction of this proctor, unless the managed objects has been released.

◆ ~Vector_PushProctor()

template<class VALUE_TYPE , class ALLOCATOR >
bsl::Vector_PushProctor< VALUE_TYPE, ALLOCATOR >::~Vector_PushProctor ( )
inline

Destroy this proctor, and destroy the object it manages (if any) by a call to allocator_traits<ALLOCATOR>::destroy using the allocator supplied at construction. If no object is currently being managed, this method has no effect.

Member Function Documentation

◆ release()

template<class VALUE_TYPE , class ALLOCATOR >
void bsl::Vector_PushProctor< VALUE_TYPE, ALLOCATOR >::release ( )
inline

Release from management the object currently managed by this proctor. If no object is currently being managed, this method has no effect.


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