Standard C++ Library Reference ISO/IEC (VERSION3)
collate::do_hash
virtual long do_hash(const Elem *first,
const Elem *last) const;
The protected virtual member function returns an integer derived from the values of the elements in the sequence
[first, last). Such a hash value can be useful, for example, in distributing sequences pseudo randomly across an
array of lists.
collate::do_transform
virtual string_type do_transform(const Elem *first,
const Elem *last) const;
The protected virtual member function returns an object of class string_type whose controlled sequence is a copy of
the sequence [first, last). If a class derived from collate<Elem> overrides do_compare, it should also
override do_transform to match. Put simply, two transformed strings should yield the same result, when passed to
collate::compare, that you would get from passing the untransformed strings to compare in the derived class.
collate::hash
long hash(const Elem *first, const Elem *last) const;
The member function returns do_hash(first, last).
collate::string_type
typedef basic_string<Elem> string_type;
The type describes a specialization of template class basic_string whose objects can store copies of the source
sequence.
collate::transform
string_type transform(const Elem *first,
const Elem *last) const;
The member function returns do_transform(first, last).
collate_byname
template<class Elem>
class collate_byname : public collate<Elem> {
public:
explicit collate_byname(const char *locname,
size_t refs = 0);
protected:
~collate_byname();
};
The template class describes an object that can serve as a locale facet of type collate<Elem>. Its behavior is
determined by the named locale locname. The constructor initializes its base object with collate<Elem>(refs).