-
Notifications
You must be signed in to change notification settings - Fork 175
editors_doc: CPOひな形ページを追加 #773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,111 @@ | ||
| # page_title ((1行目の見出し1はページのタイトルです。修飾なしで記載してください) | ||
|
|
||
| ([cpprefjpを編集するには](start_editing.md) および [cpprefjp特有の拡張構文](specialized.md) を先に読んで下さい。) | ||
|
|
||
| ( | ||
| サンプルコードは文章中のどの部分で書いても大丈夫です。閲覧者の理解を助けるために必要だと感じたところで入れてください。 | ||
| その際拡張構文である`example`タグをルールに従って付け、コンパイル・実行可能にすることを検討してください。 | ||
| ) | ||
|
|
||
| * header_name[meta header] | ||
| * cpo[meta id-type] | ||
| * std[meta namespace] | ||
| * cpp20[meta cpp] | ||
|
|
||
| <!-- `[meta header]`は、所属ヘッダを表すメタ情報 --> | ||
| <!-- `[meta id-type]`は、識別子の種別を表すメタ情報。class, class template, function, function template, enum, variable, type-alias, concept, macro, namespace。全てがのオーバーロードが関数テンプレートならfunction templateを使用し、そうでなければfunctionを使用する --> | ||
| <!-- `[meta namespace]`は、所属する名前空間を表すメタ情報。マクロを考慮して省略可。名前空間の区切りは`::` --> | ||
| <!-- `[meta cpp]`は、機能が追加・非推奨・削除されたバージョンを表すメタ情報。改行して複数指定ができる。 --> | ||
| <!-- `cpp20[meta cpp]` : C++20で追加された機能 --> | ||
| <!-- `cpp23[meta cpp]` : C++23で追加された機能 --> | ||
| <!-- `cpp23deprecated[meta cpp]` : C++23で非推奨になった機能 --> | ||
| <!-- `cpp23removed[meta cpp]` : C++23で削除された機能 --> | ||
|
|
||
| ```cpp | ||
| namespace std { | ||
| inline namespace /*unspecified*/ { | ||
|
|
||
| inline constexpr /*unspecified*/ cponame = /*unspecified*/; | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## 概要 | ||
| (ここには、カスタマイゼーションポイントオブジェクトの概要を記述します。必須事項です。) | ||
|
|
||
| (必要な項目を省略する場合には、「(執筆中)」と書いておいてください。) | ||
|
|
||
|
|
||
| ## 効果 | ||
| (ここには、カスタマイゼーションポイントオブジェクトの内部で行われる効果:effect を記述します。) | ||
|
|
||
|
|
||
| ## 戻り値 | ||
| (ここには、カスタマイゼーションポイントオブジェクトの戻り値を記述します。戻り値の型が`void`の場合は、「なし」と記述してください。) | ||
|
|
||
|
|
||
| ## 例外 | ||
| (ここには、例外送出の有無、例外送出の条件と送出される例外、例外を抄出しない条件、例外送出後の変数・オブジェクトの状態 (例外安全性) などを記述します。`noexcept`なら「投げない」を記述します。規格上とくに明記がなければ、項目を削除してください。) | ||
|
|
||
|
|
||
| ## 定数式に評価される条件 | ||
| (`constexpr`評価される条件を記述します。) | ||
|
|
||
|
|
||
| ## カスタマイゼーションポイント | ||
| (ここには、カスタマイゼーションポイントオブジェクトにアダプトする方法を記述します。) | ||
|
|
||
|
|
||
| ## 備考 | ||
| (ここには、カスタマイゼーションポイントオブジェクトを説明するにあたっての、補足事項を記述します。とくになければ、項目を削除してください。) | ||
|
|
||
|
|
||
| ## 例 | ||
| ```cpp example | ||
| // (ここには、カスタマイゼーションポイントオブジェクトを解説するための、サンプルコードを記述します。) | ||
| // (インクルードとmain()関数を含む、実行可能なサンプルコードを記述してください。そのようなコードブロックにはexampleタグを付けます。) | ||
|
|
||
| #include <iostream> | ||
|
|
||
| int main() | ||
| { | ||
| int variable = 0; | ||
| std::cout << variable << std::endl; | ||
| } | ||
| ``` | ||
| * variable[color ff0000] | ||
|
|
||
| (コードブロック中の識別子に、文字色を付ける例です。) | ||
|
|
||
| ### 出力 | ||
| ``` | ||
| 0 | ||
| ``` | ||
|
|
||
| (ここには、サンプルコードの実行結果を記述します。何も出力がない場合は、項目を削除せず、空の出力にしてください。) | ||
| (実行結果が処理系・実行環境によって異なる場合は、項目名を「出力例」に変更し、可能であればその理由も併記してください。) | ||
|
|
||
|
|
||
| ## バージョン | ||
| ### 言語 | ||
| - C++20 | ||
|
|
||
| ### 処理系 | ||
| - [Clang](/implementation.md#clang): 11.0 | ||
| - [GCC](/implementation.md#gcc): 10.0 | ||
| - [Visual C++](/implementation.md#visual_cpp): ?? | ||
|
|
||
| (ここには、その機能が存在する言語のバージョンと、確認がとれたコンパイラとそのバージョンを記述します。) | ||
| (これらの項目を削除した場合、C++03のあらゆる環境で使用できることを意味します。) | ||
| (確認のテストできないときは、??を記述してください。) | ||
|
|
||
| ### 備考 | ||
| (処理系ごとに存在するバグや注意事項を記述します。とくにない場合は、項目を削除してください。) | ||
|
|
||
|
|
||
| ## 関連項目 | ||
| (ここには、その機能と関連のあるcpprefjpサイト内の項目へのリンクを記述します。とくに必要がないと判断した場合、項目を削除してください。) | ||
|
|
||
|
|
||
| ## 参照 | ||
| (ここには、そのカスタマイゼーションポイントオブジェクトを理解するにあたっての参考資料や、関連する機能へのリンクを記述します。とくに必要がないと判断した場合、項目を削除してください。) | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.