In C++/CLI, what does the hat character ^ do? [duplicate]

It’s a managed pointer – while * marks a pointer to an object that is unmanaged, ^ points to a garbage collected object (handled by the framework). Read this for more information about the way pointers are handled in .NET.

Leave a Comment