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
245  : _Nblocks(0)
246  { // construct with no blocks
247  }
unsigned long _Nblocks
Definition: allocators:273

Member Function Documentation

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

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: