kanetaiの二次記憶装置

プログラミングに関するやってみた、調べた系のものをQitaに移して、それ以外をはてブでやる運用にしようと思います。http://qiita.com/kanetai

2011-11-05から1日間の記事一覧

lexical_cast

lexical_cast - 1.47.0 atoi,atof,sprintf,sscanf, etc.を使わずに、文字列int,double, etc. の変換ができる。 C++11でstd::to_string()が使えるようになったので、使用頻度は減りますが、 lexical_castはoperator >を定義しときゃ使えるので、std::complex…

Boost.Foreach

Chapter 7. Boost.Foreach - 1.47.0 マクロで定義されたforeach。 (C+11でRange-based for loopがサポートされたので必要なくなっちゃいましたね) 配列、STLコンテナ、std::pairイテレータ、Null-terminated string(char and wchar_t)を回せる。 ※ただし、マ…

progress_display

Boost Timer Documentation - 1.46.0 deprecatedだと...知らんな.mylibに保存した 名前空間/ヘッダ boost #include <boost/progress.hpp> コンストラクタ 使用例見りゃだいたいわかる progress_display(unsigned long expected_count, std::ostream & os = std::cout, const std:</boost/progress.hpp>…