|
BDE 4.39.x Production Release
|
#include <bdlb_cstringequalto.h>
This struct defines a comparison functor on null-terminated character strings, enabling them for use as keys in the standard unordered associative containers such as bsl::unordered_map and bsl::unordered_set.
Public Types | |
| typedef const char * | first_argument_type |
| typedef const char * | second_argument_type |
| typedef bool | result_type |
Public Member Functions | |
| BSLMF_NESTED_TRAIT_DECLARATION (CStringEqualTo, bsl::is_trivially_default_constructible) CStringEqualTo()=default | |
| CStringEqualTo (const CStringEqualTo &original)=default | |
| ~CStringEqualTo ()=default | |
| CStringEqualTo & | operator= (const CStringEqualTo &)=default |
| bool | operator() (const char *lhs, const char *rhs) const |
| typedef const char* bdlb::CStringEqualTo::first_argument_type |
| typedef bool bdlb::CStringEqualTo::result_type |
| typedef const char* bdlb::CStringEqualTo::second_argument_type |
|
default |
Create a CStringEqualTo object.
CStringEqualTo is an empty (stateless) type, this operation has no observable effect.
|
default |
Destroy this object.
|
default |
Create a CStringEqualTo object.
|
inline |
Return true if the specified lhs string has the same (case sensitive) value as the specified rhs string, and false otherwise.
lhs and rhs point to null-terminated strings.
|
default |
Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object.
CStringEqualTo is an empty (stateless) type, this operation has no observable effect.