queue class : queue{long}(string) fitter
Description
Gets an instance initialized by the initialization string.
Syntax
new queue{long}(string initStr)
Arguments
Class | Name | Description |
string | initStr | Initialization string. |
Return value
Class | Description |
queue{long} | Initialized queue. |
Sample code
1: | /**Sample**concat**----------------------- |
2: | {0L, 124L, 125L, 126L, 127L,} |
3: | -----------------------------------------------*/ |
4: | rice rr; |
5: | queue{long} newLongQueue = new queue{long}(rr.Sample); |
Notes
The format of the initialization string is:
A string that starts with "{" and ends with "}".
Separate the items with commas.
Allows a comma to follow the last item.
Allows white space before and after the initialization string and item.
The long can be set as items. Specify in the format of literal.
Links for reference
None.