GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • cpprefjp - C++日本語リファレンス
  • GitHub Project

This view

  • Original page
  • New address

GeezerVison is showing cpprefjp.github.io — std::simd::basic_mask::cend - cpprefjp C++日本語リファレンス

  1. リファレンス
  2. simd
  3. basic_mask
  4. cend

最終更新日時: 2026年07月31日 23時18分35秒 (JST)
Akira Takahashi が更新

履歴 編集

function
<simd>

std::simd::basic_mask::cend(C++26)

constexpr default_sentinel_t cend() const noexcept; // (1) C++26

概要

読み取り専用イテレータの終端を表す番兵(std::default_sentinel_t)を取得する。

戻り値

std::default_sentinel

例外

投げない

例

#include <simd>
#include <print>

namespace simd = std::simd;

int main()
{
  simd::mask<int, 4> m = [](int i) { return i % 2 == 0; };  // {true, false, true, false}

  for (auto it = m.cbegin(); it != m.cend(); ++it) {
    std::print("{} ", *it);
  }
  std::println("");
}

出力

true false true false 

バージョン

言語

  • C++26

処理系

  • Clang: 22 ❌
  • GCC: 16.1 ❌
  • Visual C++: 2026 Update 2 ❌

関連項目

  • begin
  • end
  • cbegin

参照

  • P1928R15 std::simd — merge data-parallel types from the Parallelism TS 2
    • C++26で追加された
  • P3480R6 std::simd is a range
    • イテレータを追加し、Rangeとして扱えるようになった
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.