template <GTEST_TEMPLATE_ Tmpl>

struct TemplateSel

Defined at line 153 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-type-util.h

The template "selector" struct TemplateSel

<Tmpl

> is used to

represent Tmpl, which must be a class template with one type

parameter, as a type. TemplateSel

<Tmpl

>::Bind

<T

>::type is defined

as the type Tmpl

<T

>. This allows us to actually instantiate the

template "selected" by TemplateSel

<Tmpl

>.

This trick is necessary for simulating typedef for class templates,

which C++ doesn't support directly.

Records