Projects / tree.hh


tree.hh is a general purpose templated tree class for C++ in the spirit of the STL, and compatible with the STL algorithms.

Operating Systems

Recent releases

  •  08 Nov 2009 21:43

    Release Notes: Various minor bugs were fixed, in particular with fixed depth iterators. There are minor feature enhancements. The Web site has been moved to a different host.

    •  28 Feb 2008 23:51

      Release Notes: Several new iterator types were added, as well as several new utility functions. Various minor bugs were fixed. The library can now be used under the terms of either version 2 or 3 of the GPL.

      •  10 Jul 2003 14:02

        Release Notes: Fixed-depth iterators and tree merge routines were added. The documentation was expanded. Many bug fixes were made.

        •  20 Oct 2002 12:45

          Release Notes: A framework for other iterator types was added, and post-order iterators were implemented in addition to the pre-order ones already available. Many small bugfixes were made.

          •  29 Aug 2002 15:21

            Release Notes: The sort bug has been removed, bugs with end iterators for sibling nodes have been fixed, and bugfixes were made for gcc-3.1 and higher. More documentation has been added.

            Recent comments

            14 Dec 2001 04:09 friendlyghost

            Re: tree.hh not working with bc++
            In this case, however, it is Borland which is at fault. It does not allow for member template class code to appear outside the declaration. In fact, g++ 3.0 and up are quite a bit better at templates than Borland or MSVC.

            Move all that code inside the declaration and tree.hh will compile with Borland as well.

            By the way, I'd appreciate direct email feedback, instead of a comment on freshmeat.

            14 Dec 2001 02:56 wschlanger

            tree.hh not working with bc++
            Hi, I tried to used tree.hh with bc++5.0 which is ANSI C++ compatible, but it doesn't work. I'd appreciate it if someone would download the borland c++ 5.5 command-line binaries, which are free, from borland's web site [but only work on windows], and see if you can fix tree.hh.

            The reason why I say ''fix'' is because gcc and compatible compilers ignore many things that violate the ANSI C++ standard, e.g. they allow for bad code. Right now this isn't worth worrying about (unless you want more users, like me :-) but in the future, gcc could ''fix'' their compiler, and then tree.hh won't work any more.

            Just thought I'd let you know about this problem. In the mean time, I'll be making my own tree class.

            Bye! [if you want to reply, please send a message to]


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.