/*
  iterate.hh -- define some list macros

  source file of the flowerlib

  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
*/


#ifndef ITERATE_HH
#define ITERATE_HH



#define iterator(set)		typeof((set).top())
#define iterator_bot(set)		typeof((set).bottom())

// should use top()
#define iter_top(set,var)	iterator(set) var(set)
#define iter_bot(set,var)	iterator(set) var(set.bottom())

#endif // ITERATE_HH
