2013-01-17から1日間の記事一覧

STLのsetについて

こんな話もあるようです.http://lafstern.org/matt/col1.pdf http://codezine.jp/article/detail/6186

std::setのinsertが返すiteratorについて

std::setに要素を追加するコードとして以下のようなものを書いてみた. #include <iostream> #include <set> struct Element { Element(int const& arg1, int const& arg2) : first(arg1), second(arg2) {} int first; int second; }; inline bool operator<(Element const& </set></iostream>…