STLdoc
STLdocumentation
Main Page
Namespaces
Classes
Files
Class List
Class Index
Class Hierarchy
Class Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
stdext
allocators
freelist
Classes
|
Public Member Functions
|
Private Attributes
|
List of all members
stdext::allocators::freelist< _Sz, _Max > Class Template Reference
Inheritance diagram for stdext::allocators::freelist< _Sz, _Max >:
Classes
struct
node
Public Member Functions
freelist
()
bool
push
(
void
*_Ptr)
void
*
pop
()
Private Attributes
node
*
_Head
Constructor & Destructor Documentation
template<size_t _Sz, class _Max>
stdext::allocators::freelist
< _Sz, _Max >::
freelist
(
)
inline
316
:
_Head
(0)
317
{
// construct with empty list
318
}
stdext::allocators::freelist::_Head
node * _Head
Definition:
allocators:349
Member Function Documentation
template<size_t _Sz, class _Max>
void
*
stdext::allocators::freelist
< _Sz, _Max >::pop
(
)
inline
334
{
// pop node from free list
335
void
*_Ptr =
_Head
;
336
if
(_Ptr != 0)
337
{
// relink
338
_Head
=
_Head
->
_Next
;
339
this->released();
340
}
341
return
(_Ptr);
342
}
stdext::allocators::freelist::node::_Next
node * _Next
Definition:
allocators:347
stdext::allocators::freelist::_Head
node * _Head
Definition:
allocators:349
template<size_t _Sz, class _Max>
bool
stdext::allocators::freelist
< _Sz, _Max >::push
(
void
*
_Ptr
)
inline
321
{
// push onto free list depending on max
322
if
(this->full())
323
return
(
false
);
324
else
325
{
// push onto free list
326
((node*)_Ptr)->_Next =
_Head
;
327
_Head
= (node*)_Ptr;
328
this->saved();
329
return
(
true
);
330
}
331
}
stdext::allocators::freelist::_Head
node * _Head
Definition:
allocators:349
Member Data Documentation
template<size_t _Sz, class _Max>
node
*
stdext::allocators::freelist
< _Sz, _Max >::_Head
private
The documentation for this class was generated from the following file:
VS2013/inc/
allocators
Generated on Sun Jul 23 2017 10:12:51 for STLdoc by
1.8.8