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
249  : _Nblocks(0)
250  { // construct with no blocks
251  }
unsigned long _Nblocks
Definition: allocators:277

Member Function Documentation

template<size_t _Max>
void stdext::allocators::max_fixed_size< _Max >::allocated ( size_t  = 1)
inline
269  { // do nothing
270  }
template<size_t _Max>
void stdext::allocators::max_fixed_size< _Max >::deallocated ( size_t  = 1)
inline
273  { // do nothing
274  }
template<size_t _Max>
bool stdext::allocators::max_fixed_size< _Max >::full ( ) const
inline
254  { // test for full
255  return (_Max <= _Nblocks);
256  }
unsigned long _Nblocks
Definition: allocators:277
template<size_t _Max>
void stdext::allocators::max_fixed_size< _Max >::released ( )
inline
264  { // decrement saved count
265  --_Nblocks;
266  }
unsigned long _Nblocks
Definition: allocators:277
template<size_t _Max>
void stdext::allocators::max_fixed_size< _Max >::saved ( )
inline
259  { // increment saved count
260  ++_Nblocks;
261  }
unsigned long _Nblocks
Definition: allocators:277

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: