- 手法やアルゴリズムをまとめたチートシートです。
- ドキュメントはこちら https://buyoh.github.io/codeLib2
- プロトタイププログラムに組み込むことを想定しています。大半のコードで入力値チェックを行いません。
- 別の構造体を前提とするコードがあります(example:
maxflow
はFlow
が必要.)
https://github.com/buyoh/codeLib2-htmldoc
- この repository を検索しやすくするために作ったものです。
- https://buyoh.github.io/codeLib2 に同様のものがあります
- redux, webpack の勉強を兼ねて作成した雑な整理ツールです
// %=BEGIN DOC
// %title
// タイトル
//
// %overview
// ファイルの概要.
//
// %usage
// int func(int x);
// x : 引数についての説明
// @ret : 返り値についての説明
//
// %require
// 必要な別のスニペットや記述
// ```
#include <vector>
using namespace std;
#include "src/cpp/graph/datastructure/graph.cpp"
// ```
//
// %verified
// 検証されたかどうか.
//
// %references
// 参考資料など.
//
// %words
// キーワード
//
// %tags
// nolint, (wip: 未実装), (unverified: 未検証), (deprecated: 非推奨)
// %=END DOC
// %=BEGIN CODE
template<typename T, typename U>
U plus(const T& t1, const T& t2) {
return t1 + t2;
}
// %=END CODE
1を書き直したから