Skip to content

Commit

Permalink
generator : デフォルトアロケータ型の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
onihusube committed Oct 26, 2023
1 parent f5119ae commit 33d6e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/generator/generator.md
Expand Up @@ -88,7 +88,7 @@ namespace std {
### アロケータサポート
`generator`クラステンプレートの第3テンプレートパラメータ`Allocator`によって、[コルーチン・ステート](/lang/cpp20/coroutines.md)の動的メモリ確保に用いる静的アロケータ型を指定できる。省略時はデフォルトアロケータ[`allocator<byte>`](/reference/memory/allocator.md)が利用される。
`generator`クラステンプレートの第3テンプレートパラメータ`Allocator`によって、[コルーチン・ステート](/lang/cpp20/coroutines.md)の動的メモリ確保に用いる静的アロケータ型を指定できる。省略時はデフォルトアロケータ[`allocator<void>`](/reference/memory/allocator.md)が利用される。
またジェネレータコルーチン定義の引数リストに[`allocator_arg`](/reference/memory/allocator_arg_t.md)タグ型に続いてアロケータオブジェクトを指定すると、ジェネレータの生成毎に異なるアロケータ利用を指定することもできる。
Expand Down

0 comments on commit 33d6e9a

Please sign in to comment.