BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslstl_stringview_relops::StringView_CompareUtil< CHAR_TYPE, CHAR_TRAITS > Struct Template Reference

#include <bslstl_stringview.h>

Detailed Description

template<class CHAR_TYPE, class CHAR_TRAITS>
struct bslstl_stringview_relops::StringView_CompareUtil< CHAR_TYPE, CHAR_TRAITS >

This component-private utility struct contains functions for comparing two string_view objects. This functionality is needed to implement the comparison operators operating on string_view objects without resorting to code duplication or delegating directly between different overloads of the same operator. The need to avoid delegation to overloads stems from a bug in xlC 12 on AIX leading to incorrect overload resolution and infinite recursion.

See bslstl_stringview

Public Types

typedef bsl::basic_string_view< CHAR_TYPE, CHAR_TRAITS > StringView
 

Static Public Member Functions

static BSLS_KEYWORD_CONSTEXPR_CPP17 bool equals (StringView lhs, StringView rhs) BSLS_KEYWORD_NOEXCEPT
 
static BSLS_KEYWORD_CONSTEXPR_CPP17 bool lessThan (StringView lhs, StringView rhs) BSLS_KEYWORD_NOEXCEPT
 

Member Typedef Documentation

◆ StringView

template<class CHAR_TYPE , class CHAR_TRAITS >
typedef bsl::basic_string_view<CHAR_TYPE, CHAR_TRAITS> bslstl_stringview_relops::StringView_CompareUtil< CHAR_TYPE, CHAR_TRAITS >::StringView

Member Function Documentation

◆ equals()

template<class CHAR_TYPE , class CHAR_TRAITS >
BSLS_KEYWORD_CONSTEXPR_CPP17 bool bslstl_stringview_relops::StringView_CompareUtil< CHAR_TYPE, CHAR_TRAITS >::equals ( StringView  lhs,
StringView  rhs 
)
inlinestatic

Return true if lhs == rhs and false otherwise.

◆ lessThan()

template<class CHAR_TYPE , class CHAR_TRAITS >
BSLS_KEYWORD_CONSTEXPR_CPP17 bool bslstl_stringview_relops::StringView_CompareUtil< CHAR_TYPE, CHAR_TRAITS >::lessThan ( StringView  lhs,
StringView  rhs 
)
inlinestatic

Return true if lhs < rhs and false otherwise.


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