Logo Search packages:      
Sourcecode: inkscape version File versions

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

Sets a new tail for an existing linked list.

Sets the tail of the given MutableList<>, corresponding to the second argument of cons().

Results of calling this on an empty list are undefined.

See also:



list the list; cannot be empty
rest the new tail; corresponds to the second argument of cons()
the new tail

Definition at line 386 of file list.h.

Referenced by Inkscape::XML::SimpleNode::setAttribute().

    list._cell->next = rest._cell;
    return reinterpret_cast<MutableList<T> &>(list._cell->next);

Generated by  Doxygen 1.6.0   Back to index