isMajority

Calculates the majority votes

@safe @nogc pure nothrow
bool
isMajority
(
T
S
)
(
const T voting
,
const S node_size
)
if (
allSatisfy!(isIntegral, T, S)
)

Parameters

voting T

Number of votes

node_size S

Total number of votes

Return Value

Type: bool

Returns true if the votes are more than 2/3