ΒΆinline Optional<unsigned int> getExpandedPackSize(
    const clang::NamedDecl* Param)

Description

Check whether the template parameter is a pack expansion, and if so, determine the number of parameters produced by that expansion. For instance: In \c A<int,int>::B, \c NTs and \c TTs have expanded pack size 2, and \c Us is not a pack expansion, so returns an empty Optional.

Declared at: clang/include/clang/AST/DeclTemplate.h:3405

Parameters

const clang::NamedDecl* Param