OrderedStack<E> constructor

OrderedStack<E>(
  1. int argStackSize,
  2. int argContainerSize
)

Implementation

OrderedStack(int argStackSize, int argContainerSize)
    : _pool = new List<E>(argStackSize),
      _index = 0,
      _size = argStackSize,
      _container = new List<E>(argContainerSize) {
  // pool = new List(argStackSize);
  for (int i = 0; i < argStackSize; i++) {
    _pool[i] = newInstance();
  }
}