60 [[nodiscard]]
constexpr auto file_path() const ->
std::string_view {
Class to hold information of source codes.
constexpr auto column() const -> index_type
Get the column number.
index_type line_
Line number.
constexpr auto line() const -> index_type
Get the line number.
std::string_view function_name_
Function name.
constexpr auto function_name() const -> std::string_view
Get the function name.
constexpr source_info_view(std::string_view file_path=NUM_COLLECT_BUILTIN_FILE(), index_type line=NUM_COLLECT_BUILTIN_LINE(), index_type column=NUM_COLLECT_BUILTIN_COLUMN(), std::string_view function_name=NUM_COLLECT_BUILTIN_FUNCTION())
Constructor.
constexpr auto file_path() const -> std::string_view
Get the file path.
std::string_view file_path_
File path.
index_type column_
Column number.
Definition of macros for built-in functions of compilers.
#define NUM_COLLECT_BUILTIN_COLUMN()
Get column number.
#define NUM_COLLECT_BUILTIN_FUNCTION()
Get function name.
#define NUM_COLLECT_BUILTIN_LINE()
Get line number.
#define NUM_COLLECT_BUILTIN_FILE()
Get file path.
Definition of index_type type.
std::ptrdiff_t index_type
Type of indices in this library.