aboutsummaryrefslogtreecommitdiff
path: root/libcxx/modules/std/charconv.cppm
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/modules/std/charconv.cppm')
-rw-r--r--libcxx/modules/std/charconv.cppm38
1 files changed, 38 insertions, 0 deletions
diff --git a/libcxx/modules/std/charconv.cppm b/libcxx/modules/std/charconv.cppm
new file mode 100644
index 000000000000..0faa546a8d79
--- /dev/null
+++ b/libcxx/modules/std/charconv.cppm
@@ -0,0 +1,38 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+module;
+#include <charconv>
+
+export module std:charconv;
+export namespace std {
+
+ // floating-point format for primitive numerical conversion
+ using std::chars_format;
+
+ // chars_format is a bitmask type.
+ // [bitmask.types] specified operators
+ using std::operator&;
+ using std::operator&=;
+ using std::operator^;
+ using std::operator^=;
+ using std::operator|;
+ using std::operator|=;
+ using std::operator~;
+
+ // [charconv.to.chars], primitive numerical output conversion
+ using std::to_chars_result;
+
+ using std::to_chars;
+
+ // [charconv.from.chars], primitive numerical input conversion
+ using std::from_chars_result;
+
+ using std::from_chars;
+} // namespace std