|
Lolly 1.4.28
|
#include "list.hpp"

Go to the source code of this file.
Macros | |
| #define | LIST_CC |
Functions | |
| 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 > | |
| 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 > | |
| 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). | |
| 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) |
| 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) |
| Get the first n items of a list. | |
| template<class T > | |
| list< T > | tail (list< T > l, int n) |
| Get all but the first n items of 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. | |
| tm_ostream & operator<< | ( | tm_ostream & | out, |
| list< T > | l ) |
Return the last item of the list. The input list must not be an empty list.
| T |
| l | the list |
Definition at line 79 of file list.ipp.
Get a reference to the last item in a list.
| T | The type of the data stored in the list. |
| l | The list whose last item is to be accessed. |
Definition at line 89 of file list.ipp.
Remove the last item from a list.
| T | The type of the data stored in the list. |
| l | The list from which the last item is to be removed. |
Definition at line 97 of file list.ipp.
Check if two lists are strongly equal (i.e., have the same items in the same order).
| l1 | The first list to be compared. |
| l2 | The second list to be compared. |
Get the number of items in a list.
| T | The type of the data stored in the list. |
| l | The list whose length is to be calculated. |
Create a copy of a list.
| T | The type of the data stored in the list. |
| l | The list to be copied. |
Create a new list by appending an item to the end of an existing list.
| T | The type of the data stored in the lists. |
| l1 | The list to which the item will be appended. |
| x | The item to be appended. |
Create a new list by concatenating two existing lists.
| T | The type of the data stored in the lists. |
| l1 | The first list to be concatenated. |
| l2 | The second list to be concatenated. |
Get the first n items of a list.
| T | The type of the data stored in the list. |
| l | The list whose items are to be retrieved. |
| n | The number of items to retrieve (default is 1). |
Get all but the first n items of a list.
| T | The type of the data stored in the list. |
| l | The list whose items are to be retrieved. |
| n | The number of items to skip (default is 1). |
Create a new list with the items in reverse order.
| T | The type of the data stored in the list. |
| l | The list to be reversed. |
Create a new list with a specific item removed.
| T | The type of the data stored in the list. |
| l | The list from which the item is to be removed. |
| what | The item to be removed. |
Check if a list contains a specific item.
| T | The type of the data stored in the list. |
| l | The list to be searched. |
| what | The item to search for. |