Adobe Source Libraries 1.49.0
A collection of C++ libraries.
|
#include <name.hpp>
Public Member Functions | |
bool | operator() (const name_t &x, const name_t &y) const |
for use with sorting, e.g.:
std::sort(begin(c), end(c), adobe::name_t::fast_compare{});
The implicit sort (operator<) is lexicographical ("slow"), whereas fast sort leverages the runtime hash of the name_t to speed things up. The sort order is not guaranteed between processes or DLLs, nor is it guaranteed to be lexicographical. It is only guaranteed to be stable for the lifetime of the process.