2013-12-26から1日間の記事一覧

エンコード文字列 更新

C++

エンコード文字列のUTF-32に、codeunit_size()、codeunit_at()、codeunit_substr()、およびイテレータを実装しました。 #include <iostream> #include <shand/encoding_string.hpp> int main() { using namespace shand; encoding_string<encoding::utf32> s = U"あいうえお"; // 文字数を取得 std::cout << s.codeu</encoding::utf32></shand/encoding_string.hpp></iostream>…

Boost 1.56.0でのMultiIndex

C++

Boost.MultiIndex 1.56 preview: major update with new hashed index implementation Boost 1.56.0に向けて、Boost.MultiIndexがhashed indexを完全に再実装したそうです。 再実装の内容としては、今まで要素の削除にO(D(n))計算量かかっていたのを、O(1)に…