Lines Matching refs:from_begin
110 static void MoveRange(T* from_begin, T* from_end, T* to) { in MoveRange() argument
111 DCHECK(!RangesOverlap(from_begin, from_end, to)); in MoveRange()
112 memcpy(to, from_begin, (from_end - from_begin) * sizeof(T)); in MoveRange()
121 static void MoveRange(T* from_begin, T* from_end, T* to) { in MoveRange() argument
122 DCHECK(!RangesOverlap(from_begin, from_end, to)); in MoveRange()
123 while (from_begin != from_end) { in MoveRange()
124 new (to) T(std::move(*from_begin)); in MoveRange()
125 from_begin->~T(); in MoveRange()
126 from_begin++; in MoveRange()
137 static void MoveRange(T* from_begin, T* from_end, T* to) { in MoveRange() argument
138 DCHECK(!RangesOverlap(from_begin, from_end, to)); in MoveRange()
139 while (from_begin != from_end) { in MoveRange()
140 new (to) T(*from_begin); in MoveRange()
141 from_begin->~T(); in MoveRange()
142 from_begin++; in MoveRange()
148 static bool RangesOverlap(const T* from_begin, in RangesOverlap() argument
151 return !(to >= from_end || to + (from_end - from_begin) <= from_begin); in RangesOverlap()