From c0fbae2d2abee524041878e5ffee375ec7b81667 Mon Sep 17 00:00:00 2001
From: Beman
Functions are implemented inline
if appropriate. noexcept
is
-elided for compilers that do not support it.
+
Functions are implemented inline
if appropriate.
+For C++03 compilers, noexcept
is
+elided .
Boost scoped enum emulation is used so that the library still works for compilers that do not support scoped enums.
@@ -76,7 +77,8 @@ Boost scoped enum emulation is used so that the library still works for compiler Header
<boost/endian/conversion.hpp>
Synopsis
-#define BOOST_ENDIAN_INTRINSIC_MSG "message describing presence or absence of intrinsics" +#define BOOST_ENDIAN_INTRINSIC_MSG \ + "message describing presence or absence of intrinsics" namespace boost { @@ -166,7 +168,7 @@ modifiable lvalue of typeT
.T
is an endian type or a class type.If
-T
is an endian type, returns the value ofx
with the order of bytes reversed.If
+T
is an class type, the function:If
T
is a class type, the function:
- Returns the value of
x
with the order of bytes reversed for all data members of types or arrays of @@ -191,7 +193,7 @@ can be found by argument dependent lookup (ADL).endian_reverse_inplace(mlx)
T
is an endian type or a class type.If
-T
is an endian type, reverses the order of bytes inmlx
.If
+T
is an class type, the function:If
T
is a class type, the function:
- Reverses the order of bytes of all data members of
that callsmlx
that have types or arrays of @@ -208,7 +210,7 @@ can be found by argument dependent lookup (ADL).endian_reverse
, onlyendian_reverse
is required for a user-defined type to meet theEndianReversibleInplace
requirements. Although User-defined types are not required to supply anendian_reverse_inplace
-function, doing so may improved efficiency. —end note] +function, doing so may improve efficiency. —end note]Customization points for user-defined types (UDTs)
@@ -239,7 +241,7 @@ double endian_reverse(double x) noexcept;@@ -367,7 +369,7 @@ Pierre Talbot provided theReturns:
-x
, with the order of its constituent bytes reversed.Remarks: Meet the
+EndianReversible
requirements.Remarks: The type of
x
meets theEndianReversible
requirements.[Note: The Boost.Endian library does not provide overloads for the C++ standard library supplied types. —end note]
int8_t endian_reverse()
and templatedendian_reverse_inplace()
implementations.
Last revised: -19 January, 2015
+09 February, 2015© Copyright Beman Dawes, 2011, 2013
Distributed under the Boost Software License, Version 1.0. See www.boost.org/ LICENSE_1_0.txt
diff --git a/doc/styles.css b/doc/styles.css index f761bcb..9d89d77 100644 --- a/doc/styles.css +++ b/doc/styles.css @@ -1,16 +1,16 @@ body { - font-family: sans-serif; + font-family: arial, sans-serif; max-width: 6.5in; margin: 0px auto; font-size: 85%; } ins {background-color: #CCFFCC;} del {background-color: #FFCACA;} - pre {background-color: #D7EEFF; font-size: 100%;} - code {font-size: 110%;} - table{font-size: 100%;} + pre {background-color: #D7EEFF; font-size: 95%; font-family: courier, serif;} + code {font-size: 110%; font-family: courier, serif;} + table {font-size: 100%;} /* © Copyright Beman Dawes, 2014