Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6276

[C++] Add operator[] to some concrete Array implementations?

    XMLWordPrintableJSON

Details

    Description

      I have occasionally been in situations where I want to pass in e.g. Int32Array or BooleanArray into a template that also can accept STL sequence types like std::vector<bool> – in such cases the main API of interest is []. Would there be interest in aliasing operator[] to return the result of GetView (or to deprecate GetView in favor of operator[])?

      Attachments

        Issue Links

          Activity

            People

              pradeepgarigipati Pradeep Garigipati
              wesm Wes McKinney
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5h 50m
                  5h 50m