Home » U++ Library support » U++ Core » NTL container equivalent to STL bitset
|
|
|
|
Re: NTL container equivalent to STL bitset [message #37696 is a reply to message #37695] |
Sat, 03 November 2012 13:06 |
|
281264 wrote on Sat, 03 November 2012 12:12 | Vector<bool> looks suitable as well.
Javier
|
IIRC, Upp::Vector<bool> is NOT optimized for lower memory footprint (unlike std::vector<bool>), but I guess it might be slightly faster. So if you need to optimize memory use, you can use Bits and if you prefer speed, you can use Vector<bool>.
There is not much special about Bits... the interface is simple, basically just Set, Get, Clear and operator[] methods It behaves the same as other U++ containers - it is moveable, so it can be picked, otherwise, it is basically just a simple array
Honza
|
|
|
Goto Forum:
Current Time: Fri Mar 29 09:39:16 CET 2024
Total time taken to generate the page: 0.01213 seconds
|