|
@@ -1748,6 +1748,12 @@ template <class _Allocator> class vector<bool, _Allocator>;
|
|
|
|
|
|
template <class _Allocator> struct hash<vector<bool, _Allocator> >;
|
|
template <class _Allocator> struct hash<vector<bool, _Allocator> >;
|
|
|
|
|
|
|
|
+template <class _Allocator>
|
|
|
|
+struct __has_storage_type<vector<bool, _Allocator> >
|
|
|
|
+{
|
|
|
|
+ static const bool value = true;
|
|
|
|
+};
|
|
|
|
+
|
|
template <class _Allocator>
|
|
template <class _Allocator>
|
|
class _LIBCPP_VISIBLE vector<bool, _Allocator>
|
|
class _LIBCPP_VISIBLE vector<bool, _Allocator>
|
|
: private __vector_base_common<true>
|
|
: private __vector_base_common<true>
|
|
@@ -1757,8 +1763,6 @@ public:
|
|
typedef bool value_type;
|
|
typedef bool value_type;
|
|
typedef _Allocator allocator_type;
|
|
typedef _Allocator allocator_type;
|
|
typedef allocator_traits<allocator_type> __alloc_traits;
|
|
typedef allocator_traits<allocator_type> __alloc_traits;
|
|
- typedef __bit_reference<vector> reference;
|
|
|
|
- typedef __bit_const_reference<vector> const_reference;
|
|
|
|
typedef typename __alloc_traits::size_type size_type;
|
|
typedef typename __alloc_traits::size_type size_type;
|
|
typedef typename __alloc_traits::difference_type difference_type;
|
|
typedef typename __alloc_traits::difference_type difference_type;
|
|
typedef __bit_iterator<vector, false> pointer;
|
|
typedef __bit_iterator<vector, false> pointer;
|
|
@@ -1798,6 +1802,9 @@ private:
|
|
size_type __size_;
|
|
size_type __size_;
|
|
__compressed_pair<size_type, __storage_allocator> __cap_alloc_;
|
|
__compressed_pair<size_type, __storage_allocator> __cap_alloc_;
|
|
|
|
|
|
|
|
+ typedef __bit_reference<vector> reference;
|
|
|
|
+ typedef __bit_const_reference<vector> const_reference;
|
|
|
|
+
|
|
_LIBCPP_INLINE_VISIBILITY
|
|
_LIBCPP_INLINE_VISIBILITY
|
|
size_type& __cap() _NOEXCEPT
|
|
size_type& __cap() _NOEXCEPT
|
|
{return __cap_alloc_.first();}
|
|
{return __cap_alloc_.first();}
|