thrust

◆ is_equal()

template<typename Pointer = void *>
__host__ __device__ bool thrust::mr::memory_resource< Pointer >::is_equal ( const memory_resource< Pointer > &  other) const
inlinenoexcept

Compares this resource to the other one. The default implementation uses identity comparison, which is often the right thing to do and doesn't require RTTI involvement.

Parameters
otherthe other resource to compare this resource to
Returns
whether the two resources are equivalent.

Referenced by thrust::mr::memory_resource< device_ptr< void > >::do_is_equal().