Skip to content

[FEA] Variadic ctor parameters #207

Open

Description

@sleeepyjack

Part of #110 (Refactor of open address data structures)

Development branch: NVIDIA/cuCollections/refactor

Synopsis

To make it convenient to construct a static_set or other data structures with a variety of configuration parameters, we want to use a variadic constructor pattern.

TODOs

References

Activity

  1. changed the title [-][FEA] [REFACTOR] Variadic ctor parameters[/-] [+][FEA] Variadic ctor parameters[/+] on Aug 9, 2022
  2. sleeepyjack commented on Aug 25, 2022

    @sleeepyjack
    CollaboratorAuthor

    Initial prototype: https://godbolt.org/z/Kj763Teon

    This approach still needs some refinement but enables us to use fully variadic ctors if we opt for strong types for all parameters.
    We could also use this in member functions to pass optional parameters,e.g., pass an optional CUDA stream to one of the bulk functions.

    Build on gcc works but nvcc fails to understand the deduction guide. Investigating...

  3. sleeepyjack commented on Aug 26, 2022

    @sleeepyjack
    CollaboratorAuthor

    New version: tested on gcc, nvcc 11.0-11.7 and has better diagnostics: https://godbolt.org/z/5Ghac54E6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions