You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/llarp/path/path_types.hpp

21 lines
388 B
C++

#pragma once
#include <llarp/crypto/constants.hpp>
#include <llarp/util/aligned.hpp>
namespace llarp
{
struct PathID_t final : public AlignedBuffer<PATHIDSIZE>
{
using AlignedBuffer<PATHIDSIZE>::AlignedBuffer;
};
} // namespace llarp
namespace std
{
template <>
struct hash<llarp::PathID_t> : hash<llarp::AlignedBuffer<llarp::PathID_t::SIZE>>
{};
} // namespace std