swap method

void swap(
  1. int i,
  2. int j
)

Implementation

void swap(int i, int j) {
  int temp = _s[i];
  _s[i] = _s[j];
  _s[j] = temp;
}