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>
|
||||
|
||||
* include/std/utility: Include <initializer_list>, per the current WP.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// 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.
|
||||
//
|
||||
// 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,
|
||||
const allocator_type& __a = allocator_type())
|
||||
: _Base(__a)
|
||||
: _Base(__a)
|
||||
{
|
||||
_M_initialize_range(__l.begin(), __l.end(),
|
||||
random_access_iterator_tag());
|
||||
|
|
|
@ -553,7 +553,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
|
|||
*/
|
||||
list(initializer_list<value_type> __l,
|
||||
const allocator_type& __a = allocator_type())
|
||||
: _Base(__a)
|
||||
: _Base(__a)
|
||||
{ _M_initialize_dispatch(__l.begin(), __l.end(), __false_type()); }
|
||||
#endif
|
||||
|
||||
|
|
|
@ -201,7 +201,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
|
|||
map(initializer_list<value_type> __l,
|
||||
const _Compare& __c = _Compare(),
|
||||
const allocator_type& __a = allocator_type())
|
||||
: _M_t(__c, __a)
|
||||
: _M_t(__c, __a)
|
||||
{ _M_t._M_insert_unique(__l.begin(), __l.end()); }
|
||||
#endif
|
||||
|
||||
|
|
|
@ -198,7 +198,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
|
|||
multimap(initializer_list<value_type> __l,
|
||||
const _Compare& __comp = _Compare(),
|
||||
const allocator_type& __a = allocator_type())
|
||||
: _M_t(__comp, __a)
|
||||
: _M_t(__comp, __a)
|
||||
{ _M_t._M_insert_equal(__l.begin(), __l.end()); }
|
||||
#endif
|
||||
|
||||
|
|
|
@ -211,7 +211,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
|
|||
multiset(initializer_list<value_type> __l,
|
||||
const _Compare& __comp = _Compare(),
|
||||
const allocator_type& __a = allocator_type())
|
||||
: _M_t(__comp, __a)
|
||||
: _M_t(__comp, __a)
|
||||
{ _M_t._M_insert_equal(__l.begin(), __l.end()); }
|
||||
#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
|
||||
* otherwise (where N is @a l.size()).
|
||||
*/
|
||||
set(initializer_list<value_type> __l,
|
||||
const _Compare& __comp = _Compare(),
|
||||
const allocator_type& __a = allocator_type())
|
||||
: _M_t(__comp, __a)
|
||||
set(initializer_list<value_type> __l,
|
||||
const _Compare& __comp = _Compare(),
|
||||
const allocator_type& __a = allocator_type())
|
||||
: _M_t(__comp, __a)
|
||||
{ _M_t._M_insert_unique(__l.begin(), __l.end()); }
|
||||
#endif
|
||||
|
||||
|
|
|
@ -277,11 +277,11 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
|
|||
*/
|
||||
vector(initializer_list<value_type> __l,
|
||||
const allocator_type& __a = allocator_type())
|
||||
: _Base(__a)
|
||||
{
|
||||
_M_range_initialize(__l.begin(), __l.end(),
|
||||
random_access_iterator_tag());
|
||||
}
|
||||
: _Base(__a)
|
||||
{
|
||||
_M_range_initialize(__l.begin(), __l.end(),
|
||||
random_access_iterator_tag());
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
|
|
@ -102,7 +102,7 @@ namespace __debug
|
|||
map(initializer_list<value_type> __l,
|
||||
const _Compare& __c = _Compare(),
|
||||
const allocator_type& __a = allocator_type())
|
||||
: _Base(__l, __c, __a), _Safe_base() { }
|
||||
: _Base(__l, __c, __a), _Safe_base() { }
|
||||
#endif
|
||||
|
||||
~map() { }
|
||||
|
|
|
@ -103,7 +103,7 @@ namespace __debug
|
|||
multimap(initializer_list<value_type> __l,
|
||||
const _Compare& __c = _Compare(),
|
||||
const allocator_type& __a = allocator_type())
|
||||
: _Base(__l, __c, __a), _Safe_base() { }
|
||||
: _Base(__l, __c, __a), _Safe_base() { }
|
||||
#endif
|
||||
|
||||
~multimap() { }
|
||||
|
|
|
@ -100,7 +100,7 @@ namespace __debug
|
|||
multiset(initializer_list<value_type> __l,
|
||||
const _Compare& __comp = _Compare(),
|
||||
const allocator_type& __a = allocator_type())
|
||||
: _Base(__l, __comp, __a), _Safe_base() { }
|
||||
: _Base(__l, __comp, __a), _Safe_base() { }
|
||||
#endif
|
||||
|
||||
~multiset() { }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
|
@ -110,7 +110,7 @@ namespace __gnu_debug
|
|||
const hasher& __hf,
|
||||
const key_equal& __eql,
|
||||
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) { }
|
||||
|
|
|
@ -100,7 +100,7 @@ namespace __debug
|
|||
set(initializer_list<value_type> __l,
|
||||
const _Compare& __comp = _Compare(),
|
||||
const allocator_type& __a = allocator_type())
|
||||
: _Base(__l, __comp, __a), _Safe_base() { }
|
||||
: _Base(__l, __comp, __a), _Safe_base() { }
|
||||
#endif
|
||||
|
||||
~set() { }
|
||||
|
|
|
@ -117,8 +117,8 @@ namespace __gnu_debug
|
|||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
|
||||
: _Base(__l, __a)
|
||||
{ }
|
||||
: _Base(__l, __a)
|
||||
{ }
|
||||
#endif // __GXX_EXPERIMENTAL_CXX0X__
|
||||
|
||||
~basic_string() { }
|
||||
|
|
|
@ -109,8 +109,8 @@ namespace __debug
|
|||
|
||||
vector(initializer_list<value_type> __l,
|
||||
const allocator_type& __a = allocator_type())
|
||||
: _Base(__l, __a), _Safe_base(),
|
||||
_M_guaranteed_capacity(__l.size()) { }
|
||||
: _Base(__l, __a), _Safe_base(),
|
||||
_M_guaranteed_capacity(__l.size()) { }
|
||||
#endif
|
||||
|
||||
~vector() { }
|
||||
|
|
Loading…
Add table
Reference in a new issue