Skip to content

[clang-doc] Template specializations get the template parameters added to destructors/constructors #59817

Open
@danakj

Description

@danakj

Possibly this only occurs in a specialization.

From the class:

template <class TypeListOfMemberTypes, auto... Tags>
class Choice;

template <class... Ts, auto... Tags>
class Choice<__private::TypeList<Ts...>, Tags...> final {
   ...
};

Here's a destructor:

~Choice<TypeList<type-parameter-0-0...>, Tags...>
public void ~Choice<TypeList<type-parameter-0-0...>, Tags...>()

Defined at line [140](https://github.com/chromium/subspace/blob/main/subspace/choice/choice.h#140) of file [choice.h](https://github.com/chromium/subspace/blob/main/subspace/choice/choice.h)

And a constructor:

Choice<TypeList<type-parameter-0-0...>, Tags...>
public void Choice<TypeList<type-parameter-0-0...>, Tags...>(Choice<TypeList<type-parameter-0-0...>, Tags...> && o)

Defined at line [151](https://github.com/chromium/subspace/blob/main/subspace/choice/choice.h#151) of file [choice.h](https://github.com/chromium/subspace/blob/main/subspace/choice/choice.h)

Here's an example of it in action: https://danakj.github.io/subspace-docs/sus/choice_type/Choice.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions