aboutsummaryrefslogtreecommitdiff
path: root/Source/ablastr/utils/text/StreamUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/ablastr/utils/text/StreamUtils.cpp')
-rw-r--r--Source/ablastr/utils/text/StreamUtils.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/ablastr/utils/text/StreamUtils.cpp b/Source/ablastr/utils/text/StreamUtils.cpp
new file mode 100644
index 000000000..965beb179
--- /dev/null
+++ b/Source/ablastr/utils/text/StreamUtils.cpp
@@ -0,0 +1,17 @@
+/* Copyright 2023
+ *
+ * This file is part of WarpX.
+ *
+ * License: BSD-3-Clause-LBNL
+ */
+
+#include "StreamUtils.H"
+
+#include <ios>
+#include <limits>
+
+void
+ablastr::utils::text::goto_next_line (std::istream& is)
+{
+ is.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
+}