SourcePro® C++ API Reference Guide

Product Documentation:
   SourcePro C++
Documentation Home
List of all members | Public Member Functions
RWTHash< RWCopyOnWriteWString > Struct Template Reference

Function object for hashing an RWCopyOnWriteWString. More...

#include <rw/tools/cowwstring.h>

Inherits unary_function< RWCopyOnWriteWString, size_t >.

Public Member Functions

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

Detailed Description

template<>
struct RWTHash< RWCopyOnWriteWString >

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

Constructor & Destructor Documentation

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

Constructs a hash object instance with the specified comparison type.

Member Function Documentation

size_t RWTHash< RWCopyOnWriteWString >::operator() ( const RWCopyOnWriteWString 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 © 2016 Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.