Logo Search packages:      
Sourcecode: inkscape version File versions

template<typename T>
List< T > const & Inkscape::Util::rest ( List< T > const &  list  )  [inline]

Returns the remainder of a linked list after the first element.

Returns the remainder of the list after the first element (its "tail").

This will be the same as the second argument passed to cons().

The results of calling this on an empty list are undefined.

See also:


list the list; cannot be empty
the remainder of the list

Definition at line 340 of file list.h.

    return reinterpret_cast<List<T> const &>(list._cell->next);

Generated by  Doxygen 1.6.0   Back to index