Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

Bits

 

class Bits : private Moveable<Bits

Bits is a simple container class representing "unlimited" array of bools, implemented using binary arrays, packing 8 bits per byte of allocated space (plus some allocation reserve). It is moveable type with pick transfer sematics.

 

Public Method List

 

void Clear()

Sets all bools to false.

 


 

void Set(int i, bool b = true)

Sets bit i to b .

 


 

bool Get(int iconst

bool operator[](int iconst

Returns the value of bool i.

 

Last edit by koldo on 10/17/2014. Do you want to contribute?. T++