Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
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 (; first != last; ++result, ++first)
   new (static_cast<void*>(&*result))
      typename iterator_traits<ForwardIterator>::value_type(*first);

Returns: result

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


PrevUpHomeNext