Obtains the sort key for the character sequence [first, last), such that if a sort key compares less than another sort key with operator<, then the character sequence that produced the first sort key comes before the character sequence that produced the second sort key, in the currently imbued locale's collation order.

The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.

For example when the regex flag std::regex_constants::collate is set, then the sequence [a-b] would match some character c1 if traits.transform("a")<= traits.transform(c1)<= traits.transform("b"). Note that this function takes a character sequence as the argument to accomodate to the ranges defined like [[.ae.]-d].

The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.