1 #ifndef SIPLASPLAS_UTILITY_UNIVERSALREFERENCE_HPP 2 #define SIPLASPLAS_UTILITY_UNIVERSALREFERENCE_HPP 28 bool IsLvalueReference,
43 const ValueType&
get()
const 75 ValueType&
get()
const 100 _object{std::move(rvalueRef)}
114 const ValueType&
get()
const 142 std::is_lvalue_reference<T>::value,
143 std::is_const<std::remove_reference_t<T>>::value
146 return { std::forward<T>(value) };
151 #endif // SIPLASPLAS_UTILITY_UNIVERSALREFERENCE_HPP auto universalReference(T &&value) -> UniversalReference< std::decay_t< T >, std::is_lvalue_reference< T >::value, std::is_const< std::remove_reference_t< T >>::value >
Creates an universal reference to the given value.
Definition: universal_reference.hpp:139
Definition: canary_allocator.hpp:7
Implements a copyable wrapper of an universal reference.
Definition: universal_reference.hpp:31