现代C++中uintptr_t类型的头文件是什么
What is the header file for the uintptr_t type in modern C++?
我发现在C99中应该使用#include <stdint.h>
,这似乎也适用于我的C++03 gcc编译器,但这是现代C++的正确标头吗?它是可移植的吗?
在C++11中,它在<cstdint>
中。
在该语言的旧版本中,它并没有正式存在;但许多编译器提供C99库作为扩展,在这种情况下,它将在<stdint.h>
中可用。
它在stdint.h:中定义
#include <stdint.h>
在C++中,标准标头在cstdint
中
#include <cstdint>
包括cinttypes
或cstdint
。
它在C99中,作为一种可选类型。许多C++03编译器都提供了该文件。它也在C++11中,在中,它也是可选的,它的定义引用了C99。包括stdint.h
相关文章:
- 文件系统:复制功能的速度秘诀是什么
- 在C++中包含原型文件的正确方法是什么?
- 通过比较C++中的行在 txt 文件中搜索的最简单方法是什么?
- 引用文件的适当方法是什么?
- 读取大文件(>2GB)(文本文件包含以太网数据)并通过不同参数随机访问数据的最佳方法是什么?
- 在C++中创建文件夹选取器对话框的最简单方法是什么?
- 将位字符串转储到二进制文件的最佳方法是什么
- 谁能告诉我,程序中的错误是什么?该程序仅用于获取文件扩展名
- 通过boost asio iostream下载大文件的最快方法是什么?
- 这个错误可能是什么?ANSI C文件
- 读取二进制文件的惯用C++17标准方法是什么
- 是否可以将要"ShellExecute"的文件包含在 dll 中?如果是这样,"ShellExecute"中的文件位置应该是什么?
- 使用 MSVC 编译时,msdpb* 文件的正确用法是什么?
- 复制文件的最佳方式是什么,以便我可以在复制过程中轻松取消复制?
- 从包含 IP 标头片段的二进制文件中读取结构的最佳方法是什么
- COM 客户端连接 COM 服务器所需的文件是什么(进程外方案)
- "尝试升级使用已弃用的转换参数指定的输入文件"是什么意思?
- 在任何平台上执行任何Qt5应用程序的重要dll文件是什么(运行时文件dll)
- 现代C++中uintptr_t类型的头文件是什么
- Poco C++中的lib文件是什么