I am going through the SFML game development by example book and in this chapter they have an advance structure that I would like some help on.
struct Binding {
Binding(const std::string& l_name)
: m_name(l_name), m_details(l_name), c(0) {}
void BindEvent(EventType l_type,
EventInfo l_info = EventInfo())
{
m_events.emplace_back(l_type, l_info);
}
Events m_events;
std::string m_name;
int c; // Count of events that are "happening".
EventDetails m_details;
};
particularly of interest is the 2nd and 3rd line after the header. I am not sure exactly what is being declared.