Sparkplug B C++ Library 1.0.0
Modern C++-23 implementation of Eclipse Sparkplug B 2.2 specification
Loading...
Searching...
No Matches
sparkplug::HostApplication::TransparentStringHash Struct Reference

Transparent hash for string keys to enable heterogeneous lookup. More...

#include <host_application.hpp>

Public Types

using is_transparent = void
 
using hash_type = std::hash< std::string_view >
 

Public Member Functions

size_t operator() (std::string_view str) const noexcept
 
size_t operator() (const std::string &str) const noexcept
 

Detailed Description

Transparent hash for string keys to enable heterogeneous lookup.

Definition at line 126 of file host_application.hpp.

Member Typedef Documentation

◆ hash_type

using sparkplug::HostApplication::TransparentStringHash::hash_type = std::hash<std::string_view>

Definition at line 128 of file host_application.hpp.

◆ is_transparent

using sparkplug::HostApplication::TransparentStringHash::is_transparent = void

Definition at line 127 of file host_application.hpp.

Member Function Documentation

◆ operator()() [1/2]

size_t sparkplug::HostApplication::TransparentStringHash::operator() ( const std::string &  str) const
inlinenoexcept

Definition at line 132 of file host_application.hpp.

◆ operator()() [2/2]

size_t sparkplug::HostApplication::TransparentStringHash::operator() ( std::string_view  str) const
inlinenoexcept

Definition at line 129 of file host_application.hpp.


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