30#include <fmt/format.h>
64 const std::string&
name)
78 std::string_view
name)
122 [[nodiscard]] std::string_view
name() const noexcept {
return name_; }
139 return left.name() == right.name();
152 return left.name() != right.name();
165 :
public formatter<std::string_view> {
176 format_context& context)
const {
177 return formatter<std::string_view>::format(val.
name(), context);
MethodNameView(const std::string &name)
Constructor.
MethodNameView(const MethodName &name) noexcept
Constructor.
MethodNameView(const char *name, std::size_t size)
Constructor.
MethodNameView(std::string_view name)
Constructor.
std::string_view name() const noexcept
Get the method name.
std::string_view name_
Method name.
MethodNameView(const char *name)
Constructor.
Definition of MethodName class.
Namespace of fmt library.
bool operator!=(const MethodName &left, const MethodName &right) noexcept
Compare two method names.
bool operator==(const MethodName &left, const MethodName &right) noexcept
Compare two method names.
Namespace of cpp-msgpack-rpc library.
std::size_t operator()(const msgpack_rpc::messages::MethodNameView &value) const
Calculate the hash number of a value.
std::hash< std::string_view > string_view_hash_
Hash of string_view.