I need help to know what the "template <>" code is for, I have been searching the internet for several weeks and I have not found anything about it. I found this code in a library that I would love to study to get some algorithms that I need in my project. But I need to know what is the purpose of that code to keep moving forward.
The code:
template<byte chipCount, typename ShiftType>
class _ShiftIn {
private:
byte ploadPin;
byte clockEnablePin;
byte dataPin;
byte clockPin;
const uint16_t dataWidth;
uint8_t pulseWidth;
ShiftType lastState;
ShiftType currentState;
public:
etc...
And I also need to know what this "ShiftType lastState; ShiftType currentState;" does, because it doesnt have an "=" sign or something similar.
Thanks!