エンジニアのソフトウェア的愛情

または私は如何にして心配するのを止めてプログラムを・愛する・ようになったか

2007-04-17から1日間の記事一覧

配列っぽいビット列

C++

ちと長くなってしまった。 STLと連携できるように、イテレータも定義したいところ。 #include <limits> template<int N> class BitArray { public: typedef unsigned int ValueType; static const int BitsPerValue = std::numeric_limits<ValueType>::digits; static const int ArrayS</valuetype></int></limits>…