Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
C++ Tutorial
STL Algorithms Sorting 24 codes
Home
C++ Tutorial
STL Algorithms Sorting
1 Illustrating the generic lexicographical_compare algorithm
2 Illustrating the generic nth_element algorithm
3 Sort a vector and print out the sorted elements
4 Sort a vector into ascending order of id members
5 Sort all element in an array
6 Sort elements in deque
7 Sort elements reversely with custom function
8 Sort objects stored in deque
9 Sort part of the elements in an array
10 The generic partial_sort algorithms with predicate
11 The generic stable_sort algorithms with predicate
12 Use custom function and sort to sort strings by length
13 Use nth_element to extract the four highest elements
14 Use nth_element to extract the four lowest elements
15 Use nth_element with custom function to extract the four highest elements
16 Use partial_sort to sort all elements
17 Use partial_sort to sort until the first five elements are sorted
18 Use partial_sort with custom function to sort inversely until the first five elements are sorted
19 Use partial_sort_copy to copy elements in one container sorted into another container
20 Use partial_sort_copy with custom comparison function to copy elements in one container sorted into another contain
21 Use sorting criterion in sort function
22 Use std
23 Using an in-place generic sort algorithm
24 Using the generic sort algorithm with a binary predicate