1

I see this code in c++ template examples:

void Main(array<String^>^ args)

but I don't understand the reason for the ^ terminating the String and closing angle bracket.

Is it to allow multiple types or something? If someone could someone straighten me out, I would appreciate it. Thanks!

Deduplicator
  • 44,692
  • 7
  • 66
  • 118
user1634700
  • 165
  • 3
  • 12

1 Answers1

2

This code is C++/CLI (C++ .NET). String^ is the equivalent of the String class in C#. It's different from std::string. Furthermore, array is a C++/CLI specific class (it's not a standard STL container).

vincentp
  • 1,433
  • 9
  • 12