General Purpose library for Freestanding C++ and POSIX systems
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
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{});