queue クラス : queue{bool}(string) フィッタ
説明
初期化文字列により初期化されたインスタンスを取得します。
構文
new queue{bool}(string initStr)
引数
| クラス | 名前 | 説明 |
| string | initStr | 初期化文字列。 |
返り値
| クラス | 説明 |
| queue{bool} | 初期化済みのキュー。 |
サンプルコード
| 1: | /**Sample**concat**----------------------- |
| 2: | {true, false, true, false,} |
| 3: | -----------------------------------------------*/ |
| 4: | rice rr; |
| 5: | queue{bool} newBoolQueue = new queue{bool}(rr.Sample); |
注意
初期化文字列の形式を以下に示します。
"{" で始まり "}" で終わる文字列です。
項目はカンマで区切ります。
最後の項目の後にカンマが続くことを許可します。
初期化文字列、項目の前後の空白を許可します。
項目として設定できるのは、bool です。リテラルの形式で指定して下さい。
参照リンク
無し。


