|
template<class T > |
bool | is_nil (list< T > l) |
| Check if a list is nil (i.e., an empty list).
|
|
template<class T > |
bool | is_atom (list< T > l) |
| Check if a list is an atom (i.e., a single item).
|
|
template<class T > |
bool | strong_equal (list< T > l1, list< T > l2) |
| Check if two lists are strongly equal (i.e., have the same items in the same order).
|
|
| CONCRETE_NULL_TEMPLATE_CODE (list, class, T) |
|
template<class T > |
int | N (list< T > l) |
| Get the number of items in a list.
|
|
template<class T > |
list< T > | copy (list< T > l) |
| Create a copy of a list.
|
|
template<class T > |
list< T > | operator* (list< T > l1, T x) |
| Create a new list by appending an item to the end of an existing list.
|
|
template<class T > |
list< T > | operator* (list< T > l1, list< T > l2) |
| Create a new list by concatenating two existing lists.
|
|
template<class T > |
list< T > | head (list< T > l, int n=1) |
| Get the first n items of a list.
|
|
template<class T > |
list< T > | tail (list< T > l, int n=1) |
| Get all but the first n items of a list.
|
|
template<class T > |
T | last_item (list< T > l) |
| Return the last item of the list. The input list must not be an empty list.
|
|
template<class T > |
T & | access_last (list< T > &l) |
| Get a reference to the last item in a list.
|
|
template<class T > |
list< T > & | suppress_last (list< T > &l) |
| Remove the last item from a list.
|
|
template<class T > |
list< T > | reverse (list< T > l) |
| Create a new list with the items in reverse order.
|
|
template<class T > |
list< T > | remove (list< T > l, T what) |
| Create a new list with a specific item removed.
|
|
template<class T > |
bool | contains (list< T > l, T what) |
| Check if a list contains a specific item.
|
|
template<class T > |
tm_ostream & | operator<< (tm_ostream &out, list< T > l) |
|
template<class T > |
list< T > & | operator<< (list< T > &l, T item) |
|
template<class T > |
list< T > & | operator<< (list< T > &l1, list< T > l2) |
|
template<class T > |
list< T > & | operator>> (T item, list< T > &l) |
|
template<class T > |
list< T > & | operator<< (T &item, list< T > &l) |
|
template<class T > |
bool | operator== (list< T > l1, list< T > l2) |
|
template<class T > |
bool | operator!= (list< T > l1, list< T > l2) |
|
template<class T > |
bool | operator< (list< T > l1, list< T > l2) |
|
template<class T > |
bool | operator<= (list< T > l1, list< T > l2) |
|
- Copyright
- GPLv3
linked lists with reference counting
- Author
- Joris van der Hoeven
- Date
- 1999
Definition in file list.hpp.