What are you trying to do? You can look at various usages of VisitArrayInline (inline / non-virtual visitor) or the corresponding ArrayVisitor virtual interface which is used elsewhere where it makes sense
https://github.com/apache/arrow/search?q=VisitArrayInline we use SFINAE / std::enable_if quite frequently to make it easier to write visitors, and we have supplementary templates to make enable_if expressions easier to write, and you can find plenty of examples of that if you read through the places where we use it On Thu, May 6, 2021 at 9:49 AM Niranda Perera <niranda.per...@gmail.com> wrote: > > Hi all, > > I am following the latest arrow c++ code base and I figured that visitor > pattern is extensively used there. When I go through the code naively, I > sometimes get immersed in templates and preprocessor directives. :D > Could you give some pointers to start on the impl, especially in the arrow > compute API? What would be a good starting point? > > Best > -- > Niranda Perera > https://niranda.dev/ > @n1r44 <https://twitter.com/N1R44>