[vtk-developers] RFC: STL algos and C++11 for-range syntax with vtkDataArrays

Allie Vacanti allison.vacanti at kitware.com
Thu Nov 8 17:21:13 EST 2018


Hi folks,

I've written a set of STL-compatible utilities that allow vtkDataArrays to
be efficiently used with STL algorithms as well as with C++11 for-range
syntax. This consists of TupleRanges, which iterate through an array
tuple-by-tuple and component-by-component, and ValueRanges, which iterate
element-by-element using AOS-ordering.

I've linked a blog post describing them in more detail, and a merge request
available to play with / review / nitpick for anyone interested in doing so
=)

https://blog.kitware.com/c11-for-range-support-in-vtk/
https://gitlab.kitware.com/vtk/vtk/merge_requests/4826

Allie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtk-developers/attachments/20181108/745c3532/attachment.html>


More information about the vtk-developers mailing list