SourcePro® API Reference Guide

 
List of all members | Public Member Functions
RWTHash< RWCopyOnWriteCString > Struct Template Reference

Function object for hashing an RWCopyOnWriteCString. More...

#include <rw/tools/cowcstring.h>

Public Member Functions

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

Detailed Description

template<>
struct RWTHash< RWCopyOnWriteCString >

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

Constructor & Destructor Documentation

RWTHash< RWCopyOnWriteCString >::RWTHash ( RWCopyOnWriteCString::caseCompare  cmp = RWCopyOnWriteCString::exact)
inline

Constructs a hash object instance with the specified comparison type.

Member Function Documentation

size_t RWTHash< RWCopyOnWriteCString >::operator() ( const RWCopyOnWriteCString 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 © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.