Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::SymmetricDifference< T > Struct Template Reference

Detailed Description

template<typename T>
struct operations_research::math_opt::SymmetricDifference< T >

The elements in the set first, but not in second, and the elements in the set second, but not in first.

Definition at line 39 of file elemental_differencer.h.

#include <elemental_differencer.h>

Public Member Functions

 SymmetricDifference ()=default
 SymmetricDifference (const absl::flat_hash_set< T > &first, const absl::flat_hash_set< T > &second)
bool Empty () const

Public Attributes

absl::flat_hash_set< T > only_in_first
absl::flat_hash_set< T > only_in_second

Constructor & Destructor Documentation

◆ SymmetricDifference() [1/2]

template<typename T>
operations_research::math_opt::SymmetricDifference< T >::SymmetricDifference ( )
explicitdefault

◆ SymmetricDifference() [2/2]

template<typename T>
operations_research::math_opt::SymmetricDifference< T >::SymmetricDifference ( const absl::flat_hash_set< T > & first,
const absl::flat_hash_set< T > & second )
explicit

Definition at line 197 of file elemental_differencer.h.

Member Function Documentation

◆ Empty()

template<typename T>
bool operations_research::math_opt::SymmetricDifference< T >::Empty ( ) const
inline

Definition at line 47 of file elemental_differencer.h.

Member Data Documentation

◆ only_in_first

template<typename T>
absl::flat_hash_set<T> operations_research::math_opt::SymmetricDifference< T >::only_in_first

Definition at line 40 of file elemental_differencer.h.

◆ only_in_second

template<typename T>
absl::flat_hash_set<T> operations_research::math_opt::SymmetricDifference< T >::only_in_second

Definition at line 41 of file elemental_differencer.h.


The documentation for this struct was generated from the following file: