in Benchmarks/Benchmarks/Cpp/CppVectorBoolBenchmarks.swift [46:51]
6 lines of code
2 McCabe index (conditional complexity)
init<S: Sequence>(count: Int, trueBits: S) where S.Element == Int {
self.init(repeating: false, count: count)
for index in trueBits {
self[index] = true
}
}