mirror of
https://github.com/AdaCore/PolyORB.git
synced 2026-02-12 13:01:15 -08:00
16 lines
306 B
Ada
16 lines
306 B
Ada
package body Vector is
|
|
|
|
protected body Content is
|
|
procedure Increment (N : Natural; I : Natural) is
|
|
begin
|
|
X (N) := X (N) + I;
|
|
end Increment;
|
|
|
|
function Value (N : Natural) return Natural is
|
|
begin
|
|
return X (N);
|
|
end Value;
|
|
end Content;
|
|
|
|
end Vector;
|