Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions include/boost/algorithm/cxx14/equal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
#define BOOST_ALGORITHM_EQUAL_HPP

#include <algorithm> // for std::equal
#include <functional> // for std::binary_function
#include <iterator>

namespace boost { namespace algorithm {

namespace detail {

template <class T1, class T2>
struct eq : public std::binary_function<T1, T2, bool> {
struct eq {
typedef bool result_type;
bool operator () ( const T1& v1, const T2& v2 ) const { return v1 == v2 ;}
};
};

template <class RandomAccessIterator1, class RandomAccessIterator2, class BinaryPredicate>
bool equal ( RandomAccessIterator1 first1, RandomAccessIterator1 last1,
Expand Down
5 changes: 2 additions & 3 deletions include/boost/algorithm/string/detail/case_conv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#include <boost/algorithm/string/config.hpp>
#include <locale>
#include <functional>

#include <boost/type_traits/make_unsigned.hpp>

Expand All @@ -30,7 +29,7 @@ namespace boost {

// a tolower functor
template<typename CharT>
struct to_lowerF : public std::unary_function<CharT, CharT>
struct to_lowerF
{
// Constructor
to_lowerF( const std::locale& Loc ) : m_Loc( &Loc ) {}
Expand All @@ -50,7 +49,7 @@ namespace boost {

// a toupper functor
template<typename CharT>
struct to_upperF : public std::unary_function<CharT, CharT>
struct to_upperF
{
// Constructor
to_upperF( const std::locale& Loc ) : m_Loc( &Loc ) {}
Expand Down
4 changes: 1 addition & 3 deletions include/boost/algorithm/string/detail/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#define BOOST_STRING_UTIL_DETAIL_HPP

#include <boost/algorithm/string/config.hpp>
#include <functional>
#include <boost/range/iterator_range_core.hpp>

namespace boost {
Expand Down Expand Up @@ -89,8 +88,7 @@ namespace boost {
template<
typename SeqT,
typename IteratorT=BOOST_STRING_TYPENAME SeqT::const_iterator >
struct copy_iterator_rangeF :
public std::unary_function< iterator_range<IteratorT>, SeqT >
struct copy_iterator_rangeF
{
SeqT operator()( const iterator_range<IteratorT>& Range ) const
{
Expand Down
3 changes: 1 addition & 2 deletions test/all_of_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>

#include <functional>
#include <vector>
#include <list>

template<typename T>
struct is_ : public std::unary_function<T, bool> {
struct is_ {
is_ ( T v ) : val_ ( v ) {}
~is_ () {}
bool operator () ( T comp ) const { return val_ == comp; }
Expand Down
3 changes: 1 addition & 2 deletions test/any_of_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>

#include <functional>
#include <vector>
#include <list>

template<typename T>
struct is_ : public std::unary_function<T, bool> {
struct is_ {
is_ ( T v ) : val_ ( v ) {}
~is_ () {}
bool operator () ( T comp ) const { return val_ == comp; }
Expand Down
3 changes: 1 addition & 2 deletions test/none_of_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>

#include <functional>
#include <vector>
#include <list>

template<typename T>
struct is_ : public std::unary_function<T, bool> {
struct is_ {
is_ ( T v ) : val_ ( v ) {}
~is_ () {}
bool operator () ( T comp ) const { return val_ == comp; }
Expand Down
3 changes: 1 addition & 2 deletions test/one_of_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>

#include <functional>
#include <vector>
#include <list>

template<typename T>
struct is_ : public std::unary_function<T, bool> {
struct is_ {
is_ ( T v ) : val_ ( v ) {}
~is_ () {}
bool operator () ( T comp ) const { return val_ == comp; }
Expand Down