mirror of
https://github.com/boostorg/range.git
synced 2025-07-05 00:36:33 +02:00
Boost.Range merge from trunk to release.
This is motivated by the need to correct the istream_range, to correct the adaptors.hpp header file, and correct the return types of various range algorithms. [SVN r61517]
This commit is contained in:
@ -37,14 +37,14 @@ namespace boost
|
||||
}
|
||||
|
||||
template<range_return_value return_type>
|
||||
struct test_range
|
||||
{
|
||||
template<class Container, class Policy>
|
||||
BOOST_DEDUCED_TYPENAME range_return<Container,return_type>::type
|
||||
operator()(Policy&, Container& cont)
|
||||
{
|
||||
return boost::max_element<return_type>(cont);
|
||||
}
|
||||
struct test_range
|
||||
{
|
||||
template<class Container, class Policy>
|
||||
BOOST_DEDUCED_TYPENAME range_return<Container,return_type>::type
|
||||
operator()(Policy&, Container& cont)
|
||||
{
|
||||
return boost::max_element<return_type>(cont);
|
||||
}
|
||||
};
|
||||
|
||||
template< class Container >
|
||||
@ -66,17 +66,17 @@ namespace boost
|
||||
return boost::max_element(cont, Pred());
|
||||
}
|
||||
|
||||
Pred pred() const { return Pred(); }
|
||||
Pred pred() const { return Pred(); }
|
||||
|
||||
template< range_return_value return_type >
|
||||
struct test_range
|
||||
{
|
||||
template< class Container, class Policy >
|
||||
BOOST_DEDUCED_TYPENAME range_return<Container,return_type>::type
|
||||
operator()(Policy& policy, Container& cont)
|
||||
{
|
||||
return boost::max_element<return_type>(cont, policy.pred());
|
||||
}
|
||||
struct test_range
|
||||
{
|
||||
template< class Container, class Policy >
|
||||
BOOST_DEDUCED_TYPENAME range_return<Container,return_type>::type
|
||||
operator()(Policy& policy, Container& cont)
|
||||
{
|
||||
return boost::max_element<return_type>(cont, policy.pred());
|
||||
}
|
||||
};
|
||||
|
||||
template< class Container >
|
||||
|
Reference in New Issue
Block a user