I wanna make my class iterable for this function (assume I can\'t change this)
// basically my class wrapped in a unique_ptr using tree_ptr = typename std::unique