ΒΆtemplate <class T>
inline constexpr std::decay_t<T> clone(
const T& source) noexcept
template <class T>
inline constexpr std::decay_t<T> clone(
const T& source) noexcept
Description
Clones the input either by copying or cloning. Returns a new object of type `T`. If `T` is a reference type, it will clone the underlying object.
Declared at: sus/mem/clone.h:114
Templates
- T
Parameters
- const T& source