wjones127 commented on a change in pull request #12717:
URL: https://github.com/apache/arrow/pull/12717#discussion_r836678392
##########
File path: docs/source/cpp/datatypes.rst
##########
@@ -66,3 +66,139 @@ To instantiate data types, it is recommended to call the
provided
type = arrow::timestamp(arrow::TimeUnit::MICRO);
// A list type of single-precision floating-point values
type = arrow::list(arrow::float32());
+
+
+
+Type Traits
+-----------
+
+Writing code that can handle concrete :class:`arrow::DataType` subclasses
would
+be verbose, if it weren't for type traits. Similar to the type traits provided
+in `std::type_traits <https://en.cppreference.com/w/cpp/header/type_traits>`_,
+Arrow's type traits map the Arrow data types to the specialized array, scalar,
+builder, and other associated types. For example, the Boolean type has traits:
Review comment:
Yeah, good point. I'm thinking I'll move the mention of std::type_traits
to the part where we mention the type predicates, where the comparison seems
more relevant.
--
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]