std::bitset::all, std::bitset::any, std::bitset::none

From Cppreference

Jump to: navigation, search
bool all() const;

bool any() const;

bool none() const;

Checks if all, any or none bits are set to true.

1) Checks if all bits are set to true

2) Checks if any bits are set to true

3) Checks if none bits are set to true

[edit] Parameters

(none)

[edit] Return value

1) true if all bits are set to true, otherwise false

2) true if any of the bits are set to true, otherwise false

3) true if none of the bits are set to true, otherwise false

[edit] Example