Hello, I'm new to C++, coming from mostly Java. I'm trying to implement a binary tree, and I want the Node class to have a key and value type, using templates. I have found that instead of the Comparable<X> interface in Java one uses the < operator. How do you specify this in the template?
template<class K, class V>
class Node
{
...
}
So how do I specify in the template, that the class K needs to have the < operator?