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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: How to Iterate over all elements of a hashed_map. Date: Tue, 29 Oct 2019 17:48:38 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <6ea868a2-6f4b-413c-955d-08e8735f2880@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 29 Oct 2019 16:48:38 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="9fd88ef5802192d0a64dcef96697314a"; logging-data="15745"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SvyuAsHmcG1d1KHFpIGNt97kHdLruq0U=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 Cancel-Lock: sha1:FM7XzZyRR/4xpzY2UhwaUs14fAY= In-Reply-To: <6ea868a2-6f4b-413c-955d-08e8735f2880@googlegroups.com> Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:57375 Date: 2019-10-29T17:48:38+01:00 List-Id: On 10/29/19 2:43 PM, Alain De Vos wrote: > > package My_Hash is new Ada.Containers.Hashed_Maps (Key_Type => Unbounded_String, > Element_Type => Unbounded_String, > Hash => Hash_Func, > Equivalent_Keys => Equivalent_Key); > > But now I want to iterate over all elements of this Hash and print the keys and items ? My_Hash.Iterate? -- Jeff Carter "You cheesy lot of second-hand electric donkey-bottom biters." Monty Python & the Holy Grail 14