From 23286bc8f0955cb25219e267707747ac30c99836 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Tue, 1 Jan 2013 14:55:42 -0800 Subject: [PATCH] Remove xtl::copy_if because: - It is included in C++11 - Nobody was using it anyway >_< --- Sources/Plasma/CoreLib/hsStlUtils.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Sources/Plasma/CoreLib/hsStlUtils.h b/Sources/Plasma/CoreLib/hsStlUtils.h index 99535ea9..9d16236a 100644 --- a/Sources/Plasma/CoreLib/hsStlUtils.h +++ b/Sources/Plasma/CoreLib/hsStlUtils.h @@ -61,21 +61,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com namespace xtl { -// Why oh why doesn't stl have copy_if? -// See Effective STL [Meyers 2001] Item 36. -template< typename InIt, typename OutIt, typename Pred > -OutIt copy_if( InIt srcBegin, InIt srcEnd, OutIt dstBegin, Pred pred ) -{ - while ( srcBegin!=srcEnd ) - { - if ( pred( *srcBegin ) ) - *dstBegin++ = *srcBegin; - ++srcBegin; - } - return dstBegin; -} - - // std::string trim std::string & trimleft(std::string & s, const char * charset=" \t\n\r"); std::wstring & trimleft(std::wstring & s, const wchar_t * charset=L" \t\n\r");