Files
spark/src/lib/quickbus/core/TableID.h
T
2017-08-07 17:21:12 -04:00

23 lines
469 B
C++

#pragma once
#include "lib/utils/ValueWrapper.h"
#include <string>
namespace bts {
namespace qbus {
class TableTag {};
typedef utils::ValueWrapper<TableTag,std::string> TableID;
TableID make_table_id();
}}
// yeah, this is crazy, but that's how you do it.
namespace std {
template <>
struct hash<bts::qbus::TableID>
{
std::size_t operator()(const bts::qbus::TableID& k) const {
return std::hash<typename bts::qbus::TableID::Value> () (k.value());
}
};
}