Home
last modified time | relevance | path

Searched full:template (Results 1 – 25 of 9631) sorted by relevance

12345678910>>...386

/external/deqp/external/vulkancts/framework/vulkan/
DvkGetStructureTypeImpl.inl4 template<> VkStructureType getStructureType<VkApplicationInfo> (void)
9 template<> VkStructureType getStructureType<VkInstanceCreateInfo> (void)
14 template<> VkStructureType getStructureType<VkDeviceQueueCreateInfo> (void)
19 template<> VkStructureType getStructureType<VkDeviceCreateInfo> (void)
24 template<> VkStructureType getStructureType<VkSubmitInfo> (void)
29 template<> VkStructureType getStructureType<VkMemoryAllocateInfo> (void)
34 template<> VkStructureType getStructureType<VkMappedMemoryRange> (void)
39 template<> VkStructureType getStructureType<VkBindSparseInfo> (void)
44 template<> VkStructureType getStructureType<VkFenceCreateInfo> (void)
49 template<> VkStructureType getStructureType<VkSemaphoreCreateInfo> (void)
[all …]
/external/eigen/Eigen/src/Core/util/
DForwardDeclarations.h1 // This file is part of Eigen, a lightweight C++ template library
17 template<typename T> struct traits;
20 // When constness must affect traits, it has to be constness on template parameters on which T itse…
23 template<typename T> struct traits<const T> : traits<T> {};
25 template<typename Derived> struct has_direct_access
30 template<typename Derived> struct accessors_level
39 template<typename T> struct evaluator_traits;
41 template< typename T> struct evaluator;
45 template<typename T> struct NumTraits;
47 template<typename Derived> struct EigenBase;
[all …]
/external/clang/test/Parser/
Dcxx-template-decl.cpp2 // RUN: %clang_cc1 -fsyntax-only -verify %s -fdelayed-template-parsing -DDELAYED_TEMPLATE_PARSING
8 export class foo { }; // expected-error {{expected template}}
9 template x; // expected-error {{C++ requires a type specifier for all declarations}} \
11 export template x; // expected-error {{expected '<' after 'template'}}
12 export template<class T> class x0; // expected-warning {{exported templates are unsupported}}
13 template < ; // expected-error {{expected template parameter}} \
14 // expected-error{{expected ',' or '>' in template-parameter-list}} \
16 template <int +> struct x1; // expected-error {{expected ',' or '>' in template-parameter-list}}
18 // verifies that we only walk to the ',' & still produce errors on the rest of the template paramet…
19 template <int +, T> struct x2; // expected-error {{expected ',' or '>' in template-parameter-list}}…
[all …]
/external/clang/test/CXX/temp/temp.param/
Dp11-0x.cpp3 // If a template-parameter of a class template or alias template has a default
4 // template-argument, each subsequent template-parameter shall either have a
5 // default template-argument supplied or be a template parameter pack.
6 template<typename> struct vector;
8 template<typename T = int, typename> struct X3t; // expected-error{{template parameter missing a de…
9 template<typename T = int, typename> using A3t = int; // expected-error{{template parameter missing…
10 template<int V = 0, int> struct X3nt; // expected-error{{template parameter missing a default argum…
11 template<int V = 0, int> using A3nt = int; // expected-error{{template parameter missing a default …
12 template<template<class> class M = vector, template<class> class> struct X3tt; // expected-error{{t…
13 template<template<class> class M = vector, template<class> class> using A3tt = int; // expected-err…
[all …]
/external/clang/test/SemaCXX/
Dcxx1y-variable-templates_in_class.cpp12template<typename T> CONST T wrong; // expected-error {{member 'wrong' declared as a tem…
13template<typename T> CONST T wrong_init = 5; // expected-error {{member 'wrong_init' declared…
14 template<typename T, typename T0> static CONST T right = T(100);
15 template<typename T> static CONST T right<T,int> = 5;
16template<typename T> CONST int right<int,T>; // expected-error {{member 'right' declared as a tem…
17template<typename T> CONST float right<float,T> = 5; // expected-error {{member 'right' declared …
18template<> static CONST int right<int,int> = 7; // expected-error {{explicit specialization …
19template<> static CONST float right<float,int>; // expected-error {{explicit specialization …
20template static CONST int right<int,int>; // expected-error {{template specialization requires…
26 template<typename T, typename T0> static CONST T right = T(100);
[all …]
Dcxx1y-variable-templates_top_level.cpp11 template<typename T>
12 T pi = T(3.1415926535897932385); // expected-note {{template is declared here}}
14 template<typename T>
15 CONST T cpi = T(3.1415926535897932385); // expected-note {{template is declared here}}
17 template<typename T> extern CONST T vc;
32 // template arguments are not deduced for uses of variable templates. in no_deduce()
33 …int ipi = pi; // expected-error {{cannot refer to variable template 'pi' without a template argume… in no_deduce()
34 …int icpi = cpi; // expected-error {{cannot refer to variable template 'cpi' without a template arg… in no_deduce()
37 template<typename T>
42 template<typename T>
[all …]
Dalias-template.cpp4 template<typename U> using T = int;
5 template<typename U> using T = int;
6 template<typename U> using T = T<U>;
10template<typename U> using A = void(int n = 0); // expected-error {{default arguments can only be …
11template<typename U> using B = inline void(int n); // expected-error {{type name does not allow fu…
12template<typename U> using C = virtual void(int n); // expected-error {{type name does not allow f…
13template<typename U> using D = explicit void(int n); // expected-error {{type name does not allow …
14template<typename U> using E = void(int n) throw(); // expected-error {{exception specifications a…
15template<typename U> using F = void(*)(int n) &&; // expected-error {{pointer to function type can…
16template<typename U> using G = __thread void(int n); // expected-error {{type name does not allow …
[all …]
/external/clang/test/CXX/temp/temp.spec/temp.expl.spec/
Dexamples.cpp4 template<typename T> struct identity { typedef T type; };
9 template<typename T> struct C { typedef B type; };
15 namespace N { template<typename T> struct S { void f(); }; }
17 namespace N { template<> void T::f() {} } in f()
21 template< typename S >
24 template< int >
30 template< typename S >
38 template<>
39 template<>
46 template<typename S> struct C {
[all …]
Dp2-0x.cpp19 // -- function template
21 template<typename T> void f0(T) { in f0()
25 template<> void f0(NonDefaultConstructible) { } in f0()
31 template<> void f0(int);
32 template<> void f0(long);
35 template<> void N0::f0(int) { } // okay in f0()
38 template<> void N0::f0(long) { } // expected-error{{does not enclose namespace}} in f0()
41 template<> void N0::f0(double) { } in f0()
44 template<typename T> void f(T);
46 template<> void f(int); // expected-error{{in class scope}}
[all …]
Dp2.cpp20 // -- function template
22 template<typename T> void f0(T) { in f0()
29 template<> void f0(NonDefaultConstructible) { } in f0()
35 template<> void f0(int);
36 template<> void f0(long);
39 template<> void N0::f0(int) { } // okay in f0()
42 template<> void N0::f0(long) { } // expected-error{{does not enclose namespace}} in f0()
45 template<> void N0::f0(double);
47 // expected-warning@-2 {{first declaration of function template specialization of 'f0' outside name…
50 template<> void N0::f0(double) { } in f0()
[all …]
/external/clang/test/CXX/temp/temp.decls/temp.variadic/
Dparameter-matching.cpp3 // Check for template type parameter pack (mis-)matches with template
5 template<typename ...T> struct X0t;
6 template<typename ...T> struct X0t;
8 template<typename ...T> struct X1t; // expected-note{{previous template type parameter pack declare…
9 template<typename T> struct X1t; // expected-error{{template type parameter conflicts with previous…
11 template<typename T> struct X2t; // expected-note{{previous template type parameter declared here}}
12 template<typename ...T> struct X2t; // expected-error{{template type parameter pack conflicts with …
14 template<template<typename ...T> class> struct X0t_intt;
15 template<template<typename ...T> class> struct X0t_intt;
17 template<template<typename ...T> class> struct X1t_intt; // expected-note{{previous template type p…
[all …]
/external/clang/test/PCH/
Dcxx-templates.h3 template <typename T1, typename T2>
6 template <typename T1, typename T2>
12 template <typename T>
17 template <>
22 template <int x>
25 template <typename T, int y>
36 template <typename T>
43 template <typename T>
49 int y = T::template my_templf<int>(0);
57 template<typename T, typename A1>
[all …]
/external/clang/include/clang/Sema/
DParsedTemplate.h1 //===--- ParsedTemplate.h - Template Parsing Data Types ---------*- C++ -*-===//
29 /// \brief Represents the parsed form of a C++ template argument.
32 /// \brief Describes the kind of template argument that was parsed.
34 /// \brief A template type parameter, stored as a type.
36 /// \brief A non-type template parameter, stored as an expression.
38 /// \brief A template template argument, stored as a template name.
39 Template enumerator
42 /// \brief Build an empty template argument.
44 /// This template argument is invalid.
47 /// \brief Create a template type argument or non-type template argument.
[all …]
/external/clang/test/SemaTemplate/
Dtemp_arg_template.cpp5 template<template<typename T> class X> struct A; // expected-note 2{{previous template template par…
7 template<template<typename T, int I> class X> struct B; // expected-note{{previous template templat…
9 template<template<int I> class X> struct C; // expected-note{{previous non-type template parameter…
11 template<class> struct X; // expected-note{{too few template parameters in template template argume…
12 template<int N> struct Y; // expected-note{{template parameter has a different kind in template arg…
13 template<long N> struct Ylong; // expected-note{{template non-type parameter has a different type '…
16 template<class> struct Z;
18 template<class, class> struct TooMany; // expected-note{{too many template parameters in template t…
25 …> *a4; // expected-error{{template template argument has different template parameters than its co…
26 …> *a5; // expected-error{{template template argument has different template parameters than its co…
[all …]
Ddefault-arguments.cpp4 template<typename T, int N = 2> struct X; // expected-note{{template is declared here}}
9 X<> *x3; // expected-error{{too few template arguments for class template 'X'}}
11 template<typename U = float, int M> struct X;
15 template<typename T = int> struct Z { };
16 template struct Z<>;
19 template<class T> struct a { };
20 template<> struct a<int> { static const bool v = true; };
22 template<class T, bool = a<T>::v> struct p { }; // expected-error {{no member named 'v'}}
24 template struct p<bool>; // expected-note {{in instantiation of default argument for 'p<bool>' requ…
25 template struct p<int>;
[all …]
Dfriend-template.cpp7 template<typename T> friend struct Y;
12 template<typename T> struct Y {};
17 template<typename T> void f1(T) { } // expected-note{{here}} in f1()
20 template<typename T> friend void f0(T);
21 template<typename T> friend void f1(T);
24 template<typename T> void f0(T) { } in f0()
25 template<typename T> void f1(T) { } // expected-error{{redefinition}} in f1()
30 template<typename T> struct X0 {
31 template<typename U> friend struct X0;
34 template<typename T> struct X0<T*> {
[all …]
Dclass-template-decl.cpp3 template<typename T> class A;
6 template<typename T> class B;
10 template<typename T> class C;
14 template<typename T> class D; // expected-error{{templates must have C++ linkage}}
19 template<typename T> class D; // expected-error{{templates must have C++ linkage}}
20 template<typename T> void f(); // expected-error{{templates must have C++ linkage}}
24 template<class U> class A; // expected-note{{previous template declaration is here}}
26 template<int N> class A; // expected-error{{template parameter has a different kind in template red…
28 template<int N> class NonTypeTemplateParm;
32 template<INT M> class NonTypeTemplateParm; // expected-note{{previous non-type template parameter w…
[all …]
Dnested-template.cpp6 template<typename T> struct A {
16 template<typename T>
18 template<typename U>
21 template<typename U>
26 template<typename V> T bar(V);
27 template<typename V> T* bar(V);
34 template<typename X>
35 template<typename Y>
41 template<typename X>
42 template<typename Y>
[all …]
Dexplicit-instantiation.cpp4 template void *; // expected-error{{expected unqualified-id}}
6 template typedef void f0; // expected-error{{explicit instantiation of typedef}}
9 template int v0; // expected-error{{does not refer}}
11 template<typename T>
20template <typename U> T f0(T, U) { return T(); } // expected-note-re {{candidate template ignored:… in f0()
21 … // expected-note {{candidate template ignored: could not match 'int' against 'int *'}}
24 template<typename T>
27 template int X0<int>::value;
33 template NotDefaultConstructible X0<NotDefaultConstructible>::value; // expected-note{{instantiatio…
35 template int X0<int>::f0(int);
[all …]
/external/libcxx/include/experimental/
Dsimd23 template <int N> struct fixed_size {};
24 template <typename T> inline constexpr int max_fixed_size = implementation-defined;
25 template <typename T> using compatible = implementation-defined;
26 template <typename T> using native = implementation-defined;
32 template <size_t> struct overaligned_tag {};
35 template <size_t N> inline constexpr overaligned_tag<N> overaligned{};
38 template <class T> struct is_abi_tag;
39 template <class T> inline constexpr bool is_abi_tag_v = is_abi_tag<T>::value;
41 template <class T> struct is_simd;
42 template <class T> inline constexpr bool is_simd_v = is_simd<T>::value;
[all …]
/external/libcxx/include/
Dtype_traits21 template <class T, T v> struct integral_constant;
25 template <bool B> // C++14
31 template <bool, class T = void> struct enable_if;
32 template <bool, class T, class F> struct conditional;
35 template <class T> struct is_void;
36 template <class T> struct is_null_pointer; // C++14
37 template <class T> struct is_integral;
38 template <class T> struct is_floating_point;
39 template <class T> struct is_array;
40 template <class T> struct is_pointer;
[all …]
D__tuple25 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS tuple_size;
28 template <class _Tp, class...>
31 template <class _Tp>
38 template <class _Tp>
45 template <class _Tp>
52 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS tuple_size<const _Tp> : public tuple_size<_Tp> {};
53 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS tuple_size<volatile _Tp> : public tuple_size<_Tp> …
54 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS tuple_size<const volatile _Tp> : public tuple_size…
57 template <size_t _Ip, class _Tp> class _LIBCPP_TEMPLATE_VIS tuple_element;
59 template <size_t _Ip, class _Tp>
[all …]
/external/clang/test/CXX/temp/temp.spec/temp.explicit/
Dp3.cpp3 // A declaration of a function template shall be in scope at the point of the
4 // explicit instantiation of the function template.
5 template<typename T> void f0(T);
6 template void f0(int); // okay
7 template<typename T> void f0(T) { } in f0()
9 // A definition of the class or class template containing a member function
10 // template shall be in scope at the point of the explicit instantiation of
11 // the member function template.
13 template<typename> struct X1; // expected-note 5{{declared here}}
15 template void X0::f0<int>(int); // expected-error {{incomplete type}}
[all …]
/external/clang/test/CXX/temp/temp.res/temp.local/
Dp6.cpp5 template<typename T, // expected-note {{declared here}}
6 … typename T> struct X {}; // expected-error {{declaration of 'T' shadows template parameter}}
8 template<typename T> struct Y { // expected-note 18{{declared here}}
9template<typename T> struct A {}; // expected-error {{declaration of 'T' shadows template paramete…
12template<typename> struct T {}; // expected-error {{declaration of 'T' shadows template parameter}}
15 template<typename> void T(); // expected-error {{declaration of 'T' shadows template parameter}}
18 struct T {}; // expected-error {{declaration of 'T' shadows template parameter}}
21 typedef int T; // expected-error {{declaration of 'T' shadows template parameter}}
24 using T = int; // expected-error {{declaration of 'T' shadows template parameter}}
27 int T; // expected-error {{declaration of 'T' shadows template parameter}}
[all …]
/external/clang/include/clang/AST/
DTemplateName.h1 //===--- TemplateName.h - C++ Template Name Representation-------*- C++ -*-===//
41 /// template names or an already-substituted template template parameter pack.
54 /// \brief The number of stored templates or template arguments,
92 /// overloaded template name.
113 /// \brief A structure for storing an already-substituted template template
116 /// This kind of template names occurs when the parameter pack has been
117 /// provided with a template template argument pack in a context where its
132 /// \brief Retrieve the template template parameter pack being substituted.
137 /// \brief Retrieve the template template argument pack with which this
149 /// \brief Represents a C++ template name within the type system.
[all …]

12345678910>>...386