Re: vector of bools
Re: vector of bools
- Subject: Re: vector of bools
- From: John Stiles <email@hidden>
- Date: Thu, 6 Apr 2006 18:22:51 -0700
I think the idea is that, internally, a CFBitVector uses a more
compact representation than "UInt32". :)
Of course, CF is open-source, so you can verify this on your own.
On Apr 6, 2006, at 6:14 PM, Boyd Collier wrote:
Thanks for the suggestion. I hadn't run into CFBitVector, so I had
a look
at the documentation, and I see that a CFBitVector is made up of
CFBits, which
are, in turn, typedef'd like this:
typedef UInt32 CFBit;
So it would appear that there really isn't a significant saving of
memory
using a CFBitVector over the code I wrote, though Apple's code is,
presumably,
less likely to have a subtle error than mine.
Boyd
On Apr 5, 2006, at 9:19 AM, Pontus Ilbring wrote:
On 4/5/06, Boyd Collier <email@hidden> wrote:
Does cocoa have anything with the functionality of vector<bool>
from C
++? Using an array of BOOLs, as I'm now doing, seems wasteful.
There's Core Foundation's CFBitVector.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden