set.h: Minor formatting fixes.
2008-07-29 Paolo Carlini <paolo.carlini@oracle.com> * include/debug/set.h: Minor formatting fixes. * include/debug/multiset.h: Likewise. * include/debug/safe_association.h: Likewise. * include/debug/vector: Likewise. * include/debug/map.h: Likewise. * include/debug/string: Likewise. * include/debug/multimap.h: Likewise. * include/bits/stl_list.h: Likewise. * include/bits/stl_map.h: Likewise. * include/bits/stl_set.h: Likewise. * include/bits/stl_multimap.h: Likewise. * include/bits/stl_vector.h: Likewise. * include/bits/stl_multiset.h: Likewise. * include/bits/stl_bvector.h: Likewise. From-SVN: r138263
This commit is contained in:
parent
13669c366c
commit
b798df0579
15 changed files with 42 additions and 25 deletions
|
@ -1,3 +1,20 @@
|
||||||
|
2008-07-29 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
|
* include/debug/set.h: Minor formatting fixes.
|
||||||
|
* include/debug/multiset.h: Likewise.
|
||||||
|
* include/debug/safe_association.h: Likewise.
|
||||||
|
* include/debug/vector: Likewise.
|
||||||
|
* include/debug/map.h: Likewise.
|
||||||
|
* include/debug/string: Likewise.
|
||||||
|
* include/debug/multimap.h: Likewise.
|
||||||
|
* include/bits/stl_list.h: Likewise.
|
||||||
|
* include/bits/stl_map.h: Likewise.
|
||||||
|
* include/bits/stl_set.h: Likewise.
|
||||||
|
* include/bits/stl_multimap.h: Likewise.
|
||||||
|
* include/bits/stl_vector.h: Likewise.
|
||||||
|
* include/bits/stl_multiset.h: Likewise.
|
||||||
|
* include/bits/stl_bvector.h: Likewise.
|
||||||
|
|
||||||
2008-07-29 Paolo Carlini <paolo.carlini@oracle.com>
|
2008-07-29 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
* include/std/utility: Include <initializer_list>, per the current WP.
|
* include/std/utility: Include <initializer_list>, per the current WP.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// vector<bool> specialization -*- C++ -*-
|
// vector<bool> specialization -*- C++ -*-
|
||||||
|
|
||||||
// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
|
// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
|
||||||
// Free Software Foundation, Inc.
|
// Free Software Foundation, Inc.
|
||||||
//
|
//
|
||||||
// This file is part of the GNU ISO C++ Library. This library is free
|
// This file is part of the GNU ISO C++ Library. This library is free
|
||||||
|
@ -534,7 +534,7 @@ template<typename _Alloc>
|
||||||
|
|
||||||
vector(initializer_list<bool> __l,
|
vector(initializer_list<bool> __l,
|
||||||
const allocator_type& __a = allocator_type())
|
const allocator_type& __a = allocator_type())
|
||||||
: _Base(__a)
|
: _Base(__a)
|
||||||
{
|
{
|
||||||
_M_initialize_range(__l.begin(), __l.end(),
|
_M_initialize_range(__l.begin(), __l.end(),
|
||||||
random_access_iterator_tag());
|
random_access_iterator_tag());
|
||||||
|
|
|
@ -553,7 +553,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
|
||||||
*/
|
*/
|
||||||
list(initializer_list<value_type> __l,
|
list(initializer_list<value_type> __l,
|
||||||
const allocator_type& __a = allocator_type())
|
const allocator_type& __a = allocator_type())
|
||||||
: _Base(__a)
|
: _Base(__a)
|
||||||
{ _M_initialize_dispatch(__l.begin(), __l.end(), __false_type()); }
|
{ _M_initialize_dispatch(__l.begin(), __l.end(), __false_type()); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -201,7 +201,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
|
||||||
map(initializer_list<value_type> __l,
|
map(initializer_list<value_type> __l,
|
||||||
const _Compare& __c = _Compare(),
|
const _Compare& __c = _Compare(),
|
||||||
const allocator_type& __a = allocator_type())
|
const allocator_type& __a = allocator_type())
|
||||||
: _M_t(__c, __a)
|
: _M_t(__c, __a)
|
||||||
{ _M_t._M_insert_unique(__l.begin(), __l.end()); }
|
{ _M_t._M_insert_unique(__l.begin(), __l.end()); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -198,7 +198,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
|
||||||
multimap(initializer_list<value_type> __l,
|
multimap(initializer_list<value_type> __l,
|
||||||
const _Compare& __comp = _Compare(),
|
const _Compare& __comp = _Compare(),
|
||||||
const allocator_type& __a = allocator_type())
|
const allocator_type& __a = allocator_type())
|
||||||
: _M_t(__comp, __a)
|
: _M_t(__comp, __a)
|
||||||
{ _M_t._M_insert_equal(__l.begin(), __l.end()); }
|
{ _M_t._M_insert_equal(__l.begin(), __l.end()); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -211,7 +211,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
|
||||||
multiset(initializer_list<value_type> __l,
|
multiset(initializer_list<value_type> __l,
|
||||||
const _Compare& __comp = _Compare(),
|
const _Compare& __comp = _Compare(),
|
||||||
const allocator_type& __a = allocator_type())
|
const allocator_type& __a = allocator_type())
|
||||||
: _M_t(__comp, __a)
|
: _M_t(__comp, __a)
|
||||||
{ _M_t._M_insert_equal(__l.begin(), __l.end()); }
|
{ _M_t._M_insert_equal(__l.begin(), __l.end()); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -215,10 +215,10 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
|
||||||
* This is linear in N if the list is already sorted, and NlogN
|
* This is linear in N if the list is already sorted, and NlogN
|
||||||
* otherwise (where N is @a l.size()).
|
* otherwise (where N is @a l.size()).
|
||||||
*/
|
*/
|
||||||
set(initializer_list<value_type> __l,
|
set(initializer_list<value_type> __l,
|
||||||
const _Compare& __comp = _Compare(),
|
const _Compare& __comp = _Compare(),
|
||||||
const allocator_type& __a = allocator_type())
|
const allocator_type& __a = allocator_type())
|
||||||
: _M_t(__comp, __a)
|
: _M_t(__comp, __a)
|
||||||
{ _M_t._M_insert_unique(__l.begin(), __l.end()); }
|
{ _M_t._M_insert_unique(__l.begin(), __l.end()); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -277,11 +277,11 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
|
||||||
*/
|
*/
|
||||||
vector(initializer_list<value_type> __l,
|
vector(initializer_list<value_type> __l,
|
||||||
const allocator_type& __a = allocator_type())
|
const allocator_type& __a = allocator_type())
|
||||||
: _Base(__a)
|
: _Base(__a)
|
||||||
{
|
{
|
||||||
_M_range_initialize(__l.begin(), __l.end(),
|
_M_range_initialize(__l.begin(), __l.end(),
|
||||||
random_access_iterator_tag());
|
random_access_iterator_tag());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -102,7 +102,7 @@ namespace __debug
|
||||||
map(initializer_list<value_type> __l,
|
map(initializer_list<value_type> __l,
|
||||||
const _Compare& __c = _Compare(),
|
const _Compare& __c = _Compare(),
|
||||||
const allocator_type& __a = allocator_type())
|
const allocator_type& __a = allocator_type())
|
||||||
: _Base(__l, __c, __a), _Safe_base() { }
|
: _Base(__l, __c, __a), _Safe_base() { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
~map() { }
|
~map() { }
|
||||||
|
|
|
@ -103,7 +103,7 @@ namespace __debug
|
||||||
multimap(initializer_list<value_type> __l,
|
multimap(initializer_list<value_type> __l,
|
||||||
const _Compare& __c = _Compare(),
|
const _Compare& __c = _Compare(),
|
||||||
const allocator_type& __a = allocator_type())
|
const allocator_type& __a = allocator_type())
|
||||||
: _Base(__l, __c, __a), _Safe_base() { }
|
: _Base(__l, __c, __a), _Safe_base() { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
~multimap() { }
|
~multimap() { }
|
||||||
|
|
|
@ -100,7 +100,7 @@ namespace __debug
|
||||||
multiset(initializer_list<value_type> __l,
|
multiset(initializer_list<value_type> __l,
|
||||||
const _Compare& __comp = _Compare(),
|
const _Compare& __comp = _Compare(),
|
||||||
const allocator_type& __a = allocator_type())
|
const allocator_type& __a = allocator_type())
|
||||||
: _Base(__l, __comp, __a), _Safe_base() { }
|
: _Base(__l, __comp, __a), _Safe_base() { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
~multiset() { }
|
~multiset() { }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Safe associated container base class implementation -*- C++ -*-
|
// Safe associated container base class implementation -*- C++ -*-
|
||||||
|
|
||||||
// Copyright (C) 2007 Free Software Foundation, Inc.
|
// Copyright (C) 2007, 2008 Free Software Foundation, Inc.
|
||||||
//
|
//
|
||||||
// This file is part of the GNU ISO C++ Library. This library is free
|
// This file is part of the GNU ISO C++ Library. This library is free
|
||||||
// software; you can redistribute it and/or modify it under the
|
// software; you can redistribute it and/or modify it under the
|
||||||
|
@ -110,7 +110,7 @@ namespace __gnu_debug
|
||||||
const hasher& __hf,
|
const hasher& __hf,
|
||||||
const key_equal& __eql,
|
const key_equal& __eql,
|
||||||
const allocator_type& __a = allocator_type())
|
const allocator_type& __a = allocator_type())
|
||||||
: _Base(__l, __n, __hf, __eql, __a)
|
: _Base(__l, __n, __hf, __eql, __a)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
_Safe_association(const _Base& __x) : _Base(__x) { }
|
_Safe_association(const _Base& __x) : _Base(__x) { }
|
||||||
|
|
|
@ -100,7 +100,7 @@ namespace __debug
|
||||||
set(initializer_list<value_type> __l,
|
set(initializer_list<value_type> __l,
|
||||||
const _Compare& __comp = _Compare(),
|
const _Compare& __comp = _Compare(),
|
||||||
const allocator_type& __a = allocator_type())
|
const allocator_type& __a = allocator_type())
|
||||||
: _Base(__l, __comp, __a), _Safe_base() { }
|
: _Base(__l, __comp, __a), _Safe_base() { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
~set() { }
|
~set() { }
|
||||||
|
|
|
@ -117,8 +117,8 @@ namespace __gnu_debug
|
||||||
|
|
||||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||||
basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
|
basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
|
||||||
: _Base(__l, __a)
|
: _Base(__l, __a)
|
||||||
{ }
|
{ }
|
||||||
#endif // __GXX_EXPERIMENTAL_CXX0X__
|
#endif // __GXX_EXPERIMENTAL_CXX0X__
|
||||||
|
|
||||||
~basic_string() { }
|
~basic_string() { }
|
||||||
|
|
|
@ -109,8 +109,8 @@ namespace __debug
|
||||||
|
|
||||||
vector(initializer_list<value_type> __l,
|
vector(initializer_list<value_type> __l,
|
||||||
const allocator_type& __a = allocator_type())
|
const allocator_type& __a = allocator_type())
|
||||||
: _Base(__l, __a), _Safe_base(),
|
: _Base(__l, __a), _Safe_base(),
|
||||||
_M_guaranteed_capacity(__l.size()) { }
|
_M_guaranteed_capacity(__l.size()) { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
~vector() { }
|
~vector() { }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue