BloombergLP::bdlb::CStringLess

Less-than functor for null-terminated character strings.

Synopsis

Declared in <bdlb_cstringless.h>

struct CStringLess;

Description

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.

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.
operator BloombergLP::bslmf::NestedTraitDeclaration<CStringLess, is_trivially_default_constructible> Declare that this type is trivially copyable.