diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-10 17:27:22 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-10 17:27:22 +0000 |
commit | 0c8766b14373cdc13b9c966130ec877e0fa29865 (patch) | |
tree | d9b336f73d8705f567b8e2871708f2dca7cadb44 /libstdc++-v3/include/debug | |
parent | f955ca518bf9bfa53aabe55c11a67c6c5a2a3581 (diff) | |
download | gcc-0c8766b14373cdc13b9c966130ec877e0fa29865.tar.gz |
* many: Replace uses of __GXX_EXPERIMENTAL_CXX0X__ with __cplusplus.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193392 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/debug')
-rw-r--r-- | libstdc++-v3/include/debug/bitset | 16 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/deque | 24 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/list | 44 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/map.h | 20 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/multimap.h | 20 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/multiset.h | 18 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/safe_iterator.h | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/set.h | 18 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/string | 38 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/unordered_map | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/unordered_set | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/vector | 34 |
12 files changed, 122 insertions, 122 deletions
diff --git a/libstdc++-v3/include/debug/bitset b/libstdc++-v3/include/debug/bitset index 3d865c1c1c2..0ad8283d8fe 100644 --- a/libstdc++-v3/include/debug/bitset +++ b/libstdc++-v3/include/debug/bitset @@ -42,7 +42,7 @@ namespace __debug template<size_t _Nb> class bitset : public _GLIBCXX_STD_C::bitset<_Nb> -#ifndef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus < 201103L , public __gnu_debug::_Safe_sequence_base #endif { @@ -52,7 +52,7 @@ namespace __debug // In C++0x we rely on normal reference type to preserve the property // of bitset to be use as a literal. // TODO: Find another solution. -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L typedef typename _Base::reference reference; #else // bit reference: @@ -133,7 +133,7 @@ namespace __debug _GLIBCXX_CONSTEXPR bitset() _GLIBCXX_NOEXCEPT : _Base() { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L constexpr bitset(unsigned long long __val) noexcept #else bitset(unsigned long __val) @@ -162,7 +162,7 @@ namespace __debug bitset(const _Base& __x) : _Base(__x) { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _CharT> explicit bitset(const _CharT* __str, @@ -263,7 +263,7 @@ namespace __debug operator[](size_t __pos) { __glibcxx_check_subscript(__pos); -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L return _M_base()[__pos]; #else return reference(_M_base()[__pos], this); @@ -275,7 +275,7 @@ namespace __debug _GLIBCXX_CONSTEXPR bool operator[](size_t __pos) const { -#ifndef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus < 201103L // TODO: Check in debug-mode too. __glibcxx_check_subscript(__pos); #endif @@ -283,7 +283,7 @@ namespace __debug } using _Base::to_ulong; -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L using _Base::to_ullong; #endif @@ -409,7 +409,7 @@ namespace __debug } // namespace __debug -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L // DR 1182. /// std::hash specialization for bitset. template<size_t _Nb> diff --git a/libstdc++-v3/include/debug/deque b/libstdc++-v3/include/debug/deque index 1ce416c180c..1445b7c047d 100644 --- a/libstdc++-v3/include/debug/deque +++ b/libstdc++-v3/include/debug/deque @@ -74,7 +74,7 @@ namespace __debug deque(const _Allocator& __a = _Allocator()) : _Base(__a) { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L explicit deque(size_type __n) : _Base(__n) { } @@ -89,7 +89,7 @@ namespace __debug : _Base(__n, __value, __a) { } #endif -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> #else @@ -108,7 +108,7 @@ namespace __debug deque(const _Base& __x) : _Base(__x) { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L deque(deque&& __x) : _Base(std::move(__x)) { this->_M_swap(__x); } @@ -128,7 +128,7 @@ namespace __debug return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L deque& operator=(deque&& __x) { @@ -149,7 +149,7 @@ namespace __debug } #endif -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> #else @@ -171,7 +171,7 @@ namespace __debug this->_M_invalidate_all(); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void assign(initializer_list<value_type> __l) { @@ -215,7 +215,7 @@ namespace __debug rend() const _GLIBCXX_NOEXCEPT { return const_reverse_iterator(begin()); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L const_iterator cbegin() const noexcept { return const_iterator(_Base::begin(), this); } @@ -246,7 +246,7 @@ namespace __debug using _Base::size; using _Base::max_size; -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void resize(size_type __sz) { @@ -287,7 +287,7 @@ namespace __debug } #endif -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void shrink_to_fit() { @@ -358,7 +358,7 @@ namespace __debug this->_M_invalidate_all(); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void push_front(_Tp&& __x) { emplace_front(std::move(__x)); } @@ -404,7 +404,7 @@ namespace __debug return iterator(__res, this); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L iterator insert(iterator __position, _Tp&& __x) { return emplace(__position, std::move(__x)); } @@ -425,7 +425,7 @@ namespace __debug this->_M_invalidate_all(); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> #else diff --git a/libstdc++-v3/include/debug/list b/libstdc++-v3/include/debug/list index df2031dd603..d9cfca404d8 100644 --- a/libstdc++-v3/include/debug/list +++ b/libstdc++-v3/include/debug/list @@ -75,7 +75,7 @@ namespace __debug list(const _Allocator& __a = _Allocator()) : _Base(__a) { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L explicit list(size_type __n) : _Base(__n) { } @@ -90,7 +90,7 @@ namespace __debug : _Base(__n, __value, __a) { } #endif -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> #else @@ -109,7 +109,7 @@ namespace __debug list(const _Base& __x) : _Base(__x) { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L list(list&& __x) noexcept : _Base(std::move(__x)) { this->_M_swap(__x); } @@ -129,7 +129,7 @@ namespace __debug return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L list& operator=(list&& __x) { @@ -157,7 +157,7 @@ namespace __debug } #endif -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> #else @@ -214,7 +214,7 @@ namespace __debug rend() const _GLIBCXX_NOEXCEPT { return const_reverse_iterator(begin()); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L const_iterator cbegin() const noexcept { return const_iterator(_Base::begin(), this); } @@ -237,7 +237,7 @@ namespace __debug using _Base::size; using _Base::max_size; -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void resize(size_type __sz) { @@ -352,7 +352,7 @@ namespace __debug // 23.2.2.3 modifiers: using _Base::push_front; -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L using _Base::emplace_front; #endif @@ -366,7 +366,7 @@ namespace __debug using _Base::push_back; -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L using _Base::emplace_back; #endif @@ -378,7 +378,7 @@ namespace __debug _Base::pop_back(); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename... _Args> iterator emplace(iterator __position, _Args&&... __args) @@ -396,7 +396,7 @@ namespace __debug return iterator(_Base::insert(__position.base(), __x), this); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L iterator insert(iterator __position, _Tp&& __x) { return emplace(__position, std::move(__x)); } @@ -416,7 +416,7 @@ namespace __debug _Base::insert(__position.base(), __n, __x); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> #else @@ -480,7 +480,7 @@ namespace __debug // 23.2.2.4 list operations: void -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L splice(iterator __position, list&& __x) #else splice(iterator __position, list& __x) @@ -493,14 +493,14 @@ namespace __debug _Base::splice(__position.base(), _GLIBCXX_MOVE(__x._M_base())); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void splice(iterator __position, list& __x) { splice(__position, std::move(__x)); } #endif void -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L splice(iterator __position, list&& __x, iterator __i) #else splice(iterator __position, list& __x, iterator __i) @@ -525,14 +525,14 @@ namespace __debug __i.base()); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void splice(iterator __position, list& __x, iterator __i) { splice(__position, std::move(__x), __i); } #endif void -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L splice(iterator __position, list&& __x, iterator __first, iterator __last) #else @@ -571,7 +571,7 @@ namespace __debug __first.base(), __last.base()); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void splice(iterator __position, list& __x, iterator __first, iterator __last) { splice(__position, std::move(__x), __first, __last); } @@ -638,7 +638,7 @@ namespace __debug } void -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L merge(list&& __x) #else merge(list& __x) @@ -655,7 +655,7 @@ namespace __debug } } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void merge(list& __x) { merge(std::move(__x)); } @@ -663,7 +663,7 @@ namespace __debug template<class _Compare> void -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L merge(list&& __x, _Compare __comp) #else merge(list& __x, _Compare __comp) @@ -682,7 +682,7 @@ namespace __debug } } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Compare> void merge(list& __x, _Compare __comp) diff --git a/libstdc++-v3/include/debug/map.h b/libstdc++-v3/include/debug/map.h index 254988c2c64..900b702e57f 100644 --- a/libstdc++-v3/include/debug/map.h +++ b/libstdc++-v3/include/debug/map.h @@ -92,7 +92,7 @@ namespace __debug map(const _Base& __x) : _Base(__x) { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L map(map&& __x) noexcept(is_nothrow_copy_constructible<_Compare>::value) : _Base(std::move(__x)) @@ -114,7 +114,7 @@ namespace __debug return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L map& operator=(map&& __x) { @@ -172,7 +172,7 @@ namespace __debug rend() const _GLIBCXX_NOEXCEPT { return const_reverse_iterator(begin()); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L const_iterator cbegin() const noexcept { return const_iterator(_Base::begin(), this); } @@ -203,7 +203,7 @@ namespace __debug using _Base::at; // modifiers: -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename... _Args> std::pair<iterator, bool> emplace(_Args&&... __args) @@ -232,7 +232,7 @@ namespace __debug __res.second); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Pair, typename = typename std::enable_if<std::is_constructible<value_type, _Pair&&>::value>::type> @@ -246,14 +246,14 @@ namespace __debug } #endif -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void insert(std::initializer_list<value_type> __list) { _Base::insert(__list); } #endif iterator -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L insert(const_iterator __position, const value_type& __x) #else insert(iterator __position, const value_type& __x) @@ -263,7 +263,7 @@ namespace __debug return iterator(_Base::insert(__position.base(), __x), this); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Pair, typename = typename std::enable_if<std::is_constructible<value_type, _Pair&&>::value>::type> @@ -285,7 +285,7 @@ namespace __debug __gnu_debug::__base(__last)); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L iterator erase(const_iterator __position) { @@ -321,7 +321,7 @@ namespace __debug } } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L iterator erase(const_iterator __first, const_iterator __last) { diff --git a/libstdc++-v3/include/debug/multimap.h b/libstdc++-v3/include/debug/multimap.h index e46a7427345..1bac1539798 100644 --- a/libstdc++-v3/include/debug/multimap.h +++ b/libstdc++-v3/include/debug/multimap.h @@ -93,7 +93,7 @@ namespace __debug multimap(const _Base& __x) : _Base(__x) { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L multimap(multimap&& __x) noexcept(is_nothrow_copy_constructible<_Compare>::value) : _Base(std::move(__x)) @@ -115,7 +115,7 @@ namespace __debug return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L multimap& operator=(multimap&& __x) { @@ -171,7 +171,7 @@ namespace __debug rend() const _GLIBCXX_NOEXCEPT { return const_reverse_iterator(begin()); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L const_iterator cbegin() const noexcept { return const_iterator(_Base::begin(), this); } @@ -195,7 +195,7 @@ namespace __debug using _Base::max_size; // modifiers: -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename... _Args> iterator emplace(_Args&&... __args) @@ -218,7 +218,7 @@ namespace __debug insert(const value_type& __x) { return iterator(_Base::insert(__x), this); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Pair, typename = typename std::enable_if<std::is_constructible<value_type, _Pair&&>::value>::type> @@ -227,14 +227,14 @@ namespace __debug { return iterator(_Base::insert(std::forward<_Pair>(__x)), this); } #endif -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void insert(std::initializer_list<value_type> __list) { _Base::insert(__list); } #endif iterator -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L insert(const_iterator __position, const value_type& __x) #else insert(iterator __position, const value_type& __x) @@ -244,7 +244,7 @@ namespace __debug return iterator(_Base::insert(__position.base(), __x), this); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Pair, typename = typename std::enable_if<std::is_constructible<value_type, _Pair&&>::value>::type> @@ -266,7 +266,7 @@ namespace __debug __gnu_debug::__base(__last)); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L iterator erase(const_iterator __position) { @@ -304,7 +304,7 @@ namespace __debug return __count; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L iterator erase(const_iterator __first, const_iterator __last) { diff --git a/libstdc++-v3/include/debug/multiset.h b/libstdc++-v3/include/debug/multiset.h index 04598464abd..9850c444f7d 100644 --- a/libstdc++-v3/include/debug/multiset.h +++ b/libstdc++-v3/include/debug/multiset.h @@ -92,7 +92,7 @@ namespace __debug multiset(const _Base& __x) : _Base(__x) { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L multiset(multiset&& __x) noexcept(is_nothrow_copy_constructible<_Compare>::value) : _Base(std::move(__x)) @@ -114,7 +114,7 @@ namespace __debug return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L multiset& operator=(multiset&& __x) { @@ -170,7 +170,7 @@ namespace __debug rend() const _GLIBCXX_NOEXCEPT { return const_reverse_iterator(begin()); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L const_iterator cbegin() const noexcept { return const_iterator(_Base::begin(), this); } @@ -194,7 +194,7 @@ namespace __debug using _Base::max_size; // modifiers: -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename... _Args> iterator emplace(_Args&&... __args) @@ -217,7 +217,7 @@ namespace __debug insert(const value_type& __x) { return iterator(_Base::insert(__x), this); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L iterator insert(value_type&& __x) { return iterator(_Base::insert(std::move(__x)), this); } @@ -230,7 +230,7 @@ namespace __debug return iterator(_Base::insert(__position.base(), __x), this); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L iterator insert(const_iterator __position, value_type&& __x) { @@ -249,13 +249,13 @@ namespace __debug __gnu_debug::__base(__last)); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void insert(initializer_list<value_type> __l) { _Base::insert(__l); } #endif -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L iterator erase(const_iterator __position) { @@ -289,7 +289,7 @@ namespace __debug return __count; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L iterator erase(const_iterator __first, const_iterator __last) { diff --git a/libstdc++-v3/include/debug/safe_iterator.h b/libstdc++-v3/include/debug/safe_iterator.h index 68f55cd974e..637fe2d195a 100644 --- a/libstdc++-v3/include/debug/safe_iterator.h +++ b/libstdc++-v3/include/debug/safe_iterator.h @@ -172,7 +172,7 @@ namespace __gnu_debug ._M_iterator(__x, "other")); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L /** * @brief Move construction. * @post __x is singular and unattached @@ -229,7 +229,7 @@ namespace __gnu_debug return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L /** * @brief Move assignment. * @post __x is singular and unattached diff --git a/libstdc++-v3/include/debug/set.h b/libstdc++-v3/include/debug/set.h index 44cbe941732..d7d590caa23 100644 --- a/libstdc++-v3/include/debug/set.h +++ b/libstdc++-v3/include/debug/set.h @@ -92,7 +92,7 @@ namespace __debug set(const _Base& __x) : _Base(__x) { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L set(set&& __x) noexcept(is_nothrow_copy_constructible<_Compare>::value) : _Base(std::move(__x)) @@ -114,7 +114,7 @@ namespace __debug return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L set& operator=(set&& __x) { @@ -170,7 +170,7 @@ namespace __debug rend() const _GLIBCXX_NOEXCEPT { return const_reverse_iterator(begin()); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L const_iterator cbegin() const noexcept { return const_iterator(_Base::begin(), this); } @@ -194,7 +194,7 @@ namespace __debug using _Base::max_size; // modifiers: -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename... _Args> std::pair<iterator, bool> emplace(_Args&&... __args) @@ -223,7 +223,7 @@ namespace __debug __res.second); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L std::pair<iterator, bool> insert(value_type&& __x) { @@ -241,7 +241,7 @@ namespace __debug return iterator(_Base::insert(__position.base(), __x), this); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L iterator insert(const_iterator __position, value_type&& __x) { @@ -260,13 +260,13 @@ namespace __debug __gnu_debug::__base(__last)); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void insert(initializer_list<value_type> __l) { _Base::insert(__l); } #endif -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L iterator erase(const_iterator __position) { @@ -298,7 +298,7 @@ namespace __debug } } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L iterator erase(const_iterator __first, const_iterator __last) { diff --git a/libstdc++-v3/include/debug/string b/libstdc++-v3/include/debug/string index 954a7ddf684..4c51aa1ca94 100644 --- a/libstdc++-v3/include/debug/string +++ b/libstdc++-v3/include/debug/string @@ -113,7 +113,7 @@ namespace __gnu_debug __gnu_debug::__base(__end), __a) { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L basic_string(basic_string&& __str) noexcept : _Base(std::move(__str)) { } @@ -122,7 +122,7 @@ namespace __gnu_debug const _Allocator& __a = _Allocator()) : _Base(__l, __a) { } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 ~basic_string() _GLIBCXX_NOEXCEPT { } @@ -151,7 +151,7 @@ namespace __gnu_debug return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L basic_string& operator=(basic_string&& __str) { @@ -168,7 +168,7 @@ namespace __gnu_debug this->_M_invalidate_all(); return *this; } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 // 21.3.2 iterators: iterator @@ -203,7 +203,7 @@ namespace __gnu_debug rend() const _GLIBCXX_NOEXCEPT { return const_reverse_iterator(begin()); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L const_iterator cbegin() const noexcept { return const_iterator(_Base::begin(), this); } @@ -237,7 +237,7 @@ namespace __gnu_debug resize(size_type __n) { this->resize(__n, _CharT()); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void shrink_to_fit() { @@ -296,7 +296,7 @@ namespace __gnu_debug using _Base::at; -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L using _Base::front; using _Base::back; #endif @@ -327,7 +327,7 @@ namespace __gnu_debug return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L basic_string& operator+=(std::initializer_list<_CharT> __l) { @@ -335,7 +335,7 @@ namespace __gnu_debug this->_M_invalidate_all(); return *this; } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 basic_string& append(const basic_string& __str) @@ -407,7 +407,7 @@ namespace __gnu_debug return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L basic_string& assign(basic_string&& __x) { @@ -415,7 +415,7 @@ namespace __gnu_debug this->_M_invalidate_all(); return *this; } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 basic_string& assign(const basic_string& __str, size_type __pos, size_type __n) @@ -462,7 +462,7 @@ namespace __gnu_debug return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L basic_string& assign(std::initializer_list<_CharT> __l) { @@ -470,7 +470,7 @@ namespace __gnu_debug this->_M_invalidate_all(); return *this; } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 basic_string& insert(size_type __pos1, const basic_string& __str) @@ -542,7 +542,7 @@ namespace __gnu_debug this->_M_invalidate_all(); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void insert(iterator __p, std::initializer_list<_CharT> __l) { @@ -550,7 +550,7 @@ namespace __gnu_debug _Base::insert(__p.base(), __l); this->_M_invalidate_all(); } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 basic_string& erase(size_type __pos = 0, size_type __n = _Base::npos) @@ -581,7 +581,7 @@ namespace __gnu_debug return iterator(__res, this); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void pop_back() { @@ -589,7 +589,7 @@ namespace __gnu_debug _Base::pop_back(); this->_M_invalidate_all(); } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 basic_string& replace(size_type __pos1, size_type __n1, const basic_string& __str) @@ -685,7 +685,7 @@ namespace __gnu_debug return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L basic_string& replace(iterator __i1, iterator __i2, std::initializer_list<_CharT> __l) { @@ -694,7 +694,7 @@ namespace __gnu_debug this->_M_invalidate_all(); return *this; } -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 size_type copy(_CharT* __s, size_type __n, size_type __pos = 0) const diff --git a/libstdc++-v3/include/debug/unordered_map b/libstdc++-v3/include/debug/unordered_map index 16cf1768e42..1c99ac842b6 100644 --- a/libstdc++-v3/include/debug/unordered_map +++ b/libstdc++-v3/include/debug/unordered_map @@ -30,7 +30,7 @@ #ifndef _GLIBCXX_DEBUG_UNORDERED_MAP #define _GLIBCXX_DEBUG_UNORDERED_MAP 1 -#ifndef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus < 201103L # include <bits/c++0x_warning.h> #else # include <unordered_map> @@ -941,6 +941,6 @@ namespace __debug } // namespace __debug } // namespace std -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 #endif diff --git a/libstdc++-v3/include/debug/unordered_set b/libstdc++-v3/include/debug/unordered_set index 8cae0c9c222..d270ecc96d3 100644 --- a/libstdc++-v3/include/debug/unordered_set +++ b/libstdc++-v3/include/debug/unordered_set @@ -30,7 +30,7 @@ #ifndef _GLIBCXX_DEBUG_UNORDERED_SET #define _GLIBCXX_DEBUG_UNORDERED_SET 1 -#ifndef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus < 201103L # include <bits/c++0x_warning.h> #else # include <unordered_set> @@ -923,6 +923,6 @@ namespace __debug } // namespace __debug } // namespace std -#endif // __GXX_EXPERIMENTAL_CXX0X__ +#endif // C++11 #endif diff --git a/libstdc++-v3/include/debug/vector b/libstdc++-v3/include/debug/vector index fe65bab0c7a..9166a073691 100644 --- a/libstdc++-v3/include/debug/vector +++ b/libstdc++-v3/include/debug/vector @@ -53,7 +53,7 @@ namespace __debug typedef typename _Base::const_iterator _Base_const_iterator; typedef __gnu_debug::_Equal_to<_Base_const_iterator> _Equal; -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L typedef __gnu_cxx::__alloc_traits<_Allocator> _Alloc_traits; #endif @@ -81,7 +81,7 @@ namespace __debug vector(const _Allocator& __a = _Allocator()) : _Base(__a), _M_guaranteed_capacity(0) { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L explicit vector(size_type __n, const _Allocator& __a = _Allocator()) : _Base(__n, __a), _M_guaranteed_capacity(__n) { } @@ -96,7 +96,7 @@ namespace __debug : _Base(__n, __value, __a), _M_guaranteed_capacity(__n) { } #endif -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> #else @@ -117,7 +117,7 @@ namespace __debug vector(const _Base& __x) : _Base(__x), _M_guaranteed_capacity(__x.size()) { } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L vector(vector&& __x) noexcept : _Base(std::move(__x)), _M_guaranteed_capacity(this->size()) @@ -154,7 +154,7 @@ namespace __debug return *this; } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L vector& operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) { @@ -177,7 +177,7 @@ namespace __debug } #endif -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _InputIterator, typename = std::_RequireInputIter<_InputIterator>> #else @@ -201,7 +201,7 @@ namespace __debug _M_update_guaranteed_capacity(); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void assign(initializer_list<value_type> __l) { @@ -246,7 +246,7 @@ namespace __debug rend() const _GLIBCXX_NOEXCEPT { return const_reverse_iterator(begin()); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L const_iterator cbegin() const noexcept { return const_iterator(_Base::begin(), this); } @@ -268,7 +268,7 @@ namespace __debug using _Base::size; using _Base::max_size; -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void resize(size_type __sz) { @@ -306,7 +306,7 @@ namespace __debug } #endif -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L void shrink_to_fit() { @@ -401,7 +401,7 @@ namespace __debug _M_update_guaranteed_capacity(); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Up = _Tp> typename __gnu_cxx::__enable_if<!std::__are_same<_Up, bool>::__value, void>::__type @@ -428,7 +428,7 @@ namespace __debug _Base::pop_back(); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename... _Args> iterator emplace(iterator __position, _Args&&... __args) @@ -462,7 +462,7 @@ namespace __debug return iterator(__res, this); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<typename _Up = _Tp> typename __gnu_cxx::__enable_if<!std::__are_same<_Up, bool>::__value, iterator>::__type @@ -488,7 +488,7 @@ namespace __debug _M_update_guaranteed_capacity(); } -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> #else @@ -546,11 +546,11 @@ namespace __debug void swap(vector& __x) -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L noexcept(_Alloc_traits::_S_nothrow_swap()) #endif { -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L if (!_Alloc_traits::_S_propagate_on_swap()) __glibcxx_check_equal_allocs(__x); #endif @@ -638,7 +638,7 @@ namespace __debug } // namespace __debug -#ifdef __GXX_EXPERIMENTAL_CXX0X__ +#if __cplusplus >= 201103L // DR 1182. /// std::hash specialization for vector<bool>. template<typename _Alloc> |