5#define __XTD_STD_INTERNAL__
7#undef __XTD_STD_INTERNAL__
9#if defined(__xtd__cpp_lib_source_location)
10#include <source_location>
11using __xtd_source_location__ = std::source_location;
33class __xtd_source_location__ {
35 const char* file_name() const noexcept {
return data_->file;}
36 uint32_t line() const noexcept {
return data_->line;}
37 const char* function_name() const noexcept {
return data_->func;}
38 uint32_t column() const noexcept {
return data_->column;}
40 static __xtd_source_location__
current(
const char* file = __builtin_FILE(), uint32_t line = __builtin_LINE(),
const char* func = __builtin_FUNCTION(), uint32_t column = __builtin_COLUMN()) noexcept {
41 auto csl = __xtd_source_location__ {};
42 *csl.data_ = {file, line,
func, column};
53 std::shared_ptr<data> data_ = std::make_shared<data>();
Contains __xtd_std_version definitions.
xtd::delegate< result_t(arguments_t... arguments)> func
Represents a delegate that has variables parameters and returns a value of the type specified by the ...
Definition func.hpp:27
@ current
Specifies the current position within a stream.
Definition seek_origin.hpp:20
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201