Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Standard library header <source_location> (C++20)

      From cppreference.com
      <cpp‎ |header
       
       
      Standard library headers
       

      This header is part of theutility library.

      Classes

      a class representing information about the source code, such as file names, line numbers, and function names
      (class)[edit]

      [edit]Synopsis

      namespace std{struct source_location;}

      [edit]Classstd::source_location

      namespace std{struct source_location{// source location constructionstatic consteval source_location current()noexcept;constexpr source_location()noexcept; // source location field accessconstexpr uint_least32_t line()constnoexcept;constexpr uint_least32_t column()constnoexcept;constexprconstchar* file_name()constnoexcept;constexprconstchar* function_name()constnoexcept; private:    uint_least32_t line_;// exposition only    uint_least32_t column_;// exposition onlyconstchar* file_name_;// exposition onlyconstchar* function_name_;// exposition only};}
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/header/source_location&oldid=163978"

      [8]ページ先頭

      ©2009-2025 Movatter.jp