Class definition:
#include <godot_cpp/core/binder_common.hpp> // This appears to have a lot of features included right here
class ExampleRef : public RefCounted {
GDCLASS(ExampleRef, RefCounted);
private:
// ...
protected:
static void _bind_methods();
public:
ExampleRef();
~ExampleRef();
};
To instantiate:
Ref<ExampleRef> ref;
ref.instantiate();