mtl::make_out_copy_or_reference< Target, Source > Struct Template Reference
Helper class to avoid avoidable copies for output parameters. More...
#include <make_copy_or_reference.hpp>
Helper class to avoid avoidable copies for output parameters.
Container is referred if it has already target type, otherwise copied at destruction. Create an object of this type and pass the value member variable to the function, e.g. make_in_copy_or_reference<Tgt, Src> copy_or_ref(v); f(copy_or_ref.value); where Src is the type of v and Tgt the type of f's argument. Target must be DefaultConstructible.
mtl::make_out_copy_or_reference< Target, Source > Struct Template Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine
-- Gen. with
rev. 7542
on Sat Aug 11 2012 by doxygen 1.7.6.1 -- © 2010 by SimuNova UG.