Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

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

Returns the first value in a linked list.

Returns a reference to the first value in the list. This corresponds to the value of the first argument passed to cons().

If the list holds mutable values (or references to them), first() can be used as an lvalue.

For example:

first(list) = value;

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

See also:


list the list; cannot be empty
a reference to the first value in the list

Definition at line 320 of file list.h.

Referenced by Inkscape::Selection::center(), Inkscape::Selection::getSnapPointsConvexHull(), Geom::hausdorfl(), Geom::ConvexHull::is_clockwise(), sp_css_attr_scale_property_list(), and sp_item_notify_moveto().

    return list._cell->value;

Generated by  Doxygen 1.6.0   Back to index