System::With method

System::With(const SharedPtr<T>&, const A&) method

Clones reference record and applies initializer functor to it.

template<typename T,typename A> SharedPtr<T> System::With(const SharedPtr<T> &record, const A &initializer)
ParameterDescription
TRecord type to clone.
AInitialization functor type.
ParameterTypeDescription
recordconst SharedPtr<T>&Shared pointer to the object to clone and initialize.
initializerconst A&Initialization functor being applied to record clone.

ReturnValue

Shared pointer to cloned record.

See Also

System::With(const T&, const A&) method

Copies struct record and applies initializer functor to it.

template<typename T,typename A> T System::With(const T &record, const A &initializer)
ParameterDescription
TRecord type to copy.
AInitialization functor type.
ParameterTypeDescription
recordconst T&Record to copy and initialize.
initializerconst A&Initialization functor being applied to record copy.

ReturnValue

Copied record.

See Also