|
| template<domain D> |
| D bool | all (D bool b) |
| |
| template<domain D, dim N> |
| D bool | all (D bool 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/2]
template<domain D, dim N>
- Parameters
-
| arr | - boolean any dimension array |
◆ all() [2/2]
- Parameters
-
| b | - boolean scalar |
| vec | - boolean 1-dimensional vector |