BloombergLP::bdlb::CStringLess

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. Note that this class is an empty POD type.

Synopsis

Declared in <bdlb_cstringless.h>

struct CStringLess;

Type Aliases

NameDescription
first_argument_type First argument type for this function object.
result_type Result type for this function object.
second_argument_type Second argument type for this function object.

Member Functions

NameDescription
operator() Return true if the specified lhs string is lexicographically ordered before the specified rhs string, and false otherwise. The behavior is undefined unless both lhs and rhs point to null-terminated strings.
operator BloombergLP::bslmf::NestedTraitDeclaration<CStringLess, is_trivially_default_constructible> Declare that this type is trivially copyable.