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 » Is there way to get subrange of a vector quickly?
Is there way to get subrange of a vector quickly? [message #28675] Sat, 11 September 2010 11:58 Go to next message
aftershock is currently offline  aftershock
Messages: 143
Registered: May 2008
Experienced Member
Hi,

I would like to get a subrange of a vector quickly..
e.g. vector[1..end of vector] Is there a similar thing.


Is that possible?

Re: Is there way to get subrange of a vector quickly? [message #28677 is a reply to message #28675] Sat, 11 September 2010 16:29 Go to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
Elements of a Vector must have a Deep Copy Constructor, which should be called in case of assignment. So creating a subrange has to be a loop with assignment operators.

Dropping of the Deep Copy Constructor requirement would let you to call memcpy().


Regards,
Novo
Previous Topic: String.Mid() and Unicode
Next Topic: Problem with gcc compilers and -Wall
Goto Forum:
  


Current Time: Sun Apr 28 04:50:33 CEST 2024

Total time taken to generate the page: 1.68242 seconds