名前空間
変種
操作

標準ライブラリヘッダー <source_location> (C++20)

From cppreference.com
 
 
標準ライブラリヘッダー
 

このヘッダーはユーティリティライブラリの一部です。

クラス

ファイル名、行番号、関数名などのソースコードに関する情報を表すクラス
(クラス) [編集]

[編集] 概要

namespace std {
  struct source_location;
}

[編集] クラス std::source_location

namespace std {
  struct source_location {
    // source location construction
    static consteval source_location current() noexcept;
    constexpr source_location() noexcept;
 
    // source location field access
    constexpr uint_least32_t line() const noexcept;
    constexpr uint_least32_t column() const noexcept;
    constexpr const char* file_name() const noexcept;
    constexpr const char* function_name() const noexcept;
 
  private:
    uint_least32_t line_;               // exposition only
    uint_least32_t column_;             // exposition only
    const char* file_name_;             // exposition only
    const char* function_name_;         // exposition only
  };
}
English 日本語 中文(简体) 中文(繁體)