Public Types | Public Member Functions | List of all members
rmm::mr::detail::compare_blocks< block_type > Struct Template Reference

Comparator for block types based on pointer address. More...

#include <coalescing_free_list.hpp>

Public Types

using is_transparent = void
 

Public Member Functions

bool operator() (block_type const &lhs, block_type const &rhs) const
 
bool operator() (char const *ptr, block_type const &rhs) const
 
bool operator() (block_type const &lhs, char const *ptr) const
 

Detailed Description

template<typename block_type>
struct rmm::mr::detail::compare_blocks< block_type >

Comparator for block types based on pointer address.

This comparator allows searching associative containers of blocks by pointer rather than having to search by the contained type. Saves potentially error-prone temporary construction of a block when you just want to search by pointer.


The documentation for this struct was generated from the following file: