SlHelpers
SlHelpers::String::Eq Struct Reference

Equality test for string and string_view to be used in containers. More...

#include <String.h>

Public Types

using is_transparent = void
 For containers to know this is a transparent eq test.
 

Public Member Functions

bool operator() (std::string_view a, std::string_view b) const noexcept
 Compare any kinds of two strings a and b. More...
 

Detailed Description

Equality test for string and string_view to be used in containers.

It is to support find() to work on both string and string_view.

Member Function Documentation

◆ operator()()

bool SlHelpers::String::Eq::operator() ( std::string_view  a,
std::string_view  b 
) const
inlinenoexcept

Compare any kinds of two strings a and b.

Parameters
aFirst string
bSecond string
Returns
true if a == b

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