diff options
author | Paolo Carlini <pcarlini@suse.de> | 2004-01-31 23:51:44 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2004-01-31 23:51:44 +0000 |
commit | 8f7ca398cae0078732ebd528bfb1dd558dbd8357 (patch) | |
tree | c9467921bc8b5faeb1f52b40c7b6e0a4e57c73c2 | |
parent | d37eb70511ee90dce4addd1b0f96d7baf0ae6963 (diff) | |
download | gcc-8f7ca398cae0078732ebd528bfb1dd558dbd8357.zip gcc-8f7ca398cae0078732ebd528bfb1dd558dbd8357.tar.gz gcc-8f7ca398cae0078732ebd528bfb1dd558dbd8357.tar.bz2 |
stl_algo.h: Minor additional reformat, add copyright year.
2004-01-31 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_algo.h: Minor additional reformat, add
copyright year.
* include/bits/stl_algobase.h: Add copyright year.
From-SVN: r77058
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_algo.h | 46 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_algobase.h | 2 |
3 files changed, 30 insertions, 24 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ccabde1..08016eb 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,11 @@ 2004-01-31 Paolo Carlini <pcarlini@suse.de> + * include/bits/stl_algo.h: Minor additional reformat, add + copyright year. + * include/bits/stl_algobase.h: Add copyright year. + +2004-01-31 Paolo Carlini <pcarlini@suse.de> + * include/bits/stl_algo.h: Wrap overlong lines, constify a few variables, reformat according to the coding standards. * include/bits/stl_algobase.h: Likewise. diff --git a/libstdc++-v3/include/bits/stl_algo.h b/libstdc++-v3/include/bits/stl_algo.h index 9f0f376..1ea8902 100644 --- a/libstdc++-v3/include/bits/stl_algo.h +++ b/libstdc++-v3/include/bits/stl_algo.h @@ -1,6 +1,6 @@ // Algorithm implementation -*- C++ -*- -// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2003, 2004 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 @@ -2117,17 +2117,17 @@ namespace std return; for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) - { - typename iterator_traits<_RandomAccessIterator>::value_type - __val = *__i; - if (__val < *__first) - { - std::copy_backward(__first, __i, __i + 1); - *__first = __val; - } - else - std::__unguarded_linear_insert(__i, __val); - } + { + typename iterator_traits<_RandomAccessIterator>::value_type + __val = *__i; + if (__val < *__first) + { + std::copy_backward(__first, __i, __i + 1); + *__first = __val; + } + else + std::__unguarded_linear_insert(__i, __val); + } } /** @@ -2143,17 +2143,17 @@ namespace std if (__first == __last) return; for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) - { - typename iterator_traits<_RandomAccessIterator>::value_type - __val = *__i; - if (__comp(__val, *__first)) - { - std::copy_backward(__first, __i, __i + 1); - *__first = __val; - } - else - std::__unguarded_linear_insert(__i, __val, __comp); - } + { + typename iterator_traits<_RandomAccessIterator>::value_type + __val = *__i; + if (__comp(__val, *__first)) + { + std::copy_backward(__first, __i, __i + 1); + *__first = __val; + } + else + std::__unguarded_linear_insert(__i, __val, __comp); + } } /** diff --git a/libstdc++-v3/include/bits/stl_algobase.h b/libstdc++-v3/include/bits/stl_algobase.h index 3a1441f..d1764ac 100644 --- a/libstdc++-v3/include/bits/stl_algobase.h +++ b/libstdc++-v3/include/bits/stl_algobase.h @@ -1,6 +1,6 @@ // Bits and pieces used in algorithms -*- C++ -*- -// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2003, 2004 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 |