File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -39,4 +39,28 @@ int main()
3939{
4040 Func();
4141}
42- ```
42+ ```
43+
44+ ## 関数のオーバーロード
45+
46+ ```C++
47+ #include <iostream>
48+
49+ using T = int&;
50+
51+ void f(T&)
52+ {
53+ std::cout << "A\n";
54+ }
55+
56+ void f(const T&)
57+ {
58+ std::cout << "B\n";
59+ }
60+
61+ int main()
62+ {
63+ int x;
64+ f(x);
65+ }
66+ ```
Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ C++ の歩き方 Web サイトの改善、情報拡充に協力してくれた
6060 - [ 国内の勉強会 情報提供] ( https://github.com/cppmap/cppmap.docs/pull/25 )
6161- [ @wx257osn2 ] ( https://twitter.com/wx257osn2 ) さん
6262 - [ オンラインコンパイラ 情報提供] ( https://github.com/cppmap/cppmap.docs/pull/18 )
63+ - [ @yaito3014 ] ( https://twitter.com/yaito3014 ) さん
64+ - [ なぜかコンパイルできない 情報提供] ( https://github.com/cppmap/cppmap.docs/issues/9#issuecomment-792238518 )
6365- [ @yohhoy ] ( https://twitter.com/yohhoy ) さん
6466 - [ 記事改善案 提供] ( https://twitter.com/yohhoy/status/1106950996192747521 )
6567 - [ C++23 以降に向けた提案 情報提供] ( https://github.com/cppmap/cppmap.docs/pull/32 )
You can’t perform that action at this time.
0 commit comments