From 24c2d7e3b2755547f084c698c8a9a510509c0b98 Mon Sep 17 00:00:00 2001 From: Noobie99 Date: Sun, 11 Jun 2023 15:56:32 +0200 Subject: minor changes --- datastructures/bitset.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'datastructures') diff --git a/datastructures/bitset.cpp b/datastructures/bitset.cpp index 242d821..a89746c 100644 --- a/datastructures/bitset.cpp +++ b/datastructures/bitset.cpp @@ -4,3 +4,4 @@ bits._Find_next(2); //4 bits._Find_next(4); //10 bzw. N bits[x] = 1; //not bits.set(x) or bits.reset(x)! bits[x].flip(); //not bits.flip(x)! +bits.count() //number of set bits -- cgit v1.2.3