SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWTHash< RWWString > Struct Reference

Function object for hashing an RWWString. More...

#include <rw/tools/stdwstring.h>

Public Member Functions

 RWTHash (RWWString::caseCompare cmp=RWWString::exact)
 
size_t operator() (const RWWString &obj) const
 

Detailed Description

Provides a C++ Standard Library-compliant hash function object suitable for use with hash or unordered containers.

Constructor & Destructor Documentation

◆ RWTHash()

Constructs a hash object instance with the specified comparison type.

Member Function Documentation

◆ operator()()

size_t RWTHash< RWWString >::operator() ( const RWWString & obj) const
inline

Returns a hash of obj. This function is the equivalent of calling

obj.hash(cmp);

Where cmp is the comparison type specified at construction.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.