Check if mem if allocated with an allocator for mem_type.
a memory type
true if mem was allocated from an allocator for mem_type.
Check if mem if allocated with an allocator for mem_type.