
【C++】可変引数テンプレートの型がすべて同じ型であることをチェックするメタ関数
可変引数テンプレートを使うと可変長引数を持つ関数を実装できます。 template ...

【C++】【Eigen】最急降下法を実装する

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

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

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

【C++】いまさらだけどtupleを理解する
タプル(tuple)とは タプルとは、複数の型の値をひとまとめにして取り扱うためものです。 ...

【C++】format() – C++でprintf()風の書式指定を使う
はじめに C++で値を出力するにはストリームを使いますが、桁数設定や小数点以下の精度表示を ...
