clang 20.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::TemplateArgumentList Class Referencefinal

A template argument list. More...

#include "clang/AST/DeclTemplate.h"

Inheritance diagram for clang::TemplateArgumentList:
Inheritance graph
[legend]

Public Member Functions

 TemplateArgumentList (const TemplateArgumentList &)=delete
 
TemplateArgumentListoperator= (const TemplateArgumentList &)=delete
 
const TemplateArgumentget (unsigned Idx) const
 Retrieve the template argument at a given index.
 
const TemplateArgumentoperator[] (unsigned Idx) const
 Retrieve the template argument at a given index.
 
ArrayRef< TemplateArgumentasArray () const
 Produce this as an array ref.
 
unsigned size () const
 Retrieve the number of template arguments in this template argument list.
 
const TemplateArgumentdata () const
 Retrieve a pointer to the template argument list.
 

Static Public Member Functions

static TemplateArgumentListCreateCopy (ASTContext &Context, ArrayRef< TemplateArgument > Args)
 Create a new template argument list that copies the given set of template arguments.
 

Public Attributes

friend TrailingObjects
 

Detailed Description

A template argument list.

Definition at line 243 of file DeclTemplate.h.

Constructor & Destructor Documentation

◆ TemplateArgumentList()

clang::TemplateArgumentList::TemplateArgumentList ( const TemplateArgumentList )
delete

Member Function Documentation

◆ asArray()

ArrayRef< TemplateArgument > clang::TemplateArgumentList::asArray ( ) const
inline

◆ CreateCopy()

TemplateArgumentList * TemplateArgumentList::CreateCopy ( ASTContext Context,
ArrayRef< TemplateArgument Args 
)
static

◆ data()

const TemplateArgument * clang::TemplateArgumentList::data ( ) const
inline

Retrieve a pointer to the template argument list.

Definition at line 283 of file DeclTemplate.h.

Referenced by asArray(), get(), and clang::Sema::getTemplateArgumentBindingsText().

◆ get()

const TemplateArgument & clang::TemplateArgumentList::get ( unsigned  Idx) const
inline

◆ operator=()

TemplateArgumentList & clang::TemplateArgumentList::operator= ( const TemplateArgumentList )
delete

◆ operator[]()

const TemplateArgument & clang::TemplateArgumentList::operator[] ( unsigned  Idx) const
inline

Retrieve the template argument at a given index.

Definition at line 271 of file DeclTemplate.h.

References get().

◆ size()

unsigned clang::TemplateArgumentList::size ( ) const
inline

Member Data Documentation

◆ TrailingObjects

friend clang::TemplateArgumentList::TrailingObjects

Definition at line 254 of file DeclTemplate.h.


The documentation for this class was generated from the following files: