From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f2690a5e963b61b6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail From: "Dmitriy Anisimkov" Newsgroups: comp.lang.ada Subject: Re: GCC 4.0 Ada.Containers Cursor danger. Date: 6 Jul 2005 02:34:49 -0700 Organization: http://groups.google.com Message-ID: <1120642489.101644.74190@o13g2000cwo.googlegroups.com> References: <1120474891.635131.216700@g44g2000cwa.googlegroups.com> <1120575076.876798.108220@g44g2000cwa.googlegroups.com> <1120583470.429264.325450@g43g2000cwa.googlegroups.com> <1120639461.224146.235430@g44g2000cwa.googlegroups.com> NNTP-Posting-Host: 80.89.131.48 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1120642494 5580 127.0.0.1 (6 Jul 2005 09:34:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 6 Jul 2005 09:34:54 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=80.89.131.48; posting-account=t4CEmgwAAAA8dL2naG2k3iz_rN__dZy3 Xref: g2news1.google.com comp.lang.ada:11888 Date: 2005-07-06T02:34:49-07:00 List-Id: <> procedure Insert_Or_Replace_Value (Table : in out Table_Type; Key : in Key_Type; Value : in Value_Type); -- OVERVIEW: -- Inserts the couple (KEY, VALUE) into TABLE if there is no entry with -- this key. Otherwise the given VALUE replaces the previous one. procedure Replace_Value (Table : in out Table_Type; Key : in Key_Type; Value : in Value_Type); -- OVERVIEW: -- An entry having key KEY is searched for in TABLE. The given VALUE then -- replaces the previous one. -- ERROR: -- If there is no entry with the given key, the exception -- MISSING_ITEM_ERROR is raised. procedure Replace_Value (Table : in out Table_Type; Key : in Key_Type; Value : in Value_Type; Found : out Boolean); -- OVERVIEW: -- An entry having key KEY is searched for in TABLE. The given -- VALUE then replaces the previous one. No action is taken and no error -- occurs if there is no entry with the given key, except that FOUND -- is set to false. What is slower ?