vdj_pipe
pipeline for processing DNA sequence data
identity_predicate.hpp
Go to the documentation of this file.
1 
7 #ifndef IDENTITY_PREDICATE_HPP_
8 #define IDENTITY_PREDICATE_HPP_
9 #include <functional>
10 
11 namespace vdj_pipe{
12 
15 template<class T> struct Identity : public std::unary_function<T,T> {
16  T const& operator()(T const& x) const {return x;}
17  T& operator()(T& x) const {return x;}
18 };
19 
20 }//namespace vdj_pipe
21 #endif /* IDENTITY_PREDICATE_HPP_ */
Main namespace of vdj_pipe library.
Definition: sequence_file.hpp:14
why is it not in STL?
Definition: identity_predicate.hpp:15