This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: random_sample: where did it go?


Andrew Pinski wrote:
try:

#include <ext/algorithm>
using __gnu_cxx::random_sample;
int main(){}
  That's wonderful.

  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

  For example, random_shuffle() is there, but random_sample() is not.

  Another one: power()
  Ok, I can guess, it's in <ext/numeric>  :)
   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?

   thanks.
						    Igor
--
   Igor L. Markov         (734) 936-7829       EECS 2211
   http://www.eecs.umich.edu/~imarkov



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]