Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
SourceLocation.hpp File Reference

Source location utility. More...

#include <source_location>
#include <string>
Include dependency graph for SourceLocation.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SourceLocation
 provide information about the source location More...

Namespaces

namespace  shambase
 namespace for basic c++ utilities

Functions

std::string shambase::format_multiline (std::source_location loc)
 format the location in multiple lines
std::string shambase::format_multiline (std::source_location loc, const std::string &stacktrace)
 format the location in multiple lines with a given stacktrace
std::string shambase::format_one_line (std::source_location loc)
 format the location in a one liner
std::string shambase::format_one_line_func (std::source_location loc)
 format the location in a one liner with the function name displayed

Detailed Description

Source location utility.

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)
Date
2023-02-24

Definition in file SourceLocation.hpp.