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>
 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_sl & operator= (with_sl const &other) noexcept=default
with_sl & operator= (with_sl &&other) noexcept=default

Public Attributes

T 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 37 of file with_sl.h.

Constructor & Destructor Documentation

◆ with_sl()

template<typename T>
template<typename U>
ghassanpl::with_sl< T >::with_sl ( U && u,
source_location loc EQ_SOURCE_LOCATION )
inline

Definition at line 44 of file with_sl.h.

Member Data Documentation

◆ Location

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

Definition at line 40 of file with_sl.h.

◆ Object

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

Definition at line 39 of file with_sl.h.