blob: 89c1c480a6f444cfaebf6fb248d90000eea8ed1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma once
#include "handle-fwd.hpp"
#include "compat/assert.hpp"
namespace floormat::impl_handle {
template<typename Obj, uint32_t PageSize>
bool Handle<Obj, PageSize>::operator==(const Handle& other) const noexcept
{
bool ret = index == other.index;
fm_debug_assert(!ret || counter == other.counter);
return ret;
}
template<typename Obj, uint32_t PageSize>
Handle<Obj, PageSize>::operator bool() const noexcept
{
return index != (uint32_t)-1;
}
} // namespace floormat::impl_handle
namespace floormat {
} // namespace floormat
|