HP Integrity NonStop H-Series User Manual

Page 183

Advertising
background image

// sort the vector ascending
sort (aVec.begin(), aVec.end());

// sort the deque descending
sort (aDec.begin(), aDec.end(), greater<int>() );

// alternative way to sort descending
sort (aVec.rbegin(), aVec.rend());
}

Advertising
This manual is related to the following products: