util::has_duplicate_extracted_types< Extractor, Tuple > Struct Template Reference

Traits holding whether elements of Tuple have duplicate types. More...

#include <TupleLookupByTag.h>

Inheritance diagram for util::has_duplicate_extracted_types< Extractor, Tuple >:

Detailed Description

template<template< typename T, typename... > class Extractor, typename Tuple>
struct util::has_duplicate_extracted_types< Extractor, Tuple >

Traits holding whether elements of Tuple have duplicate types.

Template Parameters
Extractortrait to extract the type to check from each element
Tupletuple-type object to check
See also
count_extracted_types_v, index_of_extracted_type, has_extracted_type, has_duplicate_types, has_duplicate_extracted_types_v

This trait holds whether there are multiple occurrences of elements in Tuple which have the same extracted type. For example:

template <typename T>
struct ExtractValueType { using type = typename T::value_type; };
using tuple_t
= std::tuple<std::vector<float>, std::vector<int>, std::list<int>>;
constexpr bool hasDuplicate

hasDuplicate is true because there are two elements in tuple_t with int as value_type (that is, the type delivered by ExtractValueType).

Definition at line 468 of file TupleLookupByTag.h.


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