This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 7c368d77 Update dist/ for commit 
61636e2234c7d56cefa45e5ad7f3596132af0967
7c368d77 is described below

commit 7c368d77dfa6b73955421399b28b04ded6168ffe
Author: GitHub Actions <[email protected]>
AuthorDate: Sat Jun 22 01:30:02 2024 +0000

    Update dist/ for commit 61636e2234c7d56cefa45e5ad7f3596132af0967
---
 dist/nanoarrow.hpp | 30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

diff --git a/dist/nanoarrow.hpp b/dist/nanoarrow.hpp
index 5f8aabba..df51a235 100644
--- a/dist/nanoarrow.hpp
+++ b/dist/nanoarrow.hpp
@@ -82,6 +82,23 @@ class Exception : public std::exception {
 
 /// @}
 
+namespace literals {
+
+/// \defgroup nanoarrow_hpp-string_view_helpers ArrowStringView helpers
+///
+/// Factories and equality comparison for ArrowStringView.
+///
+/// @{
+
+/// \brief User literal operator allowing ArrowStringView construction like 
"str"_asv
+inline ArrowStringView operator"" _asv(const char* data, std::size_t 
size_bytes) {
+  return {data, static_cast<int64_t>(size_bytes)};
+}
+
+// @}
+
+}  // namespace literals
+
 namespace internal {
 
 /// \defgroup nanoarrow_hpp-unique_base Base classes for Unique wrappers
@@ -893,22 +910,11 @@ class ViewArrayStream {
 
 }  // namespace nanoarrow
 
-/// \defgroup nanoarrow_hpp-string_view_helpers ArrowStringView helpers
-///
-/// Factories and equality comparison for ArrowStringView.
-///
-/// @{
-
 /// \brief Equality comparison operator between ArrowStringView
+/// \ingroup nanoarrow_hpp-string_view_helpers
 inline bool operator==(ArrowStringView l, ArrowStringView r) {
   if (l.size_bytes != r.size_bytes) return false;
   return memcmp(l.data, r.data, l.size_bytes) == 0;
 }
 
-/// \brief User literal operator allowing ArrowStringView construction like 
"str"_sv
-inline ArrowStringView operator"" _v(const char* data, std::size_t size_bytes) 
{
-  return {data, static_cast<int64_t>(size_bytes)};
-}
-/// @}
-
 #endif

Reply via email to