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_; // 설명 전용 }; }