std::wmemcpy
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <cwchar> 中定义
|
||
| wchar_t* wmemcpy( wchar_t* dest, const wchar_t* src, std::size_t count ); |
||
。副本
count宽字符所指向的对象的src指出,dest的对象。如果对象重叠,其行为是不确定的。如果对象是不平凡的拷贝(标量,数组,C-兼容的结构),该行为是未定义.原文:
Copies
count wide characters from the object pointed to by src to the object pointed to by dest. If the objects overlap, the behavior is undefined. If the objects are not trivially copyable (scalars, arrays, C-compatible structs), the behavior is undefined.[编辑] 。参数。
| dest | - | 。复制到存储器位置的指针。
原文: pointer to the memory location to copy to |
| src | - | 。指针指向的内存位置复制。
原文: pointer to the memory location to copy from |
| count | - | 。要复制的字节数。
|
===。
返回值。===
dest
[编辑] 。为例。
| 本章尚未完成 原因:暂无示例 |
[编辑] 。另请参阅。
| 复制了一定的宽字符之间可能有重叠,数组 原文: copies a certain amount of wide characters between two, possibly overlapping, arrays (函数) | |
| (C++11) |
将某一范围的元素复制到一个新的位置 (函数模板) |
| 按从后往前的顺序复制一个范围内的元素 (函数模板) | |
| (C++11) |
检查类型是否可以通过简单拷贝内存完成拷贝 (类模板) |
| C documentation for wmemcpy
| |