mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 17:47:56 +02:00
21 lines
243 B
ObjectPascal
21 lines
243 B
ObjectPascal
{$mode objfpc}
|
|
{$h+}
|
|
|
|
uses
|
|
GDeque;
|
|
|
|
type
|
|
TIntQueue = specialize TDeque<Integer>;
|
|
|
|
var
|
|
Q: TIntQueue;
|
|
|
|
begin
|
|
Q := TIntQueue.Create;
|
|
Q.Insert(0, 12345);
|
|
writeln('Size=',Q.Size);
|
|
Q.Erase(0);
|
|
writeln('Size=',Q.Size);
|
|
Q.Free;
|
|
end.
|