Count => Count);
procedure Delete (Container : in out List; Position : in out Cursor) with
- Global => null,
- Pre => Has_Element (Container, Position),
- Post =>
+ Global => null,
+ Depends => (Container =>+ Position, Position => null),
+ Pre => Has_Element (Container, Position),
+ Post =>
Length (Container) = Length (Container)'Old - 1
-- Position is set to No_Element
Find (Container, Key)'Old);
procedure Delete (Container : in out Map; Position : in out Cursor) with
- Global => null,
- Pre => Has_Element (Container, Position),
- Post =>
+ Global => null,
+ Depends => (Container =>+ Position, Position => null),
+ Pre => Has_Element (Container, Position),
+ Post =>
Position = No_Element
and Length (Container) = Length (Container)'Old - 1
-- already in the set.)
procedure Delete (Container : in out Set; Position : in out Cursor) with
- Global => null,
- Pre => Has_Element (Container, Position),
- Post =>
+ Global => null,
+ Depends => (Container =>+ Position, Position => null),
+ Pre => Has_Element (Container, Position),
+ Post =>
Position = No_Element
and Length (Container) = Length (Container)'Old - 1
Cut => Find (Keys (Container), Key)'Old);
procedure Delete (Container : in out Map; Position : in out Cursor) with
- Global => null,
- Pre => Has_Element (Container, Position),
- Post =>
+ Global => null,
+ Depends => (Container =>+ Position, Position => null),
+ Pre => Has_Element (Container, Position),
+ Post =>
Position = No_Element
and Length (Container) = Length (Container)'Old - 1
(Container : in out Set;
Position : in out Cursor)
with
- Global => null,
- Pre => Has_Element (Container, Position),
- Post =>
+ Global => null,
+ Depends => (Container =>+ Position, Position => null),
+ Pre => Has_Element (Container, Position),
+ Post =>
Position = No_Element
and Length (Container) = Length (Container)'Old - 1