imagine that the macro is only used with some types and not change on all code, can i do it?
the vector have push_back() method. but i want use add() instead. if i use a normal macro, it will change all code and not only that method.
can i create a macro for change only on that method?
Best you leave it as a free function. There's no reason to do what you're trying to do. No reason to do what you're trying to do. No reason to do what you're trying to do.