|
BDE 4.39.x Production Release
|
#include <bdlb_cstringless.h>
This struct defines an ordering on null-terminated character strings, enabling them for use as keys in the standard associative containers such as bsl::map and bsl::set.
See bdlb_cstringless
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 (CStringLess, bsl::is_trivially_copyable) | |
| BSLMF_NESTED_TRAIT_DECLARATION (CStringLess, bsl::is_trivially_default_constructible) | |
| CStringLess ()=default | |
| CStringLess (const CStringLess &original)=default | |
| ~CStringLess ()=default | |
| CStringLess & | operator= (const CStringLess &rhs)=default |
| bool | operator() (const char *lhs, const char *rhs) const |
| typedef const char* bdlb::CStringLess::first_argument_type |
| typedef bool bdlb::CStringLess::result_type |
| typedef const char* bdlb::CStringLess::second_argument_type |
|
default |
Create a CStringLess object.
|
default |
Create a CStringLess object.
CStringLess is an empty (stateless) type, this operation has no observable effect.
|
default |
Destroy this object.
| bdlb::CStringLess::BSLMF_NESTED_TRAIT_DECLARATION | ( | CStringLess | , |
| bsl::is_trivially_copyable | |||
| ) |
| bdlb::CStringLess::BSLMF_NESTED_TRAIT_DECLARATION | ( | CStringLess | , |
| bsl::is_trivially_default_constructible | |||
| ) |
|
inline |
Return true if the specified lhs string is lexicographically ordered before 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.
CStringLess is an empty (stateless) type, this operation has no observable effect.