1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Tom Lint 52ef14a94b Transition from SVN to Git
Added implicit conversion to base types to all primary types (UInt32 et
al)
Added implicit conversion from System::String to const char*
2013-05-05 18:18:41 +02:00

44 lines
699 B
C++

#ifndef _STACK_
#define _STACK_
#include "ICollection.h"
#include "IEnumerable.h"
using namespace System;
namespace System
{
namespace Collections
{
namespace Generic
{
template <class T>
class Stack : virtual IEnumerable<T>, virtual System::Collections::ICollection
{
private:
T internalArray[];
public:
struct Enumerator;
Stack();
Stack(IEnumerable<T> collection);
Stack(int capacity);
int Count();
void Clear();
int Contains(T item);
void CopyTo(T array[], int arrayIndex);
T Peek();
T Pop();
void Push(T item);
T *ToArray();
void TrimExcess();
};
}
}
}
#endif //_LIST_