You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Constructor Template Argument Deduction (CTAD) allows the compiler to infer a class' template arguments from the invocation of its constructor. This feature was introduced in C++17. The workaround before where make_class functions.
Some thrust iterators already support CTAD. E.g. thrust::counting_iterator it{0} correctly deduces counting_iterator<int>. We should check and add tests that CTAD works for all iterators:
constant_iterator.h
counting_iterator.h
discard_iterator.h
offset_iterator.h
permutation_iterator.h
reverse_iterator.h
tabulate_output_iterator.h
transform_input_output_iterator.h
transform_iterator.h
transform_output_iterator.h
zip_iterator.h
The text was updated successfully, but these errors were encountered:
Constructor Template Argument Deduction (CTAD) allows the compiler to infer a class' template arguments from the invocation of its constructor. This feature was introduced in C++17. The workaround before where
make_class
functions.Some thrust iterators already support CTAD. E.g.
thrust::counting_iterator it{0}
correctly deducescounting_iterator<int>
. We should check and add tests that CTAD works for all iterators:The text was updated successfully, but these errors were encountered: