mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Added implicit conversion to base types to all primary types (UInt32 et al) Added implicit conversion from System::String to const char*
44 lines
699 B
C++
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_
|