3 /* Stack - a template stack class
5 ** Copyright 2001 pinc Software. All Rights Reserved.
6 ** Released under the terms of the MIT license.
12 #include <SupportDefs.h>
15 template<class T
> class Stack
32 status_t
Push(T value
)
37 fArray
= (T
*)realloc(fArray
,fMax
* sizeof(T
));
41 fArray
[fUsed
++] = value
;
50 *value
= fArray
[--fUsed
];