Trait holding whether an element in Tuple type contains Target.
More...
#include <TupleLookupByTag.h>
Trait holding whether an element in Tuple type contains Target.
| Extractor | trait exposing the target type in an element |
| Target | the target type to be found |
| Tuple | the tuple-like type to be investigated |
Given a tuple-like type Tuple, this trait returns whether there is at least an element type which "contains" the target type Target. For example:
hasIntegerContainers will hold value true, meaning there are two types with int as value_type. Likewise, hasDoubleContainers will be false.
util::getByExtractedType<ExtractValueType, double>(data) needs to be compilable, but it is not since it has more than one int extracted types. This is solved in C++17 by the use of a "constexpr if". Definition at line 377 of file TupleLookupByTag.h.
1.8.5