From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Edwards To: Igor Markov Cc: Andrew Pinski , gcc@gcc.gnu.org Subject: Re: random_sample: where did it go? Date: Mon, 19 Aug 2002 21:05:00 -0000 Message-id: <20020820000540.A27963@disaster.basement.lan> References: <94B48554-B3EB-11D6-89AF-000393122612@physics.uc.edu> <3D61BA1B.9080804@eecs.umich.edu> X-SW-Source: 2002-08/msg01160.html On Mon, Aug 19, 2002 at 11:40:11PM -0400, Igor Markov wrote: > What do I do, in general, when I don't see > my favorite function in > http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-3.1/namespacemembers.html Also look in namespaces.html. > For example, random_shuffle() is there, but random_sample() is not. > > Another one: power() > Ok, I can guess, it's in :) > but this makes things harder to figure out > and also requires lots of #if(GCC_VERSION) > > Is there some way to avoid obfuscating source code > with detailed gcc version checks? Don't depend on functions that aren't in the ISO Standard Library being in namespace std. As we find them, we move them to __gnu_cxx. Also, be aware that not every function is listed in the URLs above, only because we haven't had the time to get to all of them. See todo.html for a very small fraction of what's left to be done. Phil -- I would therefore like to posit that computing's central challenge, viz. "How not to make a mess of it," has /not/ been met. - Edsger Dijkstra, 1930-2002