mtl::make_in_out_copy_or_reference< Target, Source > Struct Template Reference
Helper class to avoid avoidable copies for input-output parameters. More...
#include <make_copy_or_reference.hpp>
Helper class to avoid avoidable copies for input-output parameters.
Container is referred if it has already target type, otherwise copied construction and 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.
mtl::make_in_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.