mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
34 lines
1009 B
C++
34 lines
1009 B
C++
/********************************************************
|
|
* Array.h *
|
|
* *
|
|
* XFX Array class definition file *
|
|
* Contains array helper methods *
|
|
* Copyright © XFX Team. All Rights Reserved *
|
|
********************************************************/
|
|
#ifndef _SYSTEM_ARRAY_
|
|
#define _SYSTEM_ARRAY_
|
|
|
|
#include <System/Collections/Generic/Interfaces.h>
|
|
|
|
using namespace System::Collections::Generic;
|
|
|
|
namespace System
|
|
{
|
|
class Array
|
|
{
|
|
public:
|
|
template <class T>
|
|
static int BinarySearch(T array[], int index, int length, T value, IComparer<T>* comparer);
|
|
template <class T>
|
|
static void Clear(T array[], int index, int length);
|
|
template <class T>
|
|
static void Copy(T sourceArray[], int sourceIndex, T destinationArray[], int destinationIndex, int length);
|
|
template <class T>
|
|
static int IndexOf(T array[], T value, int startIndex, int count);
|
|
template <class T>
|
|
static int Length(T array[]);
|
|
};
|
|
}
|
|
|
|
#endif //_SYSTEM_ARRAY_
|