// This is core/vnl/vnl_identity.h #ifndef vnl_identity_h_ #define vnl_identity_h_ #ifdef VCL_NEEDS_PRAGMA_INTERFACE #pragma interface #endif //: // \file // \brief Contains class vnl_identity // \author Andrew W. Fitzgibbon, Oxford RRG // \date 07 Dec 98 // // \verbatim // Modifications // LSB (Manchester) 23/1/01 Tidied documentation // \endverbatim //----------------------------------------------------------------------------- #include #include "vnl/vnl_export.h" template class VNL_TEMPLATE_EXPORT vnl_identity : public vnl_unary_function { public: vnl_unary_function* Copy() const { vnl_identity* copy = new vnl_identity; *copy = *this; return copy; } T f(T const& x) { return x; } }; #endif // vnl_identity_h_