+2007-01-29 Paolo Carlini <pcarlini@suse.de>
+
+ * include/bits/stl_uninitialized.h (uninitialized_copy(const char*,
+ const char*, char*), uninitialized_copy(const wchar_t*, const wchar_t*,
+ wchar_t*)): Remove, just forward to std::copy.
+
2007-01-29 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/enc_filebuf.h: Resurrect, update.
// Raw memory manipulators -*- C++ -*-
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
#ifndef _STL_UNINITIALIZED_H
#define _STL_UNINITIALIZED_H 1
-#include <cstring>
-
_GLIBCXX_BEGIN_NAMESPACE(std)
// uninitialized_copy
_Is_POD());
}
- inline char*
- uninitialized_copy(const char* __first, const char* __last, char* __result)
- {
- std::memmove(__result, __first, __last - __first);
- return __result + (__last - __first);
- }
-
- inline wchar_t*
- uninitialized_copy(const wchar_t* __first, const wchar_t* __last,
- wchar_t* __result)
- {
- std::memmove(__result, __first, sizeof(wchar_t) * (__last - __first));
- return __result + (__last - __first);
- }
-
// Valid if copy construction is equivalent to assignment, and if the
// destructor is trivial.
template<typename _ForwardIterator, typename _Tp>