Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
internal::ConnectedComponentsTypeHelper< T, CompareOrHashT, Eq > Struct Template Reference

#include <connected_components.h>

Classes

struct  SelectContainer
 
struct  SelectContainer< U, V, absl::enable_if_t< std::is_integral< decltype(std::declval< const U & >()(std::declval< const T & >()))>::value &&!std::is_same_v< V, void > > >
 Specialization for when U is a hash functor and Eq is provided (not void). More...
 
struct  SelectContainer< U, V, absl::enable_if_t< std::is_integral< decltype(std::declval< const U & >()(std::declval< const T & >()))>::value &&std::is_same_v< V, void > > >
 

Public Types

using Set = typename SelectContainer<CompareOrHashT, Eq>::Set
 
using Map = typename SelectContainer<CompareOrHashT, Eq>::Map
 

Detailed Description

template<typename T, typename CompareOrHashT, typename Eq>
struct internal::ConnectedComponentsTypeHelper< T, CompareOrHashT, Eq >

A helper to deduce the type of map to use depending on whether CompareOrHashT is a comparator or a hasher (prefer the latter).

Definition at line 149 of file connected_components.h.

Member Typedef Documentation

◆ Map

template<typename T , typename CompareOrHashT , typename Eq >
using internal::ConnectedComponentsTypeHelper< T, CompareOrHashT, Eq >::Map = typename SelectContainer<CompareOrHashT, Eq>::Map

Definition at line 186 of file connected_components.h.

◆ Set

template<typename T , typename CompareOrHashT , typename Eq >
using internal::ConnectedComponentsTypeHelper< T, CompareOrHashT, Eq >::Set = typename SelectContainer<CompareOrHashT, Eq>::Set

Definition at line 185 of file connected_components.h.


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