0

I came across this function with arguments like this. I am wondering what does the ^ mean in here.

bool GetDeviceInformation(String ^ port, LibCECConfiguration ^configuration, uint32_t timeoutMs){}

Cheers, Lan

BoBTFish
  • 19,167
  • 3
  • 49
  • 76
Lan
  • 33
  • 1
  • 5

2 Answers2

3

That a C++/CLI "reference". In particular, this is not C++ but a Microsoft extension to it. In C++, the caret is always the XOR operator.

doomster
  • 171
  • 2
0

It's a CLI (common language interface) reference; used in Microsoft's managed C++ environment. They have similarities to pointers. (You need to program in C++ CLI if, for example, you're building an interop layer between C++ and C#).

It is not standard: in standard C++, ^ is the eXclusive-OR operator.

Bathsheba
  • 231,907
  • 34
  • 361
  • 483