Summary: std.typetuple: add support for any static tuples
           Product: D
           Version: 2.030
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: patch
          Severity: enhancement
          Priority: P2
         Component: Phobos

Created an attachment (id=371)
 --> (
Adds support for any static tuples

With the patch applied, indexOf, Erase, EraseAll, NoDuplicates, Replace,
ReplaceAll, and Reverse in std.typetuple will be able to deal with any static
tuples (type tuple, symbol tuple, expression tuple, and even mixed one).

This enhancement does not break existing code.

Example and output:
import std.stdio;
import std.typetuple;
void main()
    alias TypeTuple!(short, int, int, short, int) T;
    alias NoDuplicates!(ReplaceAll!(short, "Fizz",
                        ReplaceAll!(  int, "Buzz", T))) R;

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to