Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the ^ character mean when used in C++ declarations? [duplicate]

Tags:

c++-cli

Possible Duplicate:
What does the caret (‘^’) mean in C++/CLI?
In C++/CLR, what does a hat character ^ do?

What does the ^ character mean in C++ when applied to the data type in a variable declaration, as in:

String^ input;

or

List<String^>^ phoneNumbers;
like image 921
Scott Mayfield Avatar asked Dec 19 '12 12:12

Scott Mayfield


1 Answers

Assuming a Microsoft-compiler, this is not from C++ but from Microsoft own C++ dialects called C++/CLI. It denotes a .NET-garbage collected object.

like image 79
Sebastian Mach Avatar answered Sep 25 '22 11:09

Sebastian Mach