28 Algorithms library [algorithms]

28.8 C library algorithms [alg.c.library]

[Note
:
The header <cstdlib> ([cstdlib.syn]) declares the functions described in this subclause.
end note
]
void* bsearch(const void* key, const void* base, size_t nmemb, size_t size, c-compare-pred* compar); void* bsearch(const void* key, const void* base, size_t nmemb, size_t size, compare-pred* compar); void qsort(void* base, size_t nmemb, size_t size, c-compare-pred* compar); void qsort(void* base, size_t nmemb, size_t size, compare-pred* compar);
Effects: These functions have the semantics specified in the C standard library.
Remarks: The behavior is undefined unless the objects in the array pointed to by base are of trivial type.
Throws: Any exception thrown by compar() ([res.on.exception.handling]).
See also: ISO C 7.
22.
5.