BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsl::StringComparator Struct Reference

#include <bslstp_exfunctional.h>

Public Member Functions

 BSLMF_NESTED_TRAIT_DECLARATION (StringComparator, bsl::is_trivially_copyable)
 
bool operator() (const char *a, const char *b) const
 

Detailed Description

This class is a functor that provides comparison between two const char * strings.

Member Function Documentation

◆ BSLMF_NESTED_TRAIT_DECLARATION()

bsl::StringComparator::BSLMF_NESTED_TRAIT_DECLARATION ( StringComparator  ,
bsl::is_trivially_copyable   
)

◆ operator()()

bool bsl::StringComparator::operator() ( const char *  a,
const char *  b 
) const
inline

Return true if the specified strings a and b have the same value, and return false otherwise. Two strings have the same value if the result of std::strcmp returns 0.


The documentation for this struct was generated from the following file: