DM
Size: a a a
T
N
N
🎄T
N
N
.
К
friend std::ostream& operator<<(std::ostream& out, const binary_tree<T>& tree) {
if (tree.m_left != nullptr) operator<<(out, *tree.m_left.get());
out << tree.m_data << std::ends;
if (tree.m_right != nullptr) operator<<(out, *tree.m_right.get());
return out;
}
К
k
.
O
.
🎄T
friend std::ostream& operator<<(std::ostream& out, const binary_tree<T>& tree) {
if (tree.m_left != nullptr) operator<<(out, *tree.m_left.get());
out << tree.m_data << std::ends;
if (tree.m_right != nullptr) operator<<(out, *tree.m_right.get());
return out;
}
К