2 * Copyright 2008-2013 NVIDIA Corporation
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 /*! \file general_copy.h
18 * \brief Sequential copy algorithms for general iterators.
23 #include <thrust/detail/config.h>
36 template<typename InputIterator,
37 typename OutputIterator>
38 OutputIterator general_copy(InputIterator first,
40 OutputIterator result)
42 for(; first != last; ++first, ++result)
45 } // end general_copy()
48 template<typename InputIterator,
50 typename OutputIterator>
51 OutputIterator general_copy_n(InputIterator first,
53 OutputIterator result)
55 for(; n > Size(0); ++first, ++result, --n)
58 } // end general_copy_n()
60 } // end namespace scalar
61 } // end namespace internal
62 } // end namespace detail
63 } // end namespace system
64 } // end namespace thrust