2012-01-13から1日間の記事一覧

アダプトされたイテレータの元の値を得る

C++

Range adaptors and compatibility with non-adapted iterators 先日、Boost MLであった話。 map<int, string> m; auto it = find_if(m | map_values, pred); if (it != m.end()) { } Rangeアダプタ適用結果を用いてイテレータを得た場合、そのイテレータはイテレータアダ</int,>…