sources/list.h

changeset 164
e3794f48a589
parent 163
5948441a1951
child 179
7fc34735178e
equal deleted inserted replaced
163:5948441a1951 164:e3794f48a589
268 std::sort (begin(), end()); 268 std::sort (begin(), end());
269 } 269 }
270 270
271 Self splice(int start, int end, int step = 1) const 271 Self splice(int start, int end, int step = 1) const
272 { 272 {
273 start = clamp(start, 0, size() - 1); 273 start = clamp(start, 0, size());
274 end = clamp(end, 0, size() - 1); 274 end = clamp(end, 0, size());
275 275
276 if (end <= start) 276 if (end <= start)
277 { 277 {
278 return Self(); 278 return Self();
279 } 279 }

mercurial