【发布时间】:2012-10-29 17:17:57
【问题描述】:
通过像这样使用restrict 关键字:
int f(int* restrict a, int* restrict b);
我可以指示编译器数组 a 和 b 不重叠。假设我有一个结构:
struct s{
(...)
int* ip;
};
并编写一个接受两个struct s 对象的函数:
int f2(struct s a, struct s b);
在这种情况下,我如何类似地指示编译器 a.ip 和 b.ip 不重叠?
【问题讨论】:
标签: c function struct restrict-qualifier