13 #ifndef __STOUT_SET_HPP__ 14 #define __STOUT_SET_HPP__ 20 std::set<T>
operator|(
const std::set<T>& left,
const std::set<T>& right)
24 std::set<T> result = left;
25 result.insert(right.begin(), right.end());
31 std::set<T>
operator+(
const std::set<T>& left,
const T& t)
33 std::set<T> result = left;
40 std::set<T>
operator&(
const std::set<T>& left,
const std::set<T>& right)
43 std::set_intersection(
48 std::inserter(result, result.begin()));
54 std::set<T>
operator-(
const std::set<T>& left,
const std::set<T>& right)
62 std::inserter(result, result.begin()));
66 #endif // __STOUT_SET_HPP__ std::set< T > operator+(const std::set< T > &left, const T &t)
Definition: set.hpp:31
std::set< T > operator|(const std::set< T > &left, const std::set< T > &right)
Definition: set.hpp:20
std::set< T > operator-(const std::set< T > &left, const std::set< T > &right)
Definition: set.hpp:54
std::set< T > operator&(const std::set< T > &left, const std::set< T > &right)
Definition: set.hpp:40