30 #ifndef PT_GFX_ALGORITHM_H
31 #define PT_GFX_ALGORITHM_H
33 #include <Pt/Gfx/Api.h>
39 template<
typename InputIteratorT,
typename OutputIteratorT>
40 void copy(InputIteratorT from, InputIteratorT fromEnd, OutputIteratorT to)
42 for( ; from != fromEnd; ++from, ++to)
47 template<
typename OutputIteratorT,
typename T>
48 void fill(OutputIteratorT to, OutputIteratorT toEnd,
const T& value)
50 for (; to != toEnd; ++to)
55 template<
typename InputIteratorT,
typename OutputIteratorT,
typename OperationT>
56 void transform(InputIteratorT from, InputIteratorT fromEnd,
57 OutputIteratorT to, OperationT op)
59 for( ; from != fromEnd; ++from, ++to)
64 template<
typename IteratorT,
typename OperationT>
65 void transform(IteratorT begin, IteratorT end, OperationT op)
67 for( ; begin != end; ++begin)