Function Subspace :: sus :: mem :: clone

template <class T>
auto clone(const T& source) -> std::decay_t<T>
requires
sus::mem::Clone<T>

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.