summaryrefslogtreecommitdiffstats
path: root/stlport/stlport/stl/_carray.h
diff options
context:
space:
mode:
authorRicardo Cerqueira <ricardo@cyngn.com>2015-11-04 21:13:33 +0000
committerRicardo Cerqueira <ricardo@cyngn.com>2015-11-04 21:13:33 +0000
commit5c874ef768f1112f01f4436b3ec03452e9fd654c (patch)
tree8fd3e22b8eefb38628c7b8ff69c2f033c95da230 /stlport/stlport/stl/_carray.h
parent67c32f79eb2f4e3c9ae0110baaa9a5bf14fb0827 (diff)
downloadandroid_external_connectivity-5c874ef768f1112f01f4436b3ec03452e9fd654c.tar.gz
android_external_connectivity-5c874ef768f1112f01f4436b3ec03452e9fd654c.tar.bz2
android_external_connectivity-5c874ef768f1112f01f4436b3ec03452e9fd654c.zip
Adjust to cm-13/M
No moar stlport
Diffstat (limited to 'stlport/stlport/stl/_carray.h')
-rw-r--r--stlport/stlport/stl/_carray.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/stlport/stlport/stl/_carray.h b/stlport/stlport/stl/_carray.h
deleted file mode 100644
index 560bab2..0000000
--- a/stlport/stlport/stl/_carray.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (c) 2005
- * Francois Dumont
- *
- * This material is provided "as is", with absolutely no warranty expressed
- * or implied. Any use is at your own risk.
- *
- * Permission to use or copy this software for any purpose is hereby granted
- * without fee, provided the above notices are retained on all copies.
- * Permission to modify the code and to distribute modified code is granted,
- * provided the above notices are retained, and a notice that the code was
- * modified is included with the above copyright notice.
- *
- */
-
-/* NOTE: This is an internal header file, included by other STL headers.
- * You should not attempt to use it directly.
- */
-
-#ifndef _STLP_CARRAY_H
-#define _STLP_CARRAY_H
-
-/* Purpose: Mimic a pur C array with the additionnal feature of
- * being able to be used with type not default constructible.
- */
-
-#ifndef _STLP_INTERNAL_CONSTRUCT_H
-# include <stl/_construct.h>
-#endif
-
-_STLP_BEGIN_NAMESPACE
-
-_STLP_MOVE_TO_PRIV_NAMESPACE
-
-template <class _Tp, size_t _Nb>
-struct _CArray {
- _CArray (const _Tp& __val) {
- for (size_t __i = 0; __i < _Nb; ++__i) {
- _Copy_Construct(__REINTERPRET_CAST(_Tp*, _M_data + __i * sizeof(_Tp)), __val);
- }
- }
-
- ~_CArray() {
- _Destroy_Range(__REINTERPRET_CAST(_Tp*, _M_data + 0),
- __REINTERPRET_CAST(_Tp*, _M_data + _Nb * sizeof(_Tp)));
- }
-
- _Tp& operator [] (size_t __i) {
- _STLP_ASSERT(__i < _Nb)
- return *__REINTERPRET_CAST(_Tp*, _M_data + __i * sizeof(_Tp));
- }
-
-private:
- char _M_data[sizeof(_Tp) * _Nb];
-};
-
-_STLP_MOVE_TO_STD_NAMESPACE
-
-_STLP_END_NAMESPACE
-
-#endif //_STLP_CARRAY_H