Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to shorten code using using c++ in class with typename

template<typename T>
using Node = typename BinarySearchTree<T>::Node;


template <class T>
Node<T> const* BinarySearchTree<T>::find(const T& value) const
{
 // some code here
 return nullptr;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #shorten #code #class #typename
ADD COMMENT
Topic
Name
1+6 =