64,670
社区成员
发帖
与我相关
我的任务
分享
template< typename T >
const T& Max( const T& first, const T& second )
{
return first > second ? first : second;
}
template <typename T, typename... U >
const T& Max(const T& first, const T& second, const U&... others )
{
return Max( Max( first, second ), others... );
}
[/quote]
template< typename T >
const T& Max( const T& first, const T& second )
{
return first > second ? first : second;
}
template <typename T, typename... U >
const T& Max(const T& first, const T& second, const U&... others )
{
return Max( Max( first, second ), others... );
}