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

履歴 編集

function
<source_location>

std::source_location::line(C++20)

constexpr uint_least32_t line() const noexcept;

概要

source_locationオブジェクトが保持する行番号を返す。

戻り値

source_locationオブジェクトが保持する行番号。

例外

投げない。

実装例

constexpr uint_least32_t line() const noexcept { return line_; }

バージョン

言語

  • C++20

処理系

参照