In the following code what is the meaning of colon? and where callback function came from?
using void_callback_f = void (*)();
std::vector<void_callback_f> _reload_callbacks;
void Reload() {
for (const auto& callback : _reload_callbacks) {
callback();
}
}
The colon in the for loop is an example of
Range-based for loop
Please check here for more information