OpenVPN 3 Core Library
Loading...
Searching...
No Matches
hash.hpp File Reference
#include <string>
#include <cstdint>
#include <openvpn/common/exception.hpp>
#include <openvpn/common/size.hpp>
#include <openvpn/common/hexstr.hpp>
Include dependency graph for hash.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OPENVPN_HASH_METHOD(T, meth)
 

Macro Definition Documentation

◆ OPENVPN_HASH_METHOD

#define OPENVPN_HASH_METHOD (   T,
  meth 
)
Value:
namespace std { \
template <> \
struct hash<T> \
{ \
inline std::uint64_t operator()(const T &obj) const \
{ \
return obj.meth(); \
} \
}; \
}

Definition at line 30 of file hash.hpp.