Question: Whats the best approach to check if multiple bits are set with bitset<8>?
For example &-operation with uint8\_t variable ?
`(bitsetvariable & flag) == 0` or is something like this possible
`bitsetvariable.test(std::bitset<8>(flag))`
?

Answer: 
The `bitset` class has a [`to_ulong` member function](https://en.cppreference.com/w/cpp/utility/bitset/to_ulong) that can convert the bits to an `unsigned long`.

```
if (bitsetvariable.to_ulong() == flag)

```
Best solution would be to use the `all/any/none`; check [cppreference](https://en.cppreference.com/w/cpp/utility/bitset/all_any_none)!

If you need to verify a specific *ID* the solution is to use `test` ([doc](https://en.cppreference.com/w/cpp/utility/bitset/test))