LibreOffice: rtl::OUStringHash Struct Reference

LibreOffice LibreOffice 7.6 SDK C/C++ API Reference

Loading...
Searching...
No Matches
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.

## 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

## ◆ operator()()

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

Compute a hash code for a string.

Parameters

  rString | a 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:

- rtl/ustring.hxx