Home » U++ Library support » U++ Core » The right container
Re: The right container [message #51180 is a reply to message #51179] |
Sun, 17 February 2019 11:00   |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
koldo wrote on Sun, 17 February 2019 04:35Thank you Novo. But I want to save one data, not two.
In this case
won't work.
An one-value alternative is Index<int>, but you will be unable to write the code line above.
If your range of indices is small and sparse, you can just use regular Vector.
Another approach is to store data in a Vector and sort it, after that you will be able to use algorithms on sorted ranges.
Hope this helps.
Regards,
Novo
|
|
|
Goto Forum:
Current Time: Fri Jun 13 18:49:39 CEST 2025
Total time taken to generate the page: 0.03996 seconds
|