list.push_back(n); list.sort();This is fine for very small lists. 3. You can use sorted_vector<>
http://www.davekb.com/search.php?target=sorted+vector
list.push_back(n); list.sort();This is fine for very small lists. 3. You can use sorted_vector<>
http://www.davekb.com/search.php?target=sorted+vector