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