Skip to content

Instantly share code, notes, and snippets.

@wallstop
Created March 18, 2014 23:27
Show Gist options
  • Save wallstop/9632168 to your computer and use it in GitHub Desktop.
Save wallstop/9632168 to your computer and use it in GitHub Desktop.
#pragma once
class BoolArray
{
public:
BoolArray(); // Default
BoolArray(const BoolArray& copy); // Copy constructor
BoolArray(BoolArray&& move); // Move constructor
~BoolArray(); // Destructor
bool get(unsigned int index) const;
void set(unsigned int index, bool value);
void push_back(bool value);
void* data();
const void* data() const;
void assign(const void* data);
private:
unsigned char* m_data;
unsigned int m_bitCount;
unsigned int m_byteCount;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment