SpiecsEngine
 
Loading...
Searching...
No Matches

◆ AddChild()

template<typename T >
template<typename ... Args>
tree * scl::tree< T >::AddChild ( Args &&... args)
inline

Add a child to this tree.

Parameters
[in]argsT construct params.

Definition at line 52 of file Tree.h.

53 {
54 m_Childs.push_back(std::make_unique<tree>(std::forward<Args>(args)...));
55
56 return m_Childs[m_Childs.size() - 1].get();
57 }
std::vector< std::unique_ptr< tree > > m_Childs
Children node.
Definition Tree.h:24