Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » how can i use iterators with NTL?
Re: how can i use iterators with NTL? [message #16262 is a reply to message #16261] Thu, 05 June 2008 05:37 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
v2.begin() + some_int?

Does not make sense to me.

Anyway, in U++ closest equivalent is

Vector<int> a;
....
Vector<int> b;
b.Append(a, pos, count);

if you insist on iterators, you have to "translate" them

b.Append(a, begin - a.Begin(), end - begin);

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can we get a Join that uses WString?
Next Topic: MemoryBreakpoint definition?
Goto Forum:
  


Current Time: Mon Aug 25 06:12:47 CEST 2025

Total time taken to generate the page: 0.06278 seconds