Skip to content

A C++ class for storing boolean values efficiently using a single bit instead of byte per value

License

Notifications You must be signed in to change notification settings

youssef-saaed/BooleanArray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BooleanArray

A C++ class for storing boolean values efficiently using a single bit per value.

Usage

Include the BooleanArray.h header file in your C++ project and use the BooleanArray class as follows:

#include "BooleanArray.h"

// Example Usage
int main() {
    // Create a BooleanArray with a specified size
    BooleanArray boolArray(100);

    // Set and get values
    boolArray.set(5, true);
    bool value = boolArray[5];
    
    return 0;
}

About

A C++ class for storing boolean values efficiently using a single bit instead of byte per value

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages