header_utils
Loading...
Searching...
No Matches
ghassanpl::with_sl< T > Struct Template Reference

Use as a function parameter type to capture both the parameter and the call-site source location. More...

#include <with_sl.h>

Public Member Functions

template<typename U >
requires (!std::same_as<std::remove_cvref_t<U>, with_sl<T>>)
 with_sl (U &&u, source_location loc EQ_SOURCE_LOCATION)
 
 with_sl (with_sl const &other) noexcept=default
 
 with_sl (with_sl &&other) noexcept=default
 
with_sloperator= (with_sl const &other) noexcept=default
 
with_sloperator= (with_sl &&other) noexcept=default
 

Public Attributes

Object
 
source_location Location
 

Detailed Description

template<typename T>
struct ghassanpl::with_sl< T >

Use as a function parameter type to capture both the parameter and the call-site source location.

Definition at line 40 of file with_sl.h.

Constructor & Destructor Documentation

◆ with_sl()

template<typename T >
template<typename U >
requires (!std::same_as<std::remove_cvref_t<U>, with_sl<T>>)
ghassanpl::with_sl< T >::with_sl ( U &&  u,
source_location loc  EQ_SOURCE_LOCATION 
)
inline

Definition at line 47 of file with_sl.h.

Member Data Documentation

◆ Location

template<typename T >
source_location ghassanpl::with_sl< T >::Location

Definition at line 43 of file with_sl.h.

◆ Object

template<typename T >
T ghassanpl::with_sl< T >::Object

Definition at line 42 of file with_sl.h.