Заголовок стандартной библиотеки <source_location> (C++20)
Этот заголовок является частью библиотеки utility.
Классы |
|
|
(C++20) | класс, представляющий информацию о исходном коде, такую как имена файлов, номера строк и имена функций (класс) |
Синопсис
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
};
}
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/header/source_location