General Purpose library for Freestanding C++ and POSIX systems
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
388 B

  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. };