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
This commit is contained in:
parent
d37eb70511
commit
8f7ca398ca
|
@ -1,3 +1,9 @@
|
||||||
|
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>
|
2004-01-31 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
* include/bits/stl_algo.h: Wrap overlong lines, constify
|
* include/bits/stl_algo.h: Wrap overlong lines, constify
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Algorithm implementation -*- C++ -*-
|
// 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
|
// 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
|
||||||
|
@ -2117,17 +2117,17 @@ namespace std
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i)
|
for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i)
|
||||||
{
|
{
|
||||||
typename iterator_traits<_RandomAccessIterator>::value_type
|
typename iterator_traits<_RandomAccessIterator>::value_type
|
||||||
__val = *__i;
|
__val = *__i;
|
||||||
if (__val < *__first)
|
if (__val < *__first)
|
||||||
{
|
{
|
||||||
std::copy_backward(__first, __i, __i + 1);
|
std::copy_backward(__first, __i, __i + 1);
|
||||||
*__first = __val;
|
*__first = __val;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
std::__unguarded_linear_insert(__i, __val);
|
std::__unguarded_linear_insert(__i, __val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2143,17 +2143,17 @@ namespace std
|
||||||
if (__first == __last) return;
|
if (__first == __last) return;
|
||||||
|
|
||||||
for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i)
|
for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i)
|
||||||
{
|
{
|
||||||
typename iterator_traits<_RandomAccessIterator>::value_type
|
typename iterator_traits<_RandomAccessIterator>::value_type
|
||||||
__val = *__i;
|
__val = *__i;
|
||||||
if (__comp(__val, *__first))
|
if (__comp(__val, *__first))
|
||||||
{
|
{
|
||||||
std::copy_backward(__first, __i, __i + 1);
|
std::copy_backward(__first, __i, __i + 1);
|
||||||
*__first = __val;
|
*__first = __val;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
std::__unguarded_linear_insert(__i, __val, __comp);
|
std::__unguarded_linear_insert(__i, __val, __comp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Bits and pieces used in algorithms -*- C++ -*-
|
// 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
|
// 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
|
||||||
|
|
Loading…
Reference in New Issue