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

21 行
415 B

  1. #include "test_scaffold.h"
  2. #include <gp/containers/flat_tree.hpp>
  3. #include <iostream>
  4. struct flat_tree_test : public test_scaffold {
  5. flat_tree_test() {
  6. name = __FILE__ ":1";
  7. }
  8. virtual int run() {
  9. gp::array<int,7> v = {1,2,3,4,5,6,7};
  10. gp::flat_tree<int, 7> hello(v);
  11. for(auto elem : hello) {
  12. std::cout << elem << std::endl;
  13. }
  14. return 0;
  15. }
  16. };
  17. append_test dummy_sdfjlm6543(new flat_tree_test{});