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