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
326
:
_Head
(0)
327
{
// construct with empty list
328
}
stdext::allocators::freelist::_Head
node * _Head
Definition:
allocators:359
Member Function Documentation
template<size_t _Sz, class _Max>
void
*
stdext::allocators::freelist
< _Sz, _Max >::pop
(
)
inline
344
{
// pop node from free list
345
void
*_Ptr =
_Head
;
346
if
(_Ptr != 0)
347
{
// relink
348
_Head
=
_Head
->
_Next
;
349
this->released();
350
}
351
return
(_Ptr);
352
}
stdext::allocators::freelist::node::_Next
node * _Next
Definition:
allocators:357
stdext::allocators::freelist::_Head
node * _Head
Definition:
allocators:359
template<size_t _Sz, class _Max>
bool
stdext::allocators::freelist
< _Sz, _Max >::push
(
void
*
_Ptr
)
inline
331
{
// push onto free list depending on max
332
if
(this->full())
333
return
(
false
);
334
else
335
{
// push onto free list
336
((node*)_Ptr)->_Next =
_Head
;
337
_Head
= (node*)_Ptr;
338
this->saved();
339
return
(
true
);
340
}
341
}
stdext::allocators::freelist::_Head
node * _Head
Definition:
allocators:359
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:
VS2017/inc/
allocators
Generated on Sat Jul 22 2017 14:42:02 for STLdoc by
1.8.8