clang 19.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

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 )

Member Function Documentation

◆ asArray()

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

◆ CreateCopy()

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

◆ data()

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

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

◆ operator=()

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

◆ operator[]()

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

Retrieve the template argument at a given index.

Definition at line 271 of file DeclTemplate.h.

References get().

◆ size()

unsigned clang::TemplateArgumentList::size ( ) const

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: