standards of using and naming of pointer to function as delegates in C++ -
there questions in mind:
- what standard naming pointer functions delegates?
- what best way define signature of functions in matter?
- what techniques of maintaining safety , stability of code when using pointers?
- there no standard such naming, conventions vary project project (or company company). common rules include avoiding leading underscores in such names (reserved standard library)
- there no best way "define signature", it's same other functions: choose explicit , clear names both method name , arguments.
- the best advise avoid explicit pointers functions, , prefer using std::function , powerful polymorphic function wrapper.
Comments
Post a Comment