mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields
m::StrEqual Struct Reference

Compares two cstrings for equality. More...

#include <fn.hpp>

Public Types

using is_transparent = void
 

‍Mark this callable as transparent, allowing for comparing various types that are interoperable.


 

Public Member Functions

bool operator() (const char *first, const char *second) const
 
bool operator() (const std::string_view &first, const std::string_view &second) const
 
bool operator() (T &&first, U &&second) const
 

Data Fields

template<typename T , typename U >
 and { std::string_view(std::forward<U>(u))
 

Detailed Description

Compares two cstrings for equality.

Definition at line 90 of file fn.hpp.

Member Typedef Documentation

◆ is_transparent

‍Mark this callable as transparent, allowing for comparing various types that are interoperable.

See https://en.cppreference.com/w/cpp/container/unordered_map/find.

Definition at line 94 of file fn.hpp.

Member Function Documentation

◆ operator()() [1/3]

bool m::StrEqual::operator() ( const char *  first,
const char *  second 
) const
inline

Definition at line 96 of file fn.hpp.

References m::streq().

◆ operator()() [2/3]

bool m::StrEqual::operator() ( const std::string_view &  first,
const std::string_view &  second 
) const
inline

Definition at line 97 of file fn.hpp.

◆ operator()() [3/3]

bool m::StrEqual::operator() ( T &&  first,
U &&  second 
) const
inline

Definition at line 102 of file fn.hpp.

Field Documentation

◆ and

template<typename T , typename U >
m::StrEqual::and { std::string_view(std::forward<U>(u))

Definition at line 100 of file fn.hpp.


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