Skip to content

Latest commit

 

History

History
69 lines (56 loc) · 1.52 KB

readme.md

File metadata and controls

69 lines (56 loc) · 1.52 KB

codeLib2

What's this?

注意

  • プロトタイププログラムに組み込むことを想定しています。大半のコードで入力値チェックを行いません。
  • 別の構造体を前提とするコードがあります(example: maxflowFlowが必要.)

ドキュメント(codeLib2-htmldoc)

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

なぜcodelib '2' なのか

1を書き直したから