Cleanup remaining _LIBCPP_HAS_NO_<c++11-feature> usages in container headers
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@300643 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -798,8 +798,7 @@ public:
|
|||||||
_NOEXCEPT_(is_nothrow_copy_constructible<allocator_type>::value)
|
_NOEXCEPT_(is_nothrow_copy_constructible<allocator_type>::value)
|
||||||
: __data_(__size, __a) {}
|
: __data_(__size, __a) {}
|
||||||
|
|
||||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#ifndef _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
__bucket_list_deallocator(__bucket_list_deallocator&& __x)
|
__bucket_list_deallocator(__bucket_list_deallocator&& __x)
|
||||||
_NOEXCEPT_(is_nothrow_move_constructible<allocator_type>::value)
|
_NOEXCEPT_(is_nothrow_move_constructible<allocator_type>::value)
|
||||||
@@ -807,8 +806,7 @@ public:
|
|||||||
{
|
{
|
||||||
__x.size() = 0;
|
__x.size() = 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
|
||||||
|
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
size_type& size() _NOEXCEPT {return __data_.first();}
|
size_type& size() _NOEXCEPT {return __data_.first();}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ public:
|
|||||||
__split_buffer(size_type __cap, size_type __start, __alloc_rr& __a);
|
__split_buffer(size_type __cap, size_type __start, __alloc_rr& __a);
|
||||||
~__split_buffer();
|
~__split_buffer();
|
||||||
|
|
||||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#ifndef _LIBCPP_CXX03_LANG
|
||||||
__split_buffer(__split_buffer&& __c)
|
__split_buffer(__split_buffer&& __c)
|
||||||
_NOEXCEPT_(is_nothrow_move_constructible<allocator_type>::value);
|
_NOEXCEPT_(is_nothrow_move_constructible<allocator_type>::value);
|
||||||
__split_buffer(__split_buffer&& __c, const __alloc_rr& __a);
|
__split_buffer(__split_buffer&& __c, const __alloc_rr& __a);
|
||||||
@@ -74,7 +74,7 @@ public:
|
|||||||
_NOEXCEPT_((__alloc_traits::propagate_on_container_move_assignment::value &&
|
_NOEXCEPT_((__alloc_traits::propagate_on_container_move_assignment::value &&
|
||||||
is_nothrow_move_assignable<allocator_type>::value) ||
|
is_nothrow_move_assignable<allocator_type>::value) ||
|
||||||
!__alloc_traits::propagate_on_container_move_assignment::value);
|
!__alloc_traits::propagate_on_container_move_assignment::value);
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
_LIBCPP_INLINE_VISIBILITY iterator begin() _NOEXCEPT {return __begin_;}
|
_LIBCPP_INLINE_VISIBILITY iterator begin() _NOEXCEPT {return __begin_;}
|
||||||
_LIBCPP_INLINE_VISIBILITY const_iterator begin() const _NOEXCEPT {return __begin_;}
|
_LIBCPP_INLINE_VISIBILITY const_iterator begin() const _NOEXCEPT {return __begin_;}
|
||||||
@@ -99,14 +99,12 @@ public:
|
|||||||
void shrink_to_fit() _NOEXCEPT;
|
void shrink_to_fit() _NOEXCEPT;
|
||||||
void push_front(const_reference __x);
|
void push_front(const_reference __x);
|
||||||
_LIBCPP_INLINE_VISIBILITY void push_back(const_reference __x);
|
_LIBCPP_INLINE_VISIBILITY void push_back(const_reference __x);
|
||||||
#if !defined(_LIBCPP_HAS_NO_RVALUE_REFERENCES)
|
#ifndef _LIBCPP_CXX03_LANG
|
||||||
void push_front(value_type&& __x);
|
void push_front(value_type&& __x);
|
||||||
void push_back(value_type&& __x);
|
void push_back(value_type&& __x);
|
||||||
#if !defined(_LIBCPP_HAS_NO_VARIADICS)
|
|
||||||
template <class... _Args>
|
template <class... _Args>
|
||||||
void emplace_back(_Args&&... __args);
|
void emplace_back(_Args&&... __args);
|
||||||
#endif // !defined(_LIBCPP_HAS_NO_VARIADICS)
|
#endif // !defined(_LIBCPP_CXX03_LANG)
|
||||||
#endif // !defined(_LIBCPP_HAS_NO_RVALUE_REFERENCES)
|
|
||||||
|
|
||||||
_LIBCPP_INLINE_VISIBILITY void pop_front() {__destruct_at_begin(__begin_+1);}
|
_LIBCPP_INLINE_VISIBILITY void pop_front() {__destruct_at_begin(__begin_+1);}
|
||||||
_LIBCPP_INLINE_VISIBILITY void pop_back() {__destruct_at_end(__end_-1);}
|
_LIBCPP_INLINE_VISIBILITY void pop_back() {__destruct_at_end(__end_-1);}
|
||||||
@@ -343,7 +341,7 @@ __split_buffer<_Tp, _Allocator>::~__split_buffer()
|
|||||||
__alloc_traits::deallocate(__alloc(), __first_, capacity());
|
__alloc_traits::deallocate(__alloc(), __first_, capacity());
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#ifndef _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
template <class _Tp, class _Allocator>
|
template <class _Tp, class _Allocator>
|
||||||
__split_buffer<_Tp, _Allocator>::__split_buffer(__split_buffer&& __c)
|
__split_buffer<_Tp, _Allocator>::__split_buffer(__split_buffer&& __c)
|
||||||
@@ -405,7 +403,7 @@ __split_buffer<_Tp, _Allocator>::operator=(__split_buffer&& __c)
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
template <class _Tp, class _Allocator>
|
template <class _Tp, class _Allocator>
|
||||||
void
|
void
|
||||||
@@ -492,7 +490,7 @@ __split_buffer<_Tp, _Allocator>::push_front(const_reference __x)
|
|||||||
--__begin_;
|
--__begin_;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#ifndef _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
template <class _Tp, class _Allocator>
|
template <class _Tp, class _Allocator>
|
||||||
void
|
void
|
||||||
@@ -524,7 +522,7 @@ __split_buffer<_Tp, _Allocator>::push_front(value_type&& __x)
|
|||||||
--__begin_;
|
--__begin_;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
template <class _Tp, class _Allocator>
|
template <class _Tp, class _Allocator>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
@@ -556,7 +554,7 @@ __split_buffer<_Tp, _Allocator>::push_back(const_reference __x)
|
|||||||
++__end_;
|
++__end_;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#ifndef _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
template <class _Tp, class _Allocator>
|
template <class _Tp, class _Allocator>
|
||||||
void
|
void
|
||||||
@@ -588,8 +586,6 @@ __split_buffer<_Tp, _Allocator>::push_back(value_type&& __x)
|
|||||||
++__end_;
|
++__end_;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef _LIBCPP_HAS_NO_VARIADICS
|
|
||||||
|
|
||||||
template <class _Tp, class _Allocator>
|
template <class _Tp, class _Allocator>
|
||||||
template <class... _Args>
|
template <class... _Args>
|
||||||
void
|
void
|
||||||
@@ -621,9 +617,7 @@ __split_buffer<_Tp, _Allocator>::emplace_back(_Args&&... __args)
|
|||||||
++__end_;
|
++__end_;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // _LIBCPP_HAS_NO_VARIADICS
|
#endif // _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
|
||||||
|
|
||||||
template <class _Tp, class _Allocator>
|
template <class _Tp, class _Allocator>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
|
|||||||
@@ -1105,7 +1105,7 @@ public:
|
|||||||
void __assign_unique(_InputIterator __first, _InputIterator __last);
|
void __assign_unique(_InputIterator __first, _InputIterator __last);
|
||||||
template <class _InputIterator>
|
template <class _InputIterator>
|
||||||
void __assign_multi(_InputIterator __first, _InputIterator __last);
|
void __assign_multi(_InputIterator __first, _InputIterator __last);
|
||||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#ifndef _LIBCPP_CXX03_LANG
|
||||||
__tree(__tree&& __t)
|
__tree(__tree&& __t)
|
||||||
_NOEXCEPT_(
|
_NOEXCEPT_(
|
||||||
is_nothrow_move_constructible<__node_allocator>::value &&
|
is_nothrow_move_constructible<__node_allocator>::value &&
|
||||||
@@ -1116,7 +1116,7 @@ public:
|
|||||||
__node_traits::propagate_on_container_move_assignment::value &&
|
__node_traits::propagate_on_container_move_assignment::value &&
|
||||||
is_nothrow_move_assignable<value_compare>::value &&
|
is_nothrow_move_assignable<value_compare>::value &&
|
||||||
is_nothrow_move_assignable<__node_allocator>::value);
|
is_nothrow_move_assignable<__node_allocator>::value);
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
~__tree();
|
~__tree();
|
||||||
|
|
||||||
@@ -1675,7 +1675,7 @@ __tree<_Tp, _Compare, _Allocator>::__tree(const __tree& __t)
|
|||||||
__begin_node() = __end_node();
|
__begin_node() = __end_node();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#ifndef _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
template <class _Tp, class _Compare, class _Allocator>
|
template <class _Tp, class _Compare, class _Allocator>
|
||||||
__tree<_Tp, _Compare, _Allocator>::__tree(__tree&& __t)
|
__tree<_Tp, _Compare, _Allocator>::__tree(__tree&& __t)
|
||||||
@@ -1805,7 +1805,7 @@ __tree<_Tp, _Compare, _Allocator>::operator=(__tree&& __t)
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
template <class _Tp, class _Compare, class _Allocator>
|
template <class _Tp, class _Compare, class _Allocator>
|
||||||
__tree<_Tp, _Compare, _Allocator>::~__tree()
|
__tree<_Tp, _Compare, _Allocator>::~__tree()
|
||||||
|
|||||||
@@ -331,7 +331,7 @@ public:
|
|||||||
__second_constructed(false)
|
__second_constructed(false)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#ifndef _LIBCPP_CXX03_LANG
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
__hash_map_node_destructor(__hash_node_destructor<allocator_type>&& __x)
|
__hash_map_node_destructor(__hash_node_destructor<allocator_type>&& __x)
|
||||||
: __na_(__x.__na_),
|
: __na_(__x.__na_),
|
||||||
@@ -340,7 +340,7 @@ public:
|
|||||||
{
|
{
|
||||||
__x.__value_constructed = false;
|
__x.__value_constructed = false;
|
||||||
}
|
}
|
||||||
#else // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#else // _LIBCPP_CXX03_LANG
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
__hash_map_node_destructor(const __hash_node_destructor<allocator_type>& __x)
|
__hash_map_node_destructor(const __hash_node_destructor<allocator_type>& __x)
|
||||||
: __na_(__x.__na_),
|
: __na_(__x.__na_),
|
||||||
@@ -349,7 +349,7 @@ public:
|
|||||||
{
|
{
|
||||||
const_cast<bool&>(__x.__value_constructed) = false;
|
const_cast<bool&>(__x.__value_constructed) = false;
|
||||||
}
|
}
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
void operator()(pointer __p)
|
void operator()(pointer __p)
|
||||||
|
|||||||
Reference in New Issue
Block a user