diff --git a/README.md b/README.md index 716445a..87d621a 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ This library is not an official boost library, and is under active development. Charconv is a collection of parsing functions that are locale-independent, non-allocating, and non-throwing. ```` +namespace boost { namespace charconv { + enum class chars_format : unsigned { scientific = 1 << 0, @@ -51,6 +53,8 @@ BOOST_CHARCONV_CONSTEXPR to_chars_result to_chars(char* first, char* last, template to_chars_result to_chars(char* first, char* last, Real value, chars_format fmt = chars_format::general, int precision) noexcept; + +}} // Namespace boost::charconv ```` ## Notes diff --git a/doc/charconv/chars_format.adoc b/doc/charconv/chars_format.adoc index 78e3f75..168dde6 100644 --- a/doc/charconv/chars_format.adoc +++ b/doc/charconv/chars_format.adoc @@ -10,6 +10,8 @@ https://www.boost.org/LICENSE_1_0.txt == chars_format overview [source, c++] ---- +namespace boost { namespace charconv { + enum class chars_format : unsigned { scientific = 1 << 0, @@ -17,6 +19,8 @@ enum class chars_format : unsigned hex = 1 << 2, general = fixed | scientific }; + +}} // Namespace boost::charconv ---- `boost::charconv::chars_format` is used to specify the format of floating point types with `from_chars` and `to_chars`. diff --git a/doc/charconv/from_chars.adoc b/doc/charconv/from_chars.adoc index 7427f57..8b3c730 100644 --- a/doc/charconv/from_chars.adoc +++ b/doc/charconv/from_chars.adoc @@ -10,6 +10,8 @@ https://www.boost.org/LICENSE_1_0.txt == from_chars overview [source, c++] ---- +namespace boost { namespace charconv { + struct from_chars_result { const char* ptr; @@ -26,6 +28,8 @@ BOOST_CXX14_CONSTEXPR from_chars_result from_chars(const char* first, cons template from_chars_result from_chars(const char* first, const char* last, Real& value, chars_format fmt = chars_format::general) noexcept; + +}} // Namespace boost::charconv ---- == from_chars_result diff --git a/doc/charconv/to_chars.adoc b/doc/charconv/to_chars.adoc index 5a05d31..8c377da 100644 --- a/doc/charconv/to_chars.adoc +++ b/doc/charconv/to_chars.adoc @@ -10,6 +10,8 @@ https://www.boost.org/LICENSE_1_0.txt == to_chars overview [source, c++] ---- +namespace boost { namespace charconv { + struct to_chars_result { char* ptr; @@ -27,6 +29,8 @@ BOOST_CHARCONV_CONSTEXPR to_chars_result to_chars(char* first, char* last, template to_chars_result to_chars(char* first, char* last, Real value, chars_format fmt = chars_format::general, int precision) noexcept; + +}} // Namespace boost::charconv ---- == to_chars_result