header_utils
Loading...
Searching...
No Matches
with_sl

A set of useful types (with_sl and with_slh) that allow for variadic functions taking a std::source_location. More...

Classes

struct  ghassanpl::with_sl< T >
 Use as a function parameter type to capture both the parameter and the call-site source location. More...
struct  ghassanpl::with_slh< T, HASH_FUNC >
 Use as a function parameter type to capture both the parameter and the hash of the call-site source location. More...

Detailed Description

A set of useful types (with_sl and with_slh) that allow for variadic functions taking a std::source_location.

Example Usage
template <typename... ARGS>
void Debug(with_sl<string_view> fmt, ARGS&&... args)
{
Log(LogType::Debug, fmt.Location, format(fmt.Object, forward<ARGS>(args)...));
}