General Purpose library for Freestanding C++ and POSIX systems
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
420 B

4 years ago
4 years ago
4 years ago
  1. #pragma once
  2. #include <gp/buffer.hpp>
  3. #include <stddef.h>
  4. #include <stdint.h>
  5. // UNIMPLEMENTED: see filename
  6. template<typename T>
  7. struct subtree_iterator final
  8. {
  9. gp::buffer<T> target;
  10. size_t idx;
  11. public:
  12. subtree_iterator()
  13. : target{}
  14. , idx{0}
  15. {}
  16. subtree_iterator(gp::buffer<T> data, size_t itr_idx)
  17. : target{data}
  18. , idx{itr_idx}
  19. {}
  20. template<typename func>
  21. void climb_traversal(func& traverser) {
  22. }
  23. };