• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: vector of bools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vector of bools


  • Subject: Re: vector of bools
  • From: Boyd Collier <email@hidden>
  • Date: Thu, 6 Apr 2006 18:14:46 -0700

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: This email sent to email@hidden
  • Follow-Ups:
    • Re: vector of bools
      • From: John Stiles <email@hidden>
References: 
 >Array operators (From: Julio Cesar Silva dos Santos <email@hidden>)
 >vector of bools (From: Boyd Collier <email@hidden>)
 >Re: vector of bools (From: "Pontus Ilbring" <email@hidden>)

  • Prev by Date: Re: Pop up window ala msn messenger
  • Next by Date: Re: Pop up window ala msn messenger
  • Previous by thread: Re: vector of bools
  • Next by thread: Re: vector of bools
  • Index(es):
    • Date
    • Thread