14 #ifndef STXXL_STREAM_UNIQUE_HEADER
15 #define STXXL_STREAM_UNIQUE_HEADER
34 template <
class Input,
class BinaryPredicate = dummy_cmp_unique>
45 unique(Input& input_, BinaryPredicate binary_pred_)
46 : input(input_), binary_pred(binary_pred_)
57 while (!input.empty() && (binary_pred(current = *input, old_value)))
84 template <
class Input>
94 unique(Input& input_) : input(input_)
105 while (!input.empty() && ((current = *input) == old_value))
125 return input.empty();
135 #endif // !STXXL_STREAM_UNIQUE_HEADER
bool empty() const
Standard stream method.
Input::value_type value_type
Standard stream typedef.
uint_pair & operator++()
prefix increment operator (directly manipulates the integer parts)
#define STXXL_BEGIN_NAMESPACE
unique(Input &input_, BinaryPredicate binary_pred_)
Equivalent to std::unique algorithms.
BinaryPredicate binary_pred
Input::value_type current
#define STXXL_END_NAMESPACE