algorithm 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Filename: algorithm
  2. // Created by: drose (12May00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. // This file, and all the other files in this directory, aren't
  15. // intended to be compiled--they're just parsed by CPPParser (and
  16. // interrogate) in lieu of the actual system headers, to generate the
  17. // interrogate database.
  18. #ifndef ALGORITHM_H
  19. #define ALGORITHM_H
  20. namespace std {
  21. template<class T>
  22. constexpr const T &min(const T &a, const T &b);
  23. template<class T>
  24. constexpr const T &max(const T &a, const T &b);
  25. template<class RandomIt>
  26. void sort(RandomIt first, RandomIt last);
  27. template<class RandomIt, class Compare>
  28. void sort(RandomIt first, RandomIt last, Compare comp);
  29. }
  30. #endif