URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.hp/] [gdb.objdbg/] [objdbg04/] [x.h] - Rev 827
Go to most recent revision | Compare with Previous | Blame | View Log
template <class T> class Adder { public: void set(T); T get(); T add(T); private: T val; }; template <class T> void Adder<T>::set(T new_val) { val = new_val; } template <class T> T Adder<T>::get() { return val; } template <class T> T Adder<T>::add(T new_val) { val += new_val; return val; }
Go to most recent revision | Compare with Previous | Blame | View Log