LibreOffice
LibreOffice 24.2 SDK C/C++ API Reference
Public Member Functions | List of all members
rtl::OStringHash Struct Reference

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

#include <string.hxx>

Public Member Functions

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

Detailed Description

A helper to use OStrings 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::OStringHash::operator() ( const OString 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: