|
header_utils
|
Use as a function parameter type to capture both the parameter and the hash of the call-site source location. More...
#include <with_sl.h>
Public Types | |
| using | hash_func |
| using | hash_type |
Public Member Functions | |
| template<typename U> | |
| with_slh (U &&t, hash_type loc=HASH_FUNC{}(source_location::current())) | |
| with_slh (with_slh const &other) noexcept=default | |
| with_slh (with_slh &&other) noexcept=default | |
| with_slh & | operator= (with_slh const &other) noexcept=default |
| with_slh & | operator= (with_slh &&other) noexcept=default |
Public Attributes | |
| T | Object |
| hash_type | LocationHash |
Use as a function parameter type to capture both the parameter and the hash of the call-site source location.
| HASH_FUNC | a std::hash-style object type whose instances can hash std::source_location |
| using ghassanpl::with_slh< T, HASH_FUNC >::hash_func |
| using ghassanpl::with_slh< T, HASH_FUNC >::hash_type |
|
inline |
| hash_type ghassanpl::with_slh< T, HASH_FUNC >::LocationHash |
| T ghassanpl::with_slh< T, HASH_FUNC >::Object |