Lines Matching refs:rest
43 List<T> const &rest(List<T> const &list);
46 MutableList<T> &rest(MutableList<T> const &list);
50 MutableList<T> const &rest);
90 friend List const &rest<>(List const &);
110 * cons() is synonymous with List<T>(first, rest), except that the
111 * compiler will usually be able to infer T from the type of \a rest.
145 friend List const &rest<>(List const &);
187 friend List const &rest<>(List const &);
198 * another later by using set_rest() or assignment through rest()
223 friend MutableList &rest<>(MutableList const &);
233 * provided as \a rest.
241 * @param rest the rest of the list; may be an empty list
251 List<T> const &rest)
253 return List<T>(first, rest);
261 * another later by using set_rest() or assignment through rest()
264 * This form of cons() is synonymous with MutableList<T>(first, rest),
265 * except that the compiler can usually infer T from the type of \a rest.
275 * @param rest the rest of the list; may be an empty list
281 MutableList<T> const &rest)
283 return MutableList<T>(first, rest);
343 inline List<T> const &rest(List<T> const &list) {
352 * element (its "tail"). For MutableList<>, rest() can be used as
357 * rest(list) = other;
369 inline MutableList<T> &rest(MutableList<T> const &list) {
381 * @see rest<>
386 * @param rest the new tail; corresponds to the second argument of cons()
392 MutableList<T> const &rest)
394 list._cell->next = rest._cell;