• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

    最終更新日時(UTC):
    が更新

    履歴 編集

    function
    <ranges>

    std::ranges::view_interface::derived

    constexpr D& derived() noexcept {                   // exposition only
      return static_cast<D&>(*this);
    }
    
    constexpr const D& derived() const noexcept {       // exposition only
      return static_cast<const D&>(*this);
    }
    

    概要

    派生クラスの参照にダウンキャストする説明用のprivateメンバ関数。

    バージョン

    言語

    • C++20

    参照