U++ framework
Do not panic. Ask here before giving up.

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: 1433
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: Wed Sep 16 00:41:20 GMT+2 2026

Total time taken to generate the page: 0.00771 seconds