Support Class Library
A set of tools providing classes and utility
unique.h
Go to the documentation of this file.
1 #pragma once
4 
5 namespace scl{
6  namespace stream{
7  namespace operators{
8  namespace details{
12  struct unique_toolbox{};
13  }
14 
20  return {};
21  }
22 
30  template <class T, class U>
32  return lhs | uniqueBy_<T, T>([](const T& t) -> const T&{
33  return t;
34  });
35  }
36  }
37  };
38 }
Toolbox tag for unique operations.
Definition: unique.h:12
details::unique_toolbox unique()
Remove duplicates from a stream.
Definition: unique.h:19
Global namespace of the SCL.
Definition: alias.hpp:3
Stream< T > operator|(const Stream< T > &lhs, const details::filter_toolbox< T > &rhs)
Pipe operator overload for filter operations.
Definition: filter.h:117
Class representing a stream of data.
Definition: Stream.h:15