proxygen
folly::dptr_detail::GetTypeIndex< Types > Struct Template Reference

#include <DiscriminatedPtrDetail.h>

Detailed Description

template<typename... Types>
struct folly::dptr_detail::GetTypeIndex< Types >

Given a target type and a list of types, return the 1-based index of the type in the list of types. Fail to compile if the target type doesn't appear in the list.

GetIndex<int, void, char, int>::value == 3 GetIndex<int, void, char>::value -> fails to compile

Definition at line 36 of file DiscriminatedPtrDetail.h.


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