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.

25 lines
388 B

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