Provides a partial order between device memory values. This operator is provided so that this object can be used as a key in an ordered map.
| 73 | // This operator is provided so that this object can be used as a key in an |
| 74 | // ordered map. |
| 75 | bool operator<(const DeviceMemoryBase &other) const { |
| 76 | return opaque() < other.opaque(); |
| 77 | } |
| 78 | |
| 79 | // Returns the size, in bytes, for the backing memory. |
| 80 | uint64 size() const { return size_; } |