To which of these containers can the sort function from <algorithm> be applied to?
template<class _RanIt> inline void std::sort(_RanIt _First, _RanIt _Last)
Explanation
Function std::sort requires container to have random access iterators

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes