I don't really understand your question, so I've put together a practical example, that is available on the vault:<http://www.boostpro.com/vault/index.php?action=downloadfile&filename=generator_iterator.zip&directory=&>