C++/Algorytmy w STL/adjacent difference()
Z Wikibooks, biblioteki wolnych podręczników.
< C++ | Algorytmy w STL
[edytuj] adjacent_difference()
[edytuj] Prototyp funkcji
template <class InputIterator, class OutputIterator>
OutputIterator adjacent_difference(InputIterator first, InputIterator last, OutputIterator result);
template <class InputIterator, class OutputIterator, class BinaryFunction>
OutputIterator adjacent_difference(InputIterator first, InputIterator last, OutputIterator result, BinaryFunction binary_op);
[edytuj] Działanie
generuje ciąg, wykonując operację na ciągu