I came across this code while reading about Trees. Could anyone explain what the ": 1" after member variable "successor" mean?
template<class T>
class Node{
public:
Node() {
left = right = 0;
}
T key;
Node *left, *right;
unsigned int successor : 1;
};
I tried searching for this with various combination of " what does : after member variable mean in c++?" but did not find any answers.