Standard library header <source_location> (C++20)
From cppreference.net
C++
Standard library headers
このヘッダは utility ライブラリの一部です。
クラス |
|
|
(C++20)
|
ファイル名、行番号、関数名などのソースコード情報を表すクラス
(クラス) |
概要
namespace std { struct source_location; }
クラス std::source_location
namespace std { struct source_location { // ソース位置の構築 static consteval source_location current() noexcept; constexpr source_location() noexcept; // ソース位置フィールドへのアクセス 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_; // 説明専用 uint_least32_t column_; // 説明専用 const char* file_name_; // 説明専用 const char* function_name_; // 説明専用 }; }