PCL
Construction and Destruction of Objects with Explicit Allocation

Functions

template<class T , class A >
void pcl::Construct (T *p, A &a)
 
template<class T , class T1 , class A >
void pcl::Construct (T *p, const T1 &v, A &a)
 
template<class T >
void pcl::Destroy (T *p)
 
template<class T >
void pcl::Destroy (T *p, T *q)
 

Detailed Description

Function Documentation

◆ Construct() [1/2]

template<class T , class A >
void pcl::Construct ( T *  p,
A &  a 
)
inline

Constructs an object with storage at address p and allocator a. This function invokes the default constructor of class T for the object stored at p.

See also
Allocator

Definition at line 247 of file Allocator.h.

◆ Construct() [2/2]

template<class T , class T1 , class A >
void pcl::Construct ( T *  p,
const T1 &  v,
A &  a 
)
inline

Constructs an object with storage at address p, initial value v, and allocator a. This function invokes the copy constructor of class T, with argument v, for the object stored at p.

See also
Allocator

Definition at line 260 of file Allocator.h.

◆ Destroy() [1/2]

template<class T >
void pcl::Destroy ( T *  p)
inline

Destroys an object stored at address p. Invokes the destructor of class T for the object stored at p.

See also
Allocator

Definition at line 277 of file Allocator.h.

◆ Destroy() [2/2]

template<class T >
void pcl::Destroy ( T *  p,
T *  q 
)
inline

Destroys a contiguous sequence of objects. Invokes the destructor of class T for each object in the range [p,q).

See also
Allocator

Definition at line 289 of file Allocator.h.