16 #ifndef SAMPLES_SOURCES_HEAP_GAMEHEAP_GAMEHEAP_H_ 17 #define SAMPLES_SOURCES_HEAP_GAMEHEAP_GAMEHEAP_H_ 25 static HeapHandle CreateHeap(
void* mem,
size_t size)
NLIB_NOEXCEPT;
29 HeapHandle(
const HeapHandle& h)
NLIB_NOEXCEPT : idx_(h.idx_) {}
55 friend
void SetThreadDefaultHeapHandle(HeapHandle h)
NLIB_NOEXCEPT;
56 friend
bool operator==(const HeapHandle& lhs, const HeapHandle& rhs)
NLIB_NOEXCEPT;
57 friend
bool operator!=(const HeapHandle& lhs, const HeapHandle& rhs)
NLIB_NOEXCEPT;
60 inline
bool operator==(const HeapHandle& lhs, const HeapHandle& rhs)
NLIB_NOEXCEPT {
61 return lhs.idx_ == rhs.idx_;
65 return lhs.idx_ != rhs.idx_;
84 HeapHandle GetHeapHandle() const
NLIB_NOEXCEPT {
return handle_; }
97 #endif // SAMPLES_SOURCES_HEAP_GAMEHEAP_GAMEHEAP_H_ bool operator!=(const HeapHash &rhs, const HeapHash &lhs)
2つのサマリを比較して等価でなければ、trueを返します。
#define NLIB_NOEXCEPT
環境に合わせてnoexcept 又は同等の定義がされます。