carb::memory::operator==

Defined in carb/memory/ArenaAllocator.h

template<class T, class U, class Allocator1, class Allocator2>
bool carb::memory::operator==(const ArenaAllocator<T, Allocator1> &lhs, const ArenaAllocator<U, Allocator2> &rhs)

Equality operator.

Parameters
  • lhs – An allocator to compare

  • rhs – An allocator to compare

Returns

true if lhs and rhs can deallocate each other’s allocations.