C ++中的_In_是什么? [英] What is _In_ in C++?

查看:167
本文介绍了C ++中的_In_是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我目前正在尝试为Windows 8 Metro编写简单的DirextX游戏,已经碰到了 _In _ 相当多。我只是想知道是什么。



此外,我已经看到了很多使用 ^ 指针 * ,我发现奇怪。除此之外,一些类具有 ref class MyClass 的接口,我相信它是为了C#可读性。



解决方案

这是一个 SAL注释,用于代码分析。注释本身定义为在正常构建中无扩展的宏。



^ ref class C ++ / CX ,一组开发的语言扩展,使得更容易在C ++中为Windows 8构建Metro风格的应用程序。也不是标准C ++的一部分。文档(以前链接)有指向教程和描述语言扩展的引用的链接。


I have searched this up rather a lot, but come up with no helpful results.

I am currently trying to program simple DirextX game for Windows 8 Metro, and have come across _In_ rather a lot. I'm just wondering what it is.

Also, I have seen a lot of the use of ^ as the pointer * which I found odd. On top of this, some classes have an interface of ref class MyClass, which I believe is for C# legibility.

Anyway, any help would be brilliant.

解决方案

It is a SAL annotation, used for code analysis. The annotations themselves are defined as macros that, in normal builds, expand to nothing.

The ^ and ref class are features of C++/CX, a set of language extensions developed to make it easier to build Metro style apps for Windows 8 in C++. Neither is a part of standard C++. The documentation (linked previously) has links to tutorials and references describing the language extensions.

这篇关于C ++中的_In_是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆