X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9cc56d1fc0b8eec41fbe2b961965e67c598d9406..db414879d45f5da2be534a0f523b0506f2ab1183:/interface/wx/hashset.h diff --git a/interface/wx/hashset.h b/interface/wx/hashset.h index fe3800446b..a3406431c7 100644 --- a/interface/wx/hashset.h +++ b/interface/wx/hashset.h @@ -3,7 +3,7 @@ // Purpose: interface of wxHashSet // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -11,19 +11,20 @@ This is a simple, type-safe, and reasonably efficient hash set class, whose interface is a subset of the interface of STL containers. - In particular, the interface is modeled after std::set, and the various, - non-standard, std::hash_map. + + The interface is similar to std::tr1::hash_set or std::set classes but + notice that, unlike std::set, the contents of a hash set is not sorted. Example: @code class MyClass { ... }; // same, with MyClass* keys (only uses pointer equality!) - WX_DECLARE_HASH_SET( MyClass*, wxPointerHash, wxPointerEqual, MySet1 ); + WX_DECLARE_HASH_SET( MyClass*, ::wxPointerHash, ::wxPointerEqual, MySet1 ); // same, with int keys - WX_DECLARE_HASH_SET( int, wxIntegerHash, wxIntegerEqual, MySet2 ); + WX_DECLARE_HASH_SET( int, ::wxIntegerHash, ::wxIntegerEqual, MySet2 ); // declare a hash set with string keys - WX_DECLARE_HASH_SET( wxString, wxStringHash, wxStringEqual, MySet3 ); + WX_DECLARE_HASH_SET( wxString, ::wxStringHash, ::wxStringEqual, MySet3 ); MySet1 h1; MySet2 h1; @@ -69,8 +70,8 @@ @code WX_DECLARE_HASH_SET( int, - wxIntegerHash, - wxIntegerEqual, + ::wxIntegerHash, + ::wxIntegerEqual, MySet ); // using an user-defined class for keys @@ -104,8 +105,8 @@ }; WX_DECLARE_HASH_SET( MyKey, // type of the keys - MyKeyHash, // hasher - MyKeyEqual, // key equality predicate + ::MyKeyHash, // hasher + ::MyKeyEqual, // key equality predicate CLASSNAME); // name of the class @endcode