memgraph/include/utils/void.hpp

15 lines
320 B
C++
Raw Normal View History

#pragma once
#include "utils/total_ordering.hpp"
// Type which represents nothing.
class Void : public TotalOrdering<Void>
{
public:
friend bool operator<(const Void &lhs, const Void &rhs) { return false; }
friend bool operator==(const Void &lhs, const Void &rhs) { return true; }
};
2016-09-08 20:25:52 +08:00
static Void _void = {};