summaryrefslogtreecommitdiffstats
path: root/libcxx/include
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2018-01-24 01:53:24 +0000
committerMarshall Clow <mclow.lists@gmail.com>2018-01-24 01:53:24 +0000
commita277d024f7a7c00796344105dbe0f5c427383158 (patch)
tree7602bb35a2004906622ac1e2a189499cb6a2f2b0 /libcxx/include
parenta8bdf5328d34c3957dbe9cf6477187be11307b8b (diff)
downloadbcm5719-llvm-a277d024f7a7c00796344105dbe0f5c427383158.tar.gz
bcm5719-llvm-a277d024f7a7c00796344105dbe0f5c427383158.zip
Implement P0463R1: 'Endian just Endian'. Reviewed as https://reviews.llvm.org/D35472
llvm-svn: 323296
Diffstat (limited to 'libcxx/include')
-rw-r--r--libcxx/include/type_traits15
1 files changed, 15 insertions, 0 deletions
diff --git a/libcxx/include/type_traits b/libcxx/include/type_traits
index 8012203b438..13a77126444 100644
--- a/libcxx/include/type_traits
+++ b/libcxx/include/type_traits
@@ -4941,6 +4941,21 @@ struct __can_extract_map_key<_ValTy, _Key, _Key, _RawValTy>
#endif
+#if _LIBCPP_STD_VER > 17
+enum class endian
+{
+ little = 0xDEAD,
+ big = 0xFACE,
+#if defined(_LIBCPP_LITTLE_ENDIAN)
+ native = little
+#elif defined(_LIBCPP_BIG_ENDIAN)
+ native = big
+#else
+ native = 0xCAFE
+#endif
+};
+#endif
+
_LIBCPP_END_NAMESPACE_STD
#if _LIBCPP_STD_VER > 14
OpenPOWER on IntegriCloud