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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8e7ac81a215f128c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Alex Mentis" Newsgroups: comp.lang.ada Subject: Re: Using Red-Black Trees Date: Sat, 13 Nov 2010 13:10:50 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <2419e829-6f45-4075-9005-b9876beb8aaa@r6g2000vbf.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 13 Nov 2010 13:10:50 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="2mHI2HcCGxZ3pXcuTAHRZQ"; logging-data="22578"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+NSfQBfXDeabvcg/6h9b75ZIzxeFxW32g=" User-Agent: XanaNews/1.19.1.269 Cancel-Lock: sha1:E2JA/C46Z9vXcPjG9yMuBEWts2A= Xref: g2news1.google.com comp.lang.ada:15470 Date: 2010-11-13T13:10:50+00:00 List-Id: Bj�rn wrote: > I need a self-balancing binary search tree (for a Bentley/Ottmann > implementation), such as the red-black tree that is now part of > Ada.Containers. I need basic operations like insert/remove, next/prev > and find. However, the GNAT implementation of this data structure > seems a bit scary to me and I'm not really sure how to instantiate the > generics and what operations to use. Would someone be able to provide > some example of usage? And yes, I'am aware of that a lot of the other > container implementations uses this structure. I was hoping for > something a bit more boiled down. > > Regards, > Bj�rn There's a Red-Black Tree in Ada.Containers?! Can someone tell me where to find it in the ARM?