Maurice Rodriguez
Maurice Rodriguez

Reputation: 663

What does the symbol '^' after datatypes in C++ mean?

when i stumbled upon some MS headers files... i found codes like this

void App::OnSuspending(Object^ sender, SuspendingEventArgs^ args)

yes a normal function header, but notice on the parameter declaration "Object^", "SuspendingEventArgs^", i know they're somekind of classes but what is the use of "^" after each of them?

Upvotes: 0

Views: 445

Answers (1)

Keith Nicholas
Keith Nicholas

Reputation: 44298

its not standard C++, its for compatibility with .net and signifies a .net reference type

Upvotes: 6

Related Questions