Erstellen Sie eine Bitset von 1024 Bits,

std::bitset<1024 * 1024> my_bitset;
Good Gharial