LibreOffice
LibreOffice 5.3 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
rtl::OUStringHash Struct Reference

A helper to use OUStrings with hash maps. More...

#include <ustring.hxx>

Public Member Functions

size_t operator() (const OUString &rString) const
 Compute a hash code for a string. More...
 

Detailed Description

A helper to use OUStrings with hash maps.

Instances of this class are unary function objects that can be used as hash function arguments to std::unordered_map and similar constructs.

Member Function Documentation

size_t rtl::OUStringHash::operator() ( const OUString rString) const
inline

Compute a hash code for a string.

Parameters
rStringa string.
Returns
a hash code for the string. This hash code should not be stored persistently, as its computation may change in later revisions.

The documentation for this struct was generated from the following file: