Reference 您所在的位置:网站首页 aligned_allocator Reference

Reference

#Reference| 来源: 网络整理| 查看: 265

Header

#include

Effects

If it is possible to fit size bytes of storage aligned by alignment into the buffer pointed to by ptr with length space, the function updates ptr to point to the first possible address of such storage and decreases space by the number of bytes used for alignment. Otherwise, the function does nothing.

Requires alignment shall be a power of two ptr shall point to contiguous storage of at least space bytes Returns A null pointer if the requested aligned buffer would not fit into the available space, otherwise the adjusted value of ptr. Note

The function updates its ptr and space arguments so that it can be called repeatedly with possibly different alignment and sizearguments for the same buffer.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有