1

Is it possible to use bitset in iOS just like C++? Or how can I use bitset in iOS coding? Thanks in advance!

Rocky
  • 1,287
  • 3
  • 15
  • 37

1 Answers1

5

The principal development language for iOS is Objective-C, which can't use C++ types.

However, you can add C++ sources to your projects or use Objective-C++ (which allows you to mix Objective-C and C++) and hence use std::bitset.

Community
  • 1
  • 1
Georg Fritzsche
  • 97,545
  • 26
  • 194
  • 236