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 = HASH_FUNC |
using | hash_type = decltype(HASH_FUNC{}(source_location{})) |
Public Member Functions | |
template<typename U > requires (!std::same_as<std::remove_cvref_t<U>, with_slh<T>>) | |
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 = HASH_FUNC |
using ghassanpl::with_slh< T, HASH_FUNC >::hash_type = decltype(HASH_FUNC{}(source_location{})) |
|
inline |
hash_type ghassanpl::with_slh< T, HASH_FUNC >::LocationHash |