Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template uninitialized_copy_or_move

boost::uninitialized_copy_or_move

Synopsis

// In header: <boost/move/algorithm.hpp>


template<typename I, typename F> F uninitialized_copy_or_move(I f, I l, F r);

Description

Effects:

for (; f != l; ++r, ++f)
   new (static_cast<void*>(&*r))
      typename iterator_traits<F>::value_type(*f);

Returns: r

Note: This function is provided because std::uninitialized_copy from some STL implementations is not compatible with move_iterator


PrevUpHomeNext