STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
stdext::allocators::max_fixed_size< _Max > Class Template Reference

Public Member Functions

 max_fixed_size ()
 
bool full () const
 
void saved ()
 
void released ()
 
void allocated (size_t=1)
 
void deallocated (size_t=1)
 

Private Attributes

unsigned long _Nblocks
 

Constructor & Destructor Documentation

template<size_t _Max>
stdext::allocators::max_fixed_size< _Max >::max_fixed_size ( )
inline
239  : _Nblocks(0)
240  { // construct with no blocks
241  }
unsigned long _Nblocks
Definition: allocators:267

Member Function Documentation

template<size_t _Max>
void stdext::allocators::max_fixed_size< _Max >::allocated ( size_t  = 1)
inline
259  { // do nothing
260  }
template<size_t _Max>
void stdext::allocators::max_fixed_size< _Max >::deallocated ( size_t  = 1)
inline
263  { // do nothing
264  }
template<size_t _Max>
bool stdext::allocators::max_fixed_size< _Max >::full ( ) const
inline
244  { // test for full
245  return (_Max <= _Nblocks);
246  }
unsigned long _Nblocks
Definition: allocators:267
template<size_t _Max>
void stdext::allocators::max_fixed_size< _Max >::released ( )
inline
254  { // decrement saved count
255  --_Nblocks;
256  }
unsigned long _Nblocks
Definition: allocators:267
template<size_t _Max>
void stdext::allocators::max_fixed_size< _Max >::saved ( )
inline
249  { // increment saved count
250  ++_Nblocks;
251  }
unsigned long _Nblocks
Definition: allocators:267

Member Data Documentation

template<size_t _Max>
unsigned long stdext::allocators::max_fixed_size< _Max >::_Nblocks
private

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