Build, test, and debug regular expressions
This regex matches C++ method definitions that are implemented outside of a class (using the ClassName::methodName syntax). It captures the return type (including qualifiers like virtual, const, friend, volatile), the method name (including destructors with ~), and the parameter list. This is useful for parsing C++ source files to extract method implementations and their signatures.