Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
w
x
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
Related Functions
Files
File List
File Members
All
c
d
g
n
o
r
s
Functions
Macros
c
d
n
r
include
cras_cpp_common
set_utils.hpp
Go to the documentation of this file.
1
#pragma once
2
11
#include <algorithm>
12
#include <iterator>
13
#include <set>
14
15
namespace
cras
16
{
17
25
template
<
typename
T>
26
bool
isSetIntersectionEmpty
(const ::std::set<T>& set1, const ::std::set<T>& set2)
27
{
28
::std::set<T> tmpSet;
29
::std::set_intersection(
30
set1.begin(), set1.end(),
31
set2.begin(), set2.end(),
32
::std::inserter(tmpSet, tmpSet.end()));
33
return
tmpSet.empty();
34
}
35
36
}
cras
Definition:
any.hpp:15
cras::isSetIntersectionEmpty
bool isSetIntersectionEmpty(const ::std::set< T > &set1, const ::std::set< T > &set2)
Test whether the two given sets have empty intersection.
Definition:
set_utils.hpp:26
cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sun Mar 2 2025 03:50:53