BitMagic-C++
Public Member Functions
bm::bvector< Alloc >::mem_pool_guard Class Reference

#include <bm.h>

Public Member Functions

 mem_pool_guard () BMNOEXCEPT
 
 mem_pool_guard (allocator_pool_type &pool, bvector< Alloc > &bv) BMNOEXCEPT
 
 ~mem_pool_guard ()
 
void assign_if_not_set (allocator_pool_type &pool, bvector< Alloc > &bv) BMNOEXCEPT
 check if vector has no assigned allocator and set one More...
 

Detailed Description

template<class Alloc>
class bm::bvector< Alloc >::mem_pool_guard

Resource guard for bvector<>::set_allocator_pool()

Examples
xsample07a.cpp.

Definition at line 785 of file bm.h.

Constructor & Destructor Documentation

◆ mem_pool_guard() [1/2]

template<class Alloc >
bm::bvector< Alloc >::mem_pool_guard::mem_pool_guard ( )
inline

Definition at line 788 of file bm.h.

◆ mem_pool_guard() [2/2]

template<class Alloc >
bm::bvector< Alloc >::mem_pool_guard::mem_pool_guard ( allocator_pool_type pool,
bvector< Alloc > &  bv 
)
inline

Definition at line 791 of file bm.h.

◆ ~mem_pool_guard()

template<class Alloc >
bm::bvector< Alloc >::mem_pool_guard::~mem_pool_guard ( )
inline

Definition at line 796 of file bm.h.

References bm::bvector< Alloc >::iterator_base::bv_.

Member Function Documentation

◆ assign_if_not_set()

template<class Alloc >
void bm::bvector< Alloc >::mem_pool_guard::assign_if_not_set ( allocator_pool_type pool,
bvector< Alloc > &  bv 
)
inline

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