2 ms·
Ooh, I hadn't thought of that. I will generally use a templated form if I care about the runtime overhead, or a std::function if I want to support multiple typ
by MereInterest 12y ago
Ooh, I hadn't thought of that. I will generally use a templated form if I care about the runtime overhead, or a std::function if I want to support multiple types of callables within the same container, and so I don't use raw function pointers very often.
- evincarofautumn 12y agoBy the way, I’m an idiot. template<class T> using ptr = T*; ptr<ptr<void(int)>(int, ptr<void(int)>)> signal; :)