Public Types | Public Member Functions

stream::unique< Input, BinaryPredicate > Class Template Reference

Equivalent to std::unique algorithms. More...

#include <unique.h>

List of all members.

Public Types

typedef Input::value_type value_type
 Standard stream typedef.

Public Member Functions

 unique (Input &input_, BinaryPredicate binary_pred_)
uniqueoperator++ ()
 Standard stream method.
const value_typeoperator* () const
 Standard stream method.
const value_typeoperator-> () const
 Standard stream method.
bool empty () const
 Standard stream method.

Detailed Description

template<class Input, class BinaryPredicate = dummy_cmp_unique_>
class stream::unique< Input, BinaryPredicate >

Equivalent to std::unique algorithms.

Removes consecutive duplicates from the stream. Uses BinaryPredicate to compare elements of the stream


Member Typedef Documentation

template<class Input , class BinaryPredicate = dummy_cmp_unique_>
typedef Input::value_type stream::unique< Input, BinaryPredicate >::value_type

Standard stream typedef.


Member Function Documentation

template<class Input , class BinaryPredicate = dummy_cmp_unique_>
bool stream::unique< Input, BinaryPredicate >::empty (  )  const [inline]

Standard stream method.

template<class Input , class BinaryPredicate = dummy_cmp_unique_>
const value_type& stream::unique< Input, BinaryPredicate >::operator* (  )  const [inline]

Standard stream method.

template<class Input , class BinaryPredicate = dummy_cmp_unique_>
unique& stream::unique< Input, BinaryPredicate >::operator++ (  )  [inline]

Standard stream method.

template<class Input , class BinaryPredicate = dummy_cmp_unique_>
const value_type* stream::unique< Input, BinaryPredicate >::operator-> (  )  const [inline]

Standard stream method.


The documentation for this class was generated from the following file: