3#ifndef TETL_ALGORITHM_SET_SYMMETRIC_DIFFERENCE_HPP
4#define TETL_ALGORITHM_SET_SYMMETRIC_DIFFERENCE_HPP
17template <
typename InputIt1,
typename InputIt2,
typename OutputIt,
typename Compare>
27 while (first1 != last1) {
28 if (first2 == last2) {
29 return etl::copy(first1, last1, destination);
32 if (comp(*first1, *first2)) {
33 *destination++ = *first1++;
35 if (comp(*first2, *first1)) {
36 *destination++ = *first2;
43 return etl::copy(first2, last2, destination);
46template <
typename InputIt1,
typename InputIt2,
typename OutputIt>
constexpr auto set_symmetric_difference(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt destination, Compare comp) -> OutputIt
Computes symmetric difference of two sorted ranges: the elements that are found in either of the rang...
Definition set_symmetric_difference.hpp:18
constexpr auto copy(InputIt first, InputIt last, OutputIt destination) -> OutputIt
Copies the elements in the range, defined by [first, last), to another range beginning at destination...
Definition copy.hpp:18
Definition adjacent_find.hpp:8
Function object for performing comparisons. Unless specialised, invokes operator< on type T....
Definition less.hpp:14