dfx 0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
dfx::Utils::TransparentEqual Struct Reference

Transparent equality predicate for string-like lookups. More...

#include <dfx-utilities/StringMap.hpp>

Public Types

using is_transparent = void
 Marker enabling heterogeneous lookup in standard associative containers.

Public Member Functions

bool operator() (std::string_view lhs, std::string_view rhs) const noexcept
 Compare two string views.

Detailed Description

Transparent equality predicate for string-like lookups.

Compares two std::string_view values and advertises heterogeneous lookup support via is_transparent.

Member Typedef Documentation

◆ is_transparent

Marker enabling heterogeneous lookup in standard associative containers.

Member Function Documentation

◆ operator()()

bool dfx::Utils::TransparentEqual::operator() ( std::string_view lhs,
std::string_view rhs ) const
inlinenoexcept

Compare two string views.

Parameters
lhsLeft-hand side.
rhsRight-hand side.
Returns
true if equal, otherwise false.

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