Lines Matching refs:other
44 AlignedBuf(const AlignedBuf& other) : AlignedBuf(other.mSize) { in AlignedBuf() argument
45 if (other.mBuffer) { // could have got moved out in AlignedBuf()
46 std::copy(other.mBuffer, other.mBuffer + other.mSize, mBuffer); in AlignedBuf()
50 AlignedBuf& operator=(const AlignedBuf& other) {
51 if (this != &other) {
52 AlignedBuf tmp(other);
58 AlignedBuf(AlignedBuf&& other) { *this = std::move(other); } in AlignedBuf() argument
60 AlignedBuf& operator=(AlignedBuf&& other) {
61 mBuffer = other.mBuffer;
62 mSize = other.mSize;
64 other.mBuffer = nullptr;
65 other.mSize = 0;
95 bool operator==(const AlignedBuf& other) const {
96 return 0 == std::memcmp(mBuffer, other.mBuffer, sizeof(T) * std::min(mSize, other.mSize));