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

template<typename T>
reference first ( List< T > const &  list  )  [friend, inherited]

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

Generated by  Doxygen 1.6.0   Back to index