From 3d033e32a96ef8cf6b669d6d094ec36aef64e68d Mon Sep 17 00:00:00 2001 From: paolo Date: Mon, 29 Jan 2007 18:34:46 +0000 Subject: [PATCH] 2007-01-29 Paolo Carlini * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121300 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/include/bits/stl_uninitialized.h | 19 +------------------ 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4a19bde..215dfc8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2007-01-29 Paolo Carlini + + * 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 * include/ext/enc_filebuf.h: Resurrect, update. diff --git a/libstdc++-v3/include/bits/stl_uninitialized.h b/libstdc++-v3/include/bits/stl_uninitialized.h index 2c947f6..a8dbb01 100644 --- a/libstdc++-v3/include/bits/stl_uninitialized.h +++ b/libstdc++-v3/include/bits/stl_uninitialized.h @@ -1,6 +1,6 @@ // 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 @@ -62,8 +62,6 @@ #ifndef _STL_UNINITIALIZED_H #define _STL_UNINITIALIZED_H 1 -#include - _GLIBCXX_BEGIN_NAMESPACE(std) // uninitialized_copy @@ -114,21 +112,6 @@ _GLIBCXX_BEGIN_NAMESPACE(std) _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 -- 2.7.4