我想枚举布尔表示[0,31]
并将其存储以tries
供以后使用。
static const int N = 5;
vector<bool> tries(N);
for(int i = 0;i < (2<<N); i++){
//can vector<bool> initialized by int?
//so I don't have to do bit operation
for (int t = 0; t < N; ++t)
{
tries[t] = i&(1UL<<t);
}
...
}