Commit e64738b3 by Bernardo Innocenti Committed by Bernardo Innocenti

algo.h, [...]: Remove trailing whitespace.

	* include/backward/algo.h, include/backward/algobase.h,
	include/backward/alloc.h, include/backward/complex.h,
	include/backward/defalloc.h, include/backward/function.h,
	include/backward/iterator.h, include/backward/new.h,
	include/backward/ostream.h, include/backward/queue.h,
	include/backward/rope.h, include/backward/stream.h,
	include/backward/streambuf.h, include/backward/strstream,
	include/backward/tempbuf.h, include/backward/tree.h,
	include/backward/vector.h: Remove trailing whitespace.

From-SVN: r74455
parent a9baceb1
2003-12-09 Bernardo Innocenti <bernie@develer.com>
* include/backward/algo.h, include/backward/algobase.h,
include/backward/alloc.h, include/backward/complex.h,
include/backward/defalloc.h, include/backward/function.h,
include/backward/iterator.h, include/backward/new.h,
include/backward/ostream.h, include/backward/queue.h,
include/backward/rope.h, include/backward/stream.h,
include/backward/streambuf.h, include/backward/strstream,
include/backward/tempbuf.h, include/backward/tree.h,
include/backward/vector.h: Remove trailing whitespace.
2003-12-08 Paolo Carlini <pcarlini@suse.de> 2003-12-08 Paolo Carlini <pcarlini@suse.de>
* config/locale/generic/c_locale.cc (__convert_to_v(long&), * config/locale/generic/c_locale.cc (__convert_to_v(long&),
......
...@@ -66,57 +66,57 @@ ...@@ -66,57 +66,57 @@
#include <ext/numeric> #include <ext/numeric>
// Names from <stl_algo.h> // Names from <stl_algo.h>
using std::for_each; using std::for_each;
using std::find; using std::find;
using std::find_if; using std::find_if;
using std::adjacent_find; using std::adjacent_find;
using std::count; using std::count;
using std::count_if; using std::count_if;
using std::search; using std::search;
using std::search_n; using std::search_n;
using std::swap_ranges; using std::swap_ranges;
using std::transform; using std::transform;
using std::replace; using std::replace;
using std::replace_if; using std::replace_if;
using std::replace_copy; using std::replace_copy;
using std::replace_copy_if; using std::replace_copy_if;
using std::generate; using std::generate;
using std::generate_n; using std::generate_n;
using std::remove; using std::remove;
using std::remove_if; using std::remove_if;
using std::remove_copy; using std::remove_copy;
using std::remove_copy_if; using std::remove_copy_if;
using std::unique; using std::unique;
using std::unique_copy; using std::unique_copy;
using std::reverse; using std::reverse;
using std::reverse_copy; using std::reverse_copy;
using std::rotate; using std::rotate;
using std::rotate_copy; using std::rotate_copy;
using std::random_shuffle; using std::random_shuffle;
using std::partition; using std::partition;
using std::stable_partition; using std::stable_partition;
using std::sort; using std::sort;
using std::stable_sort; using std::stable_sort;
using std::partial_sort; using std::partial_sort;
using std::partial_sort_copy; using std::partial_sort_copy;
using std::nth_element; using std::nth_element;
using std::lower_bound; using std::lower_bound;
using std::upper_bound; using std::upper_bound;
using std::equal_range; using std::equal_range;
using std::binary_search; using std::binary_search;
using std::merge; using std::merge;
using std::inplace_merge; using std::inplace_merge;
using std::includes; using std::includes;
using std::set_union; using std::set_union;
using std::set_intersection; using std::set_intersection;
using std::set_difference; using std::set_difference;
using std::set_symmetric_difference; using std::set_symmetric_difference;
using std::min_element; using std::min_element;
using std::max_element; using std::max_element;
using std::next_permutation; using std::next_permutation;
using std::prev_permutation; using std::prev_permutation;
using std::find_first_of; using std::find_first_of;
using std::find_end; using std::find_end;
// Names from stl_heap.h // Names from stl_heap.h
using std::push_heap; using std::push_heap;
...@@ -125,22 +125,22 @@ using std::make_heap; ...@@ -125,22 +125,22 @@ using std::make_heap;
using std::sort_heap; using std::sort_heap;
// Names from stl_numeric.h // Names from stl_numeric.h
using std::accumulate; using std::accumulate;
using std::inner_product; using std::inner_product;
using std::partial_sum; using std::partial_sum;
using std::adjacent_difference; using std::adjacent_difference;
// Names from ext/algorithm // Names from ext/algorithm
using __gnu_cxx::random_sample; using __gnu_cxx::random_sample;
using __gnu_cxx::random_sample_n; using __gnu_cxx::random_sample_n;
using __gnu_cxx::is_sorted; using __gnu_cxx::is_sorted;
using __gnu_cxx::is_heap; using __gnu_cxx::is_heap;
using __gnu_cxx::count; // Extension returning void using __gnu_cxx::count; // Extension returning void
using __gnu_cxx::count_if; // Extension returning void using __gnu_cxx::count_if; // Extension returning void
// Names from ext/numeric // Names from ext/numeric
using __gnu_cxx::power; using __gnu_cxx::power;
using __gnu_cxx::iota; using __gnu_cxx::iota;
#endif /* _BACKWARD_ALGO_H */ #endif /* _BACKWARD_ALGO_H */
......
...@@ -64,17 +64,17 @@ ...@@ -64,17 +64,17 @@
#include <ext/memory> #include <ext/memory>
// Names from stl_algobase.h // Names from stl_algobase.h
using std::iter_swap; using std::iter_swap;
using std::swap; using std::swap;
using std::min; using std::min;
using std::max; using std::max;
using std::copy; using std::copy;
using std::copy_backward; using std::copy_backward;
using std::fill; using std::fill;
using std::fill_n; using std::fill_n;
using std::mismatch; using std::mismatch;
using std::equal; using std::equal;
using std::lexicographical_compare; using std::lexicographical_compare;
// Names from stl_uninitialized.h // Names from stl_uninitialized.h
using std::uninitialized_copy; using std::uninitialized_copy;
...@@ -82,8 +82,8 @@ using std::uninitialized_fill; ...@@ -82,8 +82,8 @@ using std::uninitialized_fill;
using std::uninitialized_fill_n; using std::uninitialized_fill_n;
// Names from ext/algorithm // Names from ext/algorithm
using __gnu_cxx::copy_n; using __gnu_cxx::copy_n;
using __gnu_cxx::lexicographical_compare_3way; using __gnu_cxx::lexicographical_compare_3way;
// Names from ext/memory // Names from ext/memory
using __gnu_cxx::uninitialized_copy_n; using __gnu_cxx::uninitialized_copy_n;
......
...@@ -49,11 +49,11 @@ ...@@ -49,11 +49,11 @@
#include <ext/debug_allocator.h> #include <ext/debug_allocator.h>
#include <ext/malloc_allocator.h> #include <ext/malloc_allocator.h>
using __gnu_cxx::__malloc_alloc; using __gnu_cxx::__malloc_alloc;
using __gnu_cxx::__debug_alloc; using __gnu_cxx::__debug_alloc;
using __gnu_cxx::__pool_alloc; using __gnu_cxx::__pool_alloc;
using std::__alloc; using std::__alloc;
using std::__simple_alloc; using std::__simple_alloc;
using std::allocator; using std::allocator;
#endif #endif
...@@ -32,9 +32,9 @@ ...@@ -32,9 +32,9 @@
#include <complex> #include <complex>
using std::complex; using std::complex;
typedef complex<float> float_complex; typedef complex<float> float_complex;
typedef complex<double> double_complex; typedef complex<double> double_complex;
typedef complex<long double> long_double_complex; typedef complex<long double> long_double_complex;
#endif #endif
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
// This file WILL BE REMOVED in a future release. // This file WILL BE REMOVED in a future release.
// //
// DO NOT USE THIS FILE unless you have an old container implementation // DO NOT USE THIS FILE unless you have an old container implementation
// that requires an allocator with the HP-style interface. // that requires an allocator with the HP-style interface.
// //
// Standard-conforming allocators have a very different interface. The // Standard-conforming allocators have a very different interface. The
// standard default allocator is declared in the header <memory>. // standard default allocator is declared in the header <memory>.
...@@ -59,8 +59,8 @@ ...@@ -59,8 +59,8 @@
#include "new.h" #include "new.h"
#include <stddef.h> #include <stddef.h>
#include <stdlib.h> #include <stdlib.h>
#include <limits.h> #include <limits.h>
#include "iostream.h" #include "iostream.h"
#include "algobase.h" #include "algobase.h"
...@@ -69,7 +69,7 @@ inline _Tp* allocate(ptrdiff_t __size, _Tp*) { ...@@ -69,7 +69,7 @@ inline _Tp* allocate(ptrdiff_t __size, _Tp*) {
set_new_handler(0); set_new_handler(0);
_Tp* __tmp = (_Tp*)(::operator new((size_t)(__size * sizeof(_Tp)))); _Tp* __tmp = (_Tp*)(::operator new((size_t)(__size * sizeof(_Tp))));
if (__tmp == 0) { if (__tmp == 0) {
cerr << "out of memory" << endl; cerr << "out of memory" << endl;
exit(1); exit(1);
} }
return __tmp; return __tmp;
...@@ -91,19 +91,19 @@ public: ...@@ -91,19 +91,19 @@ public:
typedef const _Tp& const_reference; typedef const _Tp& const_reference;
typedef size_t size_type; typedef size_t size_type;
typedef ptrdiff_t difference_type; typedef ptrdiff_t difference_type;
pointer allocate(size_type __n) { pointer allocate(size_type __n) {
return ::allocate((difference_type)__n, (pointer)0); return ::allocate((difference_type)__n, (pointer)0);
} }
void deallocate(pointer __p) { ::deallocate(__p); } void deallocate(pointer __p) { ::deallocate(__p); }
pointer address(reference __x) { return (pointer)&__x; } pointer address(reference __x) { return (pointer)&__x; }
const_pointer const_address(const_reference __x) { const_pointer const_address(const_reference __x) {
return (const_pointer)&__x; return (const_pointer)&__x;
} }
size_type init_page_size() { size_type init_page_size() {
return max(size_type(1), size_type(4096/sizeof(_Tp))); return max(size_type(1), size_type(4096/sizeof(_Tp)));
} }
size_type max_size() const { size_type max_size() const {
return max(size_type(1), size_type(UINT_MAX/sizeof(_Tp))); return max(size_type(1), size_type(UINT_MAX/sizeof(_Tp)));
} }
}; };
......
...@@ -63,65 +63,65 @@ ...@@ -63,65 +63,65 @@
#include <ext/functional> #include <ext/functional>
// Names from stl_function.h // Names from stl_function.h
using std::unary_function; using std::unary_function;
using std::binary_function; using std::binary_function;
using std::plus; using std::plus;
using std::minus; using std::minus;
using std::multiplies; using std::multiplies;
using std::divides; using std::divides;
using std::modulus; using std::modulus;
using std::negate; using std::negate;
using std::equal_to; using std::equal_to;
using std::not_equal_to; using std::not_equal_to;
using std::greater; using std::greater;
using std::less; using std::less;
using std::greater_equal; using std::greater_equal;
using std::less_equal; using std::less_equal;
using std::logical_and; using std::logical_and;
using std::logical_or; using std::logical_or;
using std::logical_not; using std::logical_not;
using std::unary_negate; using std::unary_negate;
using std::binary_negate; using std::binary_negate;
using std::not1; using std::not1;
using std::not2; using std::not2;
using std::binder1st; using std::binder1st;
using std::binder2nd; using std::binder2nd;
using std::bind1st; using std::bind1st;
using std::bind2nd; using std::bind2nd;
using std::pointer_to_unary_function; using std::pointer_to_unary_function;
using std::pointer_to_binary_function; using std::pointer_to_binary_function;
using std::ptr_fun; using std::ptr_fun;
using std::mem_fun_t; using std::mem_fun_t;
using std::const_mem_fun_t; using std::const_mem_fun_t;
using std::mem_fun_ref_t; using std::mem_fun_ref_t;
using std::const_mem_fun_ref_t; using std::const_mem_fun_ref_t;
using std::mem_fun1_t; using std::mem_fun1_t;
using std::const_mem_fun1_t; using std::const_mem_fun1_t;
using std::mem_fun1_ref_t; using std::mem_fun1_ref_t;
using std::const_mem_fun1_ref_t; using std::const_mem_fun1_ref_t;
using std::mem_fun; using std::mem_fun;
using std::mem_fun_ref; using std::mem_fun_ref;
// Names from ext/functional // Names from ext/functional
using __gnu_cxx::identity_element; using __gnu_cxx::identity_element;
using __gnu_cxx::unary_compose; using __gnu_cxx::unary_compose;
using __gnu_cxx::binary_compose; using __gnu_cxx::binary_compose;
using __gnu_cxx::compose1; using __gnu_cxx::compose1;
using __gnu_cxx::compose2; using __gnu_cxx::compose2;
using __gnu_cxx::identity; using __gnu_cxx::identity;
using __gnu_cxx::select1st; using __gnu_cxx::select1st;
using __gnu_cxx::select2nd; using __gnu_cxx::select2nd;
using __gnu_cxx::project1st; using __gnu_cxx::project1st;
using __gnu_cxx::project2nd; using __gnu_cxx::project2nd;
using __gnu_cxx::constant_void_fun; using __gnu_cxx::constant_void_fun;
using __gnu_cxx::constant_unary_fun; using __gnu_cxx::constant_unary_fun;
using __gnu_cxx::constant_binary_fun; using __gnu_cxx::constant_binary_fun;
using __gnu_cxx::constant0; using __gnu_cxx::constant0;
using __gnu_cxx::constant1; using __gnu_cxx::constant1;
using __gnu_cxx::constant2; using __gnu_cxx::constant2;
using __gnu_cxx::subtractive_rng; using __gnu_cxx::subtractive_rng;
using __gnu_cxx::mem_fun1; using __gnu_cxx::mem_fun1;
using __gnu_cxx::mem_fun1_ref; using __gnu_cxx::mem_fun1_ref;
#endif /* _BACKWARD_FUNCTION_H */ #endif /* _BACKWARD_FUNCTION_H */
......
...@@ -116,7 +116,7 @@ template<class _Iter> ...@@ -116,7 +116,7 @@ template<class _Iter>
using std::distance; using std::distance;
using __gnu_cxx::distance; // 3-parameter extension using __gnu_cxx::distance; // 3-parameter extension
using std::advance; using std::advance;
using std::insert_iterator; using std::insert_iterator;
using std::front_insert_iterator; using std::front_insert_iterator;
...@@ -145,7 +145,7 @@ template <class _Tp> ...@@ -145,7 +145,7 @@ template <class _Tp>
inline void inline void
destroy(_Tp* __pointer) destroy(_Tp* __pointer)
{ std::_Destroy(__pointer); } { std::_Destroy(__pointer); }
template <class _ForwardIterator> template <class _ForwardIterator>
inline void inline void
destroy(_ForwardIterator __first, _ForwardIterator __last) destroy(_ForwardIterator __first, _ForwardIterator __last)
......
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
// it under the terms of the GNU General Public License as published by // it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2, or (at your option) // the Free Software Foundation; either version 2, or (at your option)
// any later version. // any later version.
// //
// GCC is distributed in the hope that it will be useful, // GCC is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// //
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with GCC; see the file COPYING. If not, write to // along with GCC; see the file COPYING. If not, write to
// the Free Software Foundation, 59 Temple Place - Suite 330, // the Free Software Foundation, 59 Temple Place - Suite 330,
...@@ -39,4 +39,4 @@ using std::nothrow; ...@@ -39,4 +39,4 @@ using std::nothrow;
using std::new_handler; using std::new_handler;
using std::set_new_handler; using std::set_new_handler;
#endif #endif
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include "backward_warning.h" #include "backward_warning.h"
#include "iostream.h" #include "iostream.h"
#endif #endif
// Local Variables: // Local Variables:
// mode:C++ // mode:C++
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
using std::queue; using std::queue;
using std::priority_queue; using std::priority_queue;
#endif #endif
// Local Variables: // Local Variables:
// mode:C++ // mode:C++
......
...@@ -44,14 +44,14 @@ ...@@ -44,14 +44,14 @@
#define _BACKWARD_ROPE_H 1 #define _BACKWARD_ROPE_H 1
#include "backward_warning.h" #include "backward_warning.h"
#include "hashtable.h" #include "hashtable.h"
#include <ext/rope> #include <ext/rope>
using __gnu_cxx::char_producer; using __gnu_cxx::char_producer;
using __gnu_cxx::sequence_buffer; using __gnu_cxx::sequence_buffer;
using __gnu_cxx::rope; using __gnu_cxx::rope;
using __gnu_cxx::crope; using __gnu_cxx::crope;
using __gnu_cxx::wrope; using __gnu_cxx::wrope;
#endif /* _BACKWARD_ROPE_H */ #endif /* _BACKWARD_ROPE_H */
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include "backward_warning.h" #include "backward_warning.h"
#include "iostream.h" #include "iostream.h"
#endif #endif
// Local Variables: // Local Variables:
// mode:C++ // mode:C++
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
using std::streambuf; using std::streambuf;
#endif #endif
// Local Variables: // Local Variables:
// mode:C++ // mode:C++
......
...@@ -61,12 +61,12 @@ namespace std ...@@ -61,12 +61,12 @@ namespace std
// Note that this class is not a template. // Note that this class is not a template.
class strstreambuf : public basic_streambuf<char, char_traits<char> > class strstreambuf : public basic_streambuf<char, char_traits<char> >
{ {
public: public:
// Types. // Types.
typedef char_traits<char> _Traits; typedef char_traits<char> _Traits;
typedef basic_streambuf<char, _Traits> _Base; typedef basic_streambuf<char, _Traits> _Base;
public: public:
// Constructor, destructor // Constructor, destructor
explicit strstreambuf(streamsize __initial_capacity = 0); explicit strstreambuf(streamsize __initial_capacity = 0);
strstreambuf(void* (*__alloc)(size_t), void (*__free)(void*)); strstreambuf(void* (*__alloc)(size_t), void (*__free)(void*));
...@@ -97,7 +97,7 @@ namespace std ...@@ -97,7 +97,7 @@ namespace std
virtual pos_type seekpos(pos_type __pos, ios_base::openmode __mode virtual pos_type seekpos(pos_type __pos, ios_base::openmode __mode
= ios_base::in | ios_base::out); = ios_base::in | ios_base::out);
private: private:
// Dynamic allocation, possibly using _M_alloc_fun and _M_free_fun. // Dynamic allocation, possibly using _M_alloc_fun and _M_free_fun.
char* _M_alloc(size_t); char* _M_alloc(size_t);
void _M_free(char*); void _M_free(char*);
...@@ -105,7 +105,7 @@ namespace std ...@@ -105,7 +105,7 @@ namespace std
// Helper function used in constructors. // Helper function used in constructors.
void _M_setup(char* __get, char* __put, streamsize __n); void _M_setup(char* __get, char* __put, streamsize __n);
private: private:
// Data members. // Data members.
void* (*_M_alloc_fun)(size_t); void* (*_M_alloc_fun)(size_t);
void (*_M_free_fun)(void*); void (*_M_free_fun)(void*);
...@@ -171,4 +171,4 @@ namespace std ...@@ -171,4 +171,4 @@ namespace std
strstreambuf _M_buf; strstreambuf _M_buf;
}; };
} // namespace std } // namespace std
#endif #endif
...@@ -60,9 +60,9 @@ ...@@ -60,9 +60,9 @@
#include "pair.h" #include "pair.h"
#include "iterator.h" #include "iterator.h"
#include <limits.h> #include <limits.h>
#include <stddef.h> #include <stddef.h>
#include <stdlib.h> #include <stdlib.h>
#include <bits/type_traits.h> #include <bits/type_traits.h>
#include <bits/stl_construct.h> #include <bits/stl_construct.h>
#include <bits/stl_uninitialized.h> #include <bits/stl_uninitialized.h>
#include <ext/memory> #include <ext/memory>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
using __gnu_cxx::rb_tree; using __gnu_cxx::rb_tree;
#endif #endif
// Local Variables: // Local Variables:
// mode:C++ // mode:C++
// End: // End:
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#include "backward_warning.h" #include "backward_warning.h"
#include "algobase.h" #include "algobase.h"
#include "alloc.h" #include "alloc.h"
#include <vector> #include <vector>
using std::vector; using std::vector;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment