vector 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Filename: vector
  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 VECTOR_H
  19. #define VECTOR_H
  20. #include <stdtypedefs.h>
  21. inline namespace std {
  22. template<class element>
  23. class vector {
  24. public:
  25. typedef element value_type;
  26. typedef element *pointer;
  27. typedef const element *const_pointer;
  28. typedef element &reference;
  29. typedef const element &const_reference;
  30. typedef pointer iterator;
  31. typedef const_pointer const_iterator;
  32. class reverse_iterator;
  33. class const_reverse_iterator;
  34. typedef size_t difference_type;
  35. typedef size_t size_type;
  36. };
  37. }
  38. #endif