Lines Matching defs:other
281 // pointer from `new` or any other source.
659 Slice<T>::iterator::operator-(const iterator &other) const noexcept {
660 auto diff = std::distance(static_cast<char *>(other.pos),
666 bool Slice<T>::iterator::operator==(const iterator &other) const noexcept {
667 return this->pos == other.pos;
671 bool Slice<T>::iterator::operator!=(const iterator &other) const noexcept {
672 return this->pos != other.pos;
676 bool Slice<T>::iterator::operator<(const iterator &other) const noexcept {
677 return this->pos < other.pos;
681 bool Slice<T>::iterator::operator<=(const iterator &other) const noexcept {
682 return this->pos <= other.pos;
686 bool Slice<T>::iterator::operator>(const iterator &other) const noexcept {
687 return this->pos > other.pos;
691 bool Slice<T>::iterator::operator>=(const iterator &other) const noexcept {
692 return this->pos >= other.pos;
737 Box<T>::Box(Box &&other) noexcept : ptr(other.ptr) {
738 other.ptr = nullptr;
765 Box<T> &Box<T>::operator=(Box &&other) &noexcept {
769 this->ptr = other.ptr;
770 other.ptr = nullptr;
837 Vec<T>::Vec(const Vec &other) : Vec() {
838 this->reserve_total(other.size());
839 std::copy(other.begin(), other.end(), std::back_inserter(*this));
843 Vec<T>::Vec(Vec &&other) noexcept : repr(other.repr) {
844 new (&other) Vec();
853 Vec<T> &Vec<T>::operator=(Vec &&other) &noexcept {
855 this->repr = other.repr;
856 new (&other) Vec();
861 Vec<T> &Vec<T>::operator=(const Vec &other) & {
862 if (this != &other) {
864 new (this) Vec(other);