3 // { dg-options "-std=gnu++11 --param ggc-min-heapsize=0 --param ggc-min-expand=0" }
5 template <typename, typename>
8 template <class R, class F>
9 transformed<F, R> transform (R r, F f);
11 template <typename, typename>
14 template <typename T, typename U>
15 joined<T, U> join (T t, U u);
17 template <typename T, typename U, typename V, typename... Rest>
18 auto join (T t, U u, V v, Rest... rest) -> decltype (join (join (t, u), v, rest...));
20 template <typename F, typename... Rs>
21 auto polymorphic_transform (F f, Rs... rs) -> decltype (join (transform(rs, f)...));
26 polymorphic_transform (0, 0, 0);