pitrou opened a new issue, #14863:
URL: https://github.com/apache/arrow/issues/14863

   ### Describe the enhancement requested
   
   When you have a `std::optional` of the right value type, it would be 
convenient to append it directly to a concrete `ArrayBuilder` subclass instead 
of having to query whether it has a value:
   ```c++
   template <typename V>
   Status Append(const std::optional<V>& value) {
     return (value) ? Append(*value) : AppendNull();
   }
   
   template <typename V>
   void UnsafeAppend(const std::optional<V>& value) {
     if (value) {
       UnsafeAppend(*value);
     } else {
       UnsafeAppendNull();
     }
   }
   ```   
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to