fork download
#include <iostream>

struct PITUH {
    PITUH() {
        std::cout << "PITUH()" << std::endl;
    }
};

class malloc2 {
public:
    malloc2(size_t size) {}
    template <typename T> operator T*() {
        return new T;
    }
};

int main() {
    PITUH *pituh_pointer = malloc2(sizeof(PITUH));
    return 0;
}
Success #stdin #stdout 0s 16048KB
stdin
Standard input is empty
stdout
PITUH()