]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/json/parser.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / json / parser.hpp
index 89af00fbed0589bb3db689e07c45a10cbf62a051..d6de07038eb44c51772b3326e84e1bd70be17cac 100644 (file)
@@ -134,7 +134,7 @@ public:
         No-throw guarantee.
     */
     ~parser() = default;
-   
+
     /** Constructor.
 
         This constructs a new parser which first uses
@@ -456,6 +456,7 @@ public:
 
         @param ec Set to the error, if any occurred.
     */
+/** @{ */
     BOOST_JSON_DECL
     std::size_t
     write_some(
@@ -463,6 +464,14 @@ public:
         std::size_t size,
         error_code& ec);
 
+    BOOST_JSON_DECL
+    std::size_t
+    write_some(
+        char const* data,
+        std::size_t size,
+        std::error_code& ec);
+/** @} */
+
     /** Parse a buffer containing a complete JSON.
 
         This function parses a complete JSON contained
@@ -543,6 +552,7 @@ public:
 
         @param ec Set to the error, if any occurred.
     */
+/** @{ */
     std::size_t
     write_some(
         string_view s,
@@ -552,6 +562,16 @@ public:
             s.data(), s.size(), ec);
     }
 
+    std::size_t
+    write_some(
+        string_view s,
+        std::error_code& ec)
+    {
+        return write_some(
+            s.data(), s.size(), ec);
+    }
+/** @} */
+
     /** Parse a buffer containing a complete JSON.
 
         This function parses a complete JSON contained
@@ -631,6 +651,7 @@ public:
 
         @param ec Set to the error, if any occurred.
     */
+/** @{ */
     BOOST_JSON_DECL
     std::size_t
     write(
@@ -638,6 +659,14 @@ public:
         std::size_t size,
         error_code& ec);
 
+    BOOST_JSON_DECL
+    std::size_t
+    write(
+        char const* data,
+        std::size_t size,
+        std::error_code& ec);
+/** @} */
+
     /** Parse a buffer containing a complete JSON.
 
         This function parses a complete JSON contained
@@ -712,6 +741,7 @@ public:
 
         @param ec Set to the error, if any occurred.
     */
+/** @{ */
     std::size_t
     write(
         string_view s,
@@ -721,6 +751,16 @@ public:
             s.data(), s.size(), ec);
     }
 
+    std::size_t
+    write(
+        string_view s,
+        std::error_code& ec)
+    {
+        return write(
+            s.data(), s.size(), ec);
+    }
+/** @} */
+
     /** Parse a buffer containing a complete JSON.
 
         This function parses a complete JSON contained