Class helper in C++

538 Views Asked by At

In Delphi there are exists class helpers which can add methods for some given class.

Is there any design pattern in C++ which can do the same?

1

There are 1 best solutions below

3
On

In .net you have extension methods which are similar. In Python you can use monkey patching which is similar. In standard C++ there is nothing similar to Delphi class helpers.