SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions

Functions

template<domain D>
D bool all (D bool b)
 
template<domain D, dim N>
D bool all (D bool arr)
 

Detailed Description

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

Function Documentation

◆ all() [1/2]

template<domain D, dim N>
D bool all ( D bool  arr)
Parameters
arr- boolean any dimension array

◆ all() [2/2]

template<domain D>
D bool all ( D bool  vec)
Parameters
b- boolean scalar
vec- boolean 1-dimensional vector