Код: Выделить всё
template
class DetectFind
{
struct Fallback { int find; };
struct Derived : T, Fallback { };
template struct Check;
typedef char Yes[1];
typedef char No[2];
template
static No& func(Check*);
template
static Yes& func(...);
public:
typedef DetectFind type;
enum { value = sizeof(func(0)) == sizeof(Yes) };
};
int main()
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/68996404/what-does-templatetypename-t-t-mean[/url]