A class representing information about the source code, such as file names, line numbers, and function names.
More...
A class representing information about the source code, such as file names, line numbers, and function names.
#if defined(TETL_ENABLE_CXX_MODULES)
import etl;
#else
#endif
#include <stdio.h>
-> void
{
::printf(
"file: %s(%u:%u) `%s`: %s\n",
static_cast<unsigned>(
location.column()),
);
}
template <typename T>
static auto fun(
T x) ->
void
{
}
auto main(int , char const** ) -> int
{
fun("Hello C++23!");
return 0;
}
constexpr auto log(float v) noexcept -> float
Definition log.hpp:45
The class template bitset represents a fixed-size sequence of Bits bits. Bitsets can be manipulated b...
Definition bitset.hpp:23
A class representing information about the source code, such as file names, line numbers,...
Definition source_location.hpp:20
static consteval auto current(uint_least32_t const line=TETL_BUILTIN_LINE(), uint_least32_t const column=TETL_BUILTIN_COLUMN(), char const *const file=TETL_BUILTIN_FILE(), char const *const function=TETL_BUILTIN_FUNCTION()) noexcept -> source_location
Definition source_location.hpp:21
- Examples
- source_location.cpp.