80 for (
int x = first; x <= last; x++)
93 for (
int x = first; x <= last; x++)
106 for (
int x = first; x <= last; x++)
125 for (
int x = first; x <= last; x++)
138 const int length = last - first + 1;
139 bool* arr =
new bool[length];
142 memset(arr,
'\0', length);
144 for (
int x = 0; x < (int)size; x++)
153 int val = pItem->
key;
155 if ((val >= first) && (val <= last))
157 int index = val - first;
163 for (
int i = 0; i < length; i++)
232 tracking[x] = (int)x;
242 int val1 = tracking[firstindex];
243 int val2 = tracking[secondindex];
250 tracking[firstindex] = val1;
251 tracking[secondindex] = val2;
261 for (
size_t x = 0; x < (c_maxsize/2); x++)
267 for (
size_t x = 0; x < (c_maxsize/2); x++)
272 for (
size_t x = (c_maxsize/2); x <
c_maxsize; x++)
279 expected = c_maxsize - c_maxsize/2;
283 for (
size_t x = 0; x < (c_maxsize/2); x++)
298 if (x == (
size_t)(pItem->
key))
HRESULT ValidateRangeInIndex(int first, int last)
HRESULT AddRangeToSet(int first, int last)
FastHash< int, Item, c_maxsize, c_tablesize > _hashtable
#define ChkIf(expr, hrerror)
HRESULT RemoveOne(int val)
HRESULT RemoveRangeFromSet(int first, int last)
static const size_t c_maxsize
HRESULT ValidateRangeInSet(int first, int last)
HRESULT ValidateRangeNotInSet(int first, int last)
#define ChkIfA(expr, hrerror)