Subject: [Boost-bugs] [Boost C++ Libraries] #4458: is_iequal optimization
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-21 12:42:10
#4458: is_iequal optimization
----------------------------------+-----------------------------------------
Reporter: olafvdspek@⦠| Owner: pavol_droba
Type: Feature Requests | Status: new
Milestone: Boost 1.44.0 | Component: string_algo
Version: Boost 1.43.0 | Severity: Optimization
Keywords: |
----------------------------------+-----------------------------------------
Wouldn't return Arg1 == Arg2 ||
std::toupper<T1>(Arg1,m_Loc)==std::toupper<T2>(Arg2,m_Loc);
be faster, since it might avoid the toupper calls?
{{{
template< typename T1, typename T2 >
bool operator()( const T1& Arg1, const T2& Arg2 ) const
{
#if defined(__BORLANDC__) && (__BORLANDC__ >= 0x560) &&
(__BORLANDC__ <= 0x564) && !defined(_USE_OLD_RW_STL)
return std::toupper(Arg1)==std::toupper(Arg2);
#else
return
std::toupper<T1>(Arg1,m_Loc)==std::toupper<T2>(Arg2,m_Loc);
#endif
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4458> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC