Freigeben über


collate::do_hash

A virtual function called to determine the hash value of sequences according to their facet-specific rules.

virtual long do_hash( 
   const CharType* _First, 
   const CharType* _Last 
) const;

Parameters

  • _First
    A pointer to the first character in the sequence whose has value is to be determined.

  • _Last
    A pointer to the last character in the sequence whose has value is to be determined.

Return Value

A hash value of type long for the sequence.

Remarks

A hash value can be useful, for example, in distributing sequences pseudo-randomly across an array of lists.

Example

See the example for hash, which calls do_hash.

Requirements

Header: <locale>

Namespace: std

See Also

Reference

collate Class