1
edit
Changes
Iterator
,no edit summary
print "$val\n";
}
== Examples ==
=== C++ ===
This is a source file called transfer.cc, created by the Gnome VFS Development Team
void transfer_list(const Glib::StringArrayHandle& source_uri_list, const Glib::StringArrayHandle& target_uri_list,
TransferOptions options,
ErrorMode error_mode,
OverwriteMode overwrite_mode,
const SlotProgress& slot)
{
typedef std::list< Glib::RefPtr<Uri> > uri_list;
uri_list sources, targets;
//Build lists of RefPtr<Uri>s from the strings:
Glib::StringArrayHandle::const_iterator iter_target = target_uri_list.begin();
for(Glib::StringArrayHandle::const_iterator iter = source_uri_list.begin(); iter != source_uri_list.end(); ++iter)
{
if(iter_target != target_uri_list.end())
{
sources.push_back( Uri::create(*iter) );
targets.push_back( Uri::create(*iter_target) );
iter_target++;
}
}
transfer_list_uris(sources, targets, options, error_mode, overwrite_mode, slot);
}
== References ==
* [http://en.wikipedia.org/wiki/Iterator Wikipedia entry on Iterator]