|
template<domain D> |
D bool | all (D bool b) |
|
template<domain D> |
D bool | all (D bool[[1]] vec) |
|
template<domain D, dim N> |
D bool | all (D bool[[N]] arr) |
|
Function for checking if all elements in a boolean vector are true.
- Note
- D - all protection domains
-
Supported types - bool
- Returns
- true if all of the input bits are set
-
false if any input bit is not set
- Note
- iteratively checks all elements in input vector and returns false when the first 0-bit is found.
- Leakage
- None
◆ all() [1/3]
◆ all() [2/3]
D bool all |
( |
D bool[[1]] |
vec | ) |
|
- Parameters
-
vec | - boolean 1-dimensional vector |
◆ all() [3/3]
D bool all |
( |
D bool[[N]] |
arr | ) |
|
- Parameters
-
arr | - boolean any dimension array |