I've searched some but only found subjects based on C and not C++, here.
So I was wondering whether there is a way to remove the main function using some weird function or something to shorten one's code.
The purpose of this is for code-golf, which is shortening one's code to the absolute shortest. I found the int main{}
particularly annoying when code-golfing as it adds an additional 10 characters to my char count. Unlike other languages, e.g. python, C languages require this unfortunately. So is there a way to remove this to lower my char count?
Not only that, I think this can be applicable for things other than code-golf, especially if users do not want to use the entry point of int main{}
for some reason.