Skip to content

About

二叉树适配器

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

binary_tree_view

二叉树适配器 目前仍在调整 考虑把写死的left,right,val名字换成可以在模板参数里面指定的可调用对象get_left,get_right,get_value。目前先序,中序,后序遍历的接口pre_order(),in_order(),post_order()的返回类型虽可以和范围for循环一起工作,但是还没有满足std::ranges::range概念,不能和范围库里面的各种范围工具联动使用。 该适配器不负责二叉树的内存管理,不拥有所有权。主要负责适配老式的接口。

About

二叉树适配器

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages