Files
Nuake-custom/Nuake/src/Resource/UUID.h
antopilo c15bf532ae Compilation succesful on Linux Ubuntu
Probably broke a lot of things
2023-09-27 01:48:05 -04:00

31 lines
419 B
C++

#pragma once
#include <cstdint>
#include <functional>
namespace Nuake
{
class UUID
{
private:
uint64_t m_UUID;
public:
UUID();
UUID(uint64_t uuid);
UUID(const UUID&) = default;
operator uint64_t() const { return m_UUID; }
};
}
namespace std
{
template<>
struct hash<Nuake::UUID>
{
std::size_t operator()(const Nuake::UUID& uuid) const
{
return hash<uint64_t>()((uint64_t)uuid);
}
};
}