Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::imm Namespace Reference

Classes

class  list
 
class  sorted_list
 

Functions

template<class T >
list< T > cons (const T &h, list< T > t)
 
template<class T >
list< T > operator+ (const T &h, list< T > t)
 
template<class T >
list< T > operator+ (list< T > l1, list< T > l2)
 
template<class T >
list< T > make (T a[], int n)
 
template<class T >
io::Outputoperator<< (io::Output &out, list< T > l)
 

Function Documentation

template<class T >
list< T > elm::imm::cons ( const T &  h,
list< T >  tl 
)

Build a new list node with h value and prepend it to tl.

Parameters
hItem to store in the new node.
tList to preprend to.
Returns
Created list.

References elm::imm::list< T >::cons().

Referenced by make(), and operator+().

template<class T >
list<T> elm::imm::make ( a[],
int  n 
)

References cons().

template<class T >
list<T> elm::imm::operator+ ( const T &  h,
list< T >  t 
)

References cons().

template<class T >
list<T> elm::imm::operator+ ( list< T >  l1,
list< T >  l2 
)
template<class T >
io::Output& elm::imm::operator<< ( io::Output &  out,
list< T >  l 
)

References elm::io::f(), and elm::io::out.