substitute.substitute

Substitute single values with compile-time substitution mappings. Complexity: O(1) due to D's switch guaranteeing O(1);

  1. auto substitute(Value value)
    template substitute(substs...)
    substitute
    (
    Value
    )
    (
    Value value
    )
    if (
    isInputRange!Value ||
    !is(CommonType!(Value, typeof(substs[0])) == void)
    )
    if (
    substs.length >= 2 &&
    )
  2. auto substitute(R r, Substs substs)

Meta