diff options
Diffstat (limited to 'Source/ablastr/utils/text/StreamUtils.cpp')
-rw-r--r-- | Source/ablastr/utils/text/StreamUtils.cpp | 17 |
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'); +} |