select

Undocumented in source. Be warned that the author may not have intended to support it.
  1. template select(Cond, T, F)
  2. auto select(bool cond, T t, F f)
    @nogc
    select
    (
    T
    F
    )
    (
    bool cond
    ,
    T t
    ,
    F f
    )

Examples

assert(select(true , 5.valueFunctor, 7.valueFunctor)() == 5);
assert(select(false, 5.valueFunctor, 7.valueFunctor)() == 7);

Meta