head	1.1;
access;
symbols;
locks; strict;
comment	@// @;


1.1
date	94.09.02.02.43.28;	author rjj;	state Exp;
branches;
next	;


desc
@These files are of historical interest for UM v1.0.
@


1.1
log
@Initial revision
@
text
@// Emacs: -*- C++ -*-

// valueset_example.02        Value Set Iteration example

// Prints a value set with curly braces and commas

#include "Set.h"

int vec[] = {1, 5, 7, 3, 2, 9, 5};

main() {
    IA_Set<int>     vs2(vec, 7);	// define a value set

    IA_ValueSetIter<int> iter(vs2);	// and an iterator over that set

    int value;

    cout << "{";
    if (iter(value))   cout << value;   // Print the first value
    while (iter(value)) {               // Iterate while more values exist
	cout << ", " << value;          // Print the rest of the values
    }
    cout << "}";
}
@
