Interface Documentation
Version: invalid
Namespaces | Functions
set_utils.hh File Reference
#include <algorithm>
#include <set>
Include dependency graph for set_utils.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 flecsi
 

Functions

template<class T >
std::set< T > flecsi::util::set_intersection (const std::set< T > &s1, const std::set< T > &s2)
 
template<class T >
std::set< T > flecsi::util::set_union (const std::set< T > &s1, const std::set< T > &s2)
 
template<class T >
std::set< T > flecsi::util::set_difference (const std::set< T > &s1, const std::set< T > &s2)
 

Function Documentation

◆ set_difference()

template<class T >
std::set<T> flecsi::util::set_difference ( const std::set< T > &  s1,
const std::set< T > &  s2 
)
inline

Convenience function wrapper around std::set_difference function. This version computes the difference of two sets and returns the result as a set.

Parameters
s1The first set of the difference.
s2The second set of the difference.
Returns
A set containing the difference of s1 with s2.

◆ set_intersection()

template<class T >
std::set<T> flecsi::util::set_intersection ( const std::set< T > &  s1,
const std::set< T > &  s2 
)
inline

Convenience function wrapper around std::set_intersection function. This version computes the intersection of two sets and returns the result as a set.

Parameters
s1The first set of the intersection.
s2The second set of the intersection.
Returns
A set containing the intersection of s1 with s2.

◆ set_union()

template<class T >
std::set<T> flecsi::util::set_union ( const std::set< T > &  s1,
const std::set< T > &  s2 
)
inline

Convenience function wrapper around std::set_union function. This version computes the union of two sets and returns the result as a set.

Parameters
s1The first set of the union.
s2The second set of the union.
Returns
A set containing the union of s1 with s2.