From 57afeb888266e9a11bb64d6ab0e760c7ab6d968a Mon Sep 17 00:00:00 2001 From: suomesta Date: Sat, 17 Feb 2024 15:25:04 +0900 Subject: [PATCH] fix some wrong link --- reference/barrier/barrier/wait.md | 2 +- reference/chrono/is_pm.md | 2 +- reference/ctime/timespec_get.md | 4 ++-- reference/filesystem/file_time_type.md | 4 ++-- reference/filesystem/path/end.md | 4 ++-- reference/filesystem/space.md | 4 ++-- reference/format/format.md | 8 ++++---- reference/locale/codecvt_byname.md | 2 +- reference/memory/shared_ptr/static_pointer_cast.md | 2 +- reference/queue/queue/pop.md | 2 +- reference/stop_token/nostopstate.md | 2 +- reference/stop_token/stop_callback.md | 2 +- reference/stop_token/stop_source.md | 2 +- reference/stop_token/stop_source/get_token.md | 2 +- reference/stop_token/stop_source/request_stop.md | 2 +- reference/stop_token/stop_source/stop_possible.md | 2 +- reference/stop_token/stop_source/stop_requested.md | 2 +- reference/stop_token/stop_token.md | 2 +- reference/streambuf/basic_streambuf/setbuf.md | 5 +++++ reference/string/basic_string/compare.md | 2 +- reference/thread/jthread.md | 2 +- reference/unordered_map/unordered_map/at.md | 2 +- 22 files changed, 33 insertions(+), 28 deletions(-) diff --git a/reference/barrier/barrier/wait.md b/reference/barrier/barrier/wait.md index 4085eebca4..fe7cdb7dcb 100644 --- a/reference/barrier/barrier/wait.md +++ b/reference/barrier/barrier/wait.md @@ -83,7 +83,7 @@ int main() } ``` * wait[color ff0000] -* arrive[link wait.md] +* arrive[link arrive.md] * arrive_and_wait[link arrive_and_wait.md] * std::move[link /reference/utility/move.md] * std::this_thread::sleep_for[link /reference/thread/this_thread/sleep_for.md] diff --git a/reference/chrono/is_pm.md b/reference/chrono/is_pm.md index 961cfce410..19b64979d3 100644 --- a/reference/chrono/is_pm.md +++ b/reference/chrono/is_pm.md @@ -39,7 +39,7 @@ int main() * chrono::is_pm[color ff0000] * chrono::hh_mm_ss[link hh_mm_ss.md] * time.hours()[link hh_mm_ss/hours.md] -* chrono::is_am[link is_pm.md] +* chrono::is_am[link is_am.md] ### 出力 ``` diff --git a/reference/ctime/timespec_get.md b/reference/ctime/timespec_get.md index 33996f8aed..3aa3744376 100644 --- a/reference/ctime/timespec_get.md +++ b/reference/ctime/timespec_get.md @@ -54,8 +54,8 @@ int main() std::cout << std::ctime(&ts.tv_sec) << std::endl; } ``` -* std::timespec[color ff0000] -* std::timespec_get[link timespec_get.md] +* std::timespec_get[color ff0000] +* std::timespec[link timespec.md] * TIME_UTC[link time_utc.md] * ms.count()[link /reference/chrono/duration/count.md] diff --git a/reference/filesystem/file_time_type.md b/reference/filesystem/file_time_type.md index 257a03feca..fcb3a3b7bf 100644 --- a/reference/filesystem/file_time_type.md +++ b/reference/filesystem/file_time_type.md @@ -60,8 +60,8 @@ int main() fs::last_write_time("regular.txt", fs::file_time_type::clock::now()); } ``` -* fs::last_write_time[color ff0000] -* fs::file_time_type[link file_time_type.md] +* fs::file_time_type[color ff0000] +* fs::last_write_time[link last_write_time.md] * fs::create_directory[link create_directory.md] * tp.time_since_epoch()[link /reference/chrono/time_point/time_since_epoch.md] * sec.count()[link /reference/chrono/duration/count.md] diff --git a/reference/filesystem/path/end.md b/reference/filesystem/path/end.md index 73a77e82a7..4059a501b4 100644 --- a/reference/filesystem/path/end.md +++ b/reference/filesystem/path/end.md @@ -41,7 +41,7 @@ int main() } ``` * end()[color ff0000] -* p.begin()[link end.md] +* p.begin()[link begin.md] * iterator[link iterator.md] #### 出力 @@ -73,7 +73,7 @@ int main() } ``` * end()[color ff0000] -* p.begin()[link end.md] +* p.begin()[link begin.md] * iterator[link iterator.md] #### 出力 diff --git a/reference/filesystem/space.md b/reference/filesystem/space.md index b0e0d5f314..58a48ef390 100644 --- a/reference/filesystem/space.md +++ b/reference/filesystem/space.md @@ -59,8 +59,8 @@ int main() print_space("available", info.available); } ``` -* fs::space_info[color ff0000] -* fs::space[link space.md] +* fs::space[color ff0000] +* fs::space_info[link space_info.md] * std::uintmax_t[link /reference/cstdint/uintmax_t.md] #### 出力例 diff --git a/reference/format/format.md b/reference/format/format.md index 22659c5a62..9ed95e7e4f 100644 --- a/reference/format/format.md +++ b/reference/format/format.md @@ -342,11 +342,11 @@ int main() { #### 出力 ``` -hello -"hello" -hello +0. hello +1. "hello" +2. hello world -"hello\nworld" +3. "hello\nworld" ``` ### コンテナ・Rangeを出力する (C++23) diff --git a/reference/locale/codecvt_byname.md b/reference/locale/codecvt_byname.md index 78955ccf1c..b3502a8554 100644 --- a/reference/locale/codecvt_byname.md +++ b/reference/locale/codecvt_byname.md @@ -9,7 +9,7 @@ namespace std { class codecvt_byname : public codecvt; } ``` -* codecvt[link codecvt_byname.md] +* codecvt[link codecvt.md] ## 概要 diff --git a/reference/memory/shared_ptr/static_pointer_cast.md b/reference/memory/shared_ptr/static_pointer_cast.md index 34c38560b0..5514da6162 100644 --- a/reference/memory/shared_ptr/static_pointer_cast.md +++ b/reference/memory/shared_ptr/static_pointer_cast.md @@ -65,7 +65,7 @@ int main() { } } ``` -* std::static_pointer_cast[link static_pointer_cast.md] +* std::static_pointer_cast[color ff0000] * std::make_shared[link /reference/memory/make_shared.md] ### 出力 diff --git a/reference/queue/queue/pop.md b/reference/queue/queue/pop.md index 5dc5ec3e00..a62ed8eeec 100644 --- a/reference/queue/queue/pop.md +++ b/reference/queue/queue/pop.md @@ -39,7 +39,7 @@ int main() { return 0; } ``` -* pop()[link pop.md] +* pop()[color ff0000] * que.push[link push.md] * que.front()[link front.md] diff --git a/reference/stop_token/nostopstate.md b/reference/stop_token/nostopstate.md index 39ebce17d0..08d29b8c48 100644 --- a/reference/stop_token/nostopstate.md +++ b/reference/stop_token/nostopstate.md @@ -39,9 +39,9 @@ int main() assert(st2.stop_possible() == false); } ``` +* std::nostopstate[color ff0000] * std::stop_token[link stop_token.md] * std::stop_source[link stop_source.md] -* std::nostopstate[link nostopstate.md] * stop_possible()[link stop_token/stop_possible.md] * get_token()[link stop_source/get_token.md] diff --git a/reference/stop_token/stop_callback.md b/reference/stop_token/stop_callback.md index 1d7885aa49..1886e40624 100644 --- a/reference/stop_token/stop_callback.md +++ b/reference/stop_token/stop_callback.md @@ -70,9 +70,9 @@ int main() assert(msg == "hello world"); } ``` +* std::stop_callback[color ff0000] * std::stop_token[link stop_token.md] * std::stop_source[link stop_source.md] -* std::stop_callback[link stop_callback.md] * request_stop()[link stop_source/request_stop.md] * get_token()[link stop_source/get_token.md] diff --git a/reference/stop_token/stop_source.md b/reference/stop_token/stop_source.md index 4f5733efd8..d9cedc0641 100644 --- a/reference/stop_token/stop_source.md +++ b/reference/stop_token/stop_source.md @@ -62,8 +62,8 @@ int main() assert(invoked == true); } ``` +* std::stop_source[color ff0000] * std::stop_token[link stop_token.md] -* std::stop_source[link stop_source.md] * stop_callback[link stop_callback.md] * stop_requested()[link stop_token/stop_requested.md] * request_stop()[link stop_source/request_stop.md] diff --git a/reference/stop_token/stop_source/get_token.md b/reference/stop_token/stop_source/get_token.md index 86587b08ec..3c9852d2f0 100644 --- a/reference/stop_token/stop_source/get_token.md +++ b/reference/stop_token/stop_source/get_token.md @@ -35,11 +35,11 @@ int main() assert(st2.stop_possible() == false); } ``` +* get_token()[color ff0000] * std::stop_token[link ../stop_token.md] * std::stop_source[link ../stop_source.md] * std::nostopstate[link ../nostopstate.md] * stop_possible()[link ../stop_token/stop_requested.md] -* get_token()[link get_token.md] ### 出力 ``` diff --git a/reference/stop_token/stop_source/request_stop.md b/reference/stop_token/stop_source/request_stop.md index 45fd15118e..831701b671 100644 --- a/reference/stop_token/stop_source/request_stop.md +++ b/reference/stop_token/stop_source/request_stop.md @@ -107,11 +107,11 @@ int main() } } ``` +* request_stop()[color ff0000] * stop_source[link ../stop_source.md] * nostopstate[link ../nostopstate.md] * stop_callback[link ../stop_callback.md] * get_token()[link get_token.md] -* request_stop()[link request_stop.md] * condition_variable_any[link /reference/condition_variable/condition_variable_any.md] * cv.wait[link /reference/condition_variable/condition_variable_any/wait.md] * std::this_thread::sleep_for[link /reference/thread/this_thread/sleep_for.md] diff --git a/reference/stop_token/stop_source/stop_possible.md b/reference/stop_token/stop_source/stop_possible.md index 32af6a991e..e538eecfdf 100644 --- a/reference/stop_token/stop_source/stop_possible.md +++ b/reference/stop_token/stop_source/stop_possible.md @@ -32,9 +32,9 @@ int main() assert(ss2.stop_possible() == false); } ``` +* stop_possible()[color ff0000] * stop_source[link ../stop_source.md] * nostopstate[link ../nostopstate.md] -* stop_possible()[link stop_possible.md] ### 出力 ``` diff --git a/reference/stop_token/stop_source/stop_requested.md b/reference/stop_token/stop_source/stop_requested.md index eb4091139e..8f58652155 100644 --- a/reference/stop_token/stop_source/stop_requested.md +++ b/reference/stop_token/stop_source/stop_requested.md @@ -38,9 +38,9 @@ int main() assert(ss2.stop_requested() == false); } ``` +* stop_requested()[color ff0000] * stop_source[link ../stop_source.md] * std::nostopstate[link ../nostopstate.md] -* stop_requested()[link stop_requested.md] * request_stop()[link request_stop.md] ### 出力 diff --git a/reference/stop_token/stop_token.md b/reference/stop_token/stop_token.md index cbf8302ed4..d8998fbe8e 100644 --- a/reference/stop_token/stop_token.md +++ b/reference/stop_token/stop_token.md @@ -58,7 +58,7 @@ int main() assert(st.stop_requested() == true); } ``` -* std::stop_token[link stop_token.md] +* std::stop_token[color ff0000] * std::stop_source[link stop_source.md] * stop_requested()[link stop_token/stop_requested.md] * request_stop()[link stop_source/request_stop.md] diff --git a/reference/streambuf/basic_streambuf/setbuf.md b/reference/streambuf/basic_streambuf/setbuf.md index b1fe4aa9b7..987a6e7840 100644 --- a/reference/streambuf/basic_streambuf/setbuf.md +++ b/reference/streambuf/basic_streambuf/setbuf.md @@ -42,6 +42,11 @@ int main() { } ``` +### 出力例 +``` +ABC +``` + ## バージョン ### 言語 - C++98 diff --git a/reference/string/basic_string/compare.md b/reference/string/basic_string/compare.md index 4e65ba6d22..6797746a7b 100644 --- a/reference/string/basic_string/compare.md +++ b/reference/string/basic_string/compare.md @@ -154,7 +154,7 @@ int main() std::cout << a.compare(c) << std::endl; } ``` -* compare[link compare.md] +* compare[color ff0000] ### 出力例 ``` diff --git a/reference/thread/jthread.md b/reference/thread/jthread.md index 45fd08c05a..8e231b9483 100644 --- a/reference/thread/jthread.md +++ b/reference/thread/jthread.md @@ -153,7 +153,7 @@ int main() return 0; } ``` -* std::jthread[link jthread.md] +* std::jthread[color ff0000] * std::stop_token[link /reference/stop_token/stop_token.md] * std::stop_callback[link /reference/stop_token/stop_callback.md] * get_stop_token()[link jthread/get_stop_token.md] diff --git a/reference/unordered_map/unordered_map/at.md b/reference/unordered_map/unordered_map/at.md index f34d1610a0..755396ff4f 100644 --- a/reference/unordered_map/unordered_map/at.md +++ b/reference/unordered_map/unordered_map/at.md @@ -51,8 +51,8 @@ int main() return 0; } ``` +* c.at[color ff0000] * um.insert[link insert.md] -* c.at[link at.md] ### 出力 ```