
【C++】Pythonのenumerate()関数(っぽいもの)を実装する
はじめに 前のエントリでは、Pythonのzip()関数に似た機能を持つ関数を作成しました ...

【C++】Pythonのzip()関数(っぽいもの)を実装する
はじめに C++11で追加された範囲for(range-based for)文は、コンテナ ...

【C++】コンテナを渡したらイテレータを返し、配列を渡したらポインタを返す
std:begin()やstd::end()の戻り値を受ける変数を宣言するために使います。 ...