Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.01 KB

offset.md

File metadata and controls

42 lines (29 loc) · 1.01 KB

offset

  • mdspan[meta header]
  • function[meta id-type]
  • std[meta namespace]
  • aligned_accessor[meta class]
  • cpp26[meta cpp]
constexpr typename offset_policy::data_handle_type
  offset(data_handle_type p, size_t i) const noexcept;

概要

指定オフセット位置のハンドルを取得する。

事前条件

  • 半開区間[0, i+1)が有効な範囲であり、かつ
  • is_sufficiently_aligned<byte_alignment>(p)trueであること。

効果

return assume_aligned<byte_alignment>(p) + i;と等価

例外

投げない

バージョン

言語

  • C++26

処理系

参照