Caffe2 - C++ API
A deep learning, cross platform ML framework
c10::guts::is_instantiation_of< Template, T > Struct Template Reference

is_instantiation_of<T, I> is true_type iff I is a template instantiation of T (e.g. More...

#include <TypeTraits.h>

Inheritance diagram for c10::guts::is_instantiation_of< Template, T >:

Detailed Description

template<template< class... > class Template, class T>
struct c10::guts::is_instantiation_of< Template, T >

is_instantiation_of<T, I> is true_type iff I is a template instantiation of T (e.g.

vector<int> is an instantiation of vector) Example: is_instantiation_of_t<vector, vector<int>> // true is_instantiation_of_t<pair, pair<int, string>> // true is_instantiation_of_t<vector, pair<int, string>> // false

Definition at line 47 of file TypeTraits.h.


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