开发者

What does ^ after a type mean in c++?

开发者 https://www.devze.com 2023-02-02 18:21 出处:网络
I have some c++ code with function return types declared as string^ o开发者_JAVA百科r IEnumerable<String^>^, what does that mean?

I have some c++ code with function return types declared as string^ o开发者_JAVA百科r IEnumerable<String^>^, what does that mean?

edits: c#->c++/cli


It doesn't mean anything in C#. You're looking at source code for C++/CLI, not C#.

See http://en.wikipedia.org/wiki/C%2B%2B/CLI for a brief introduction.

The carat symbol basically means "this is a GC-tracked reference".


It seems like managed C++, not C#. ^ means managed reference type.


Nothing. It is not valid there in C++. It's a "managed reference" type modifier for C++/CLI, a distinct language.

0

精彩评论

暂无评论...
验证码 换一张
取 消