Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- template<class Type, class Type2>
- Type2 _min(Type a, Type2 b) {
- if (a < b) {
- return a;
- }
- return b;
- }
- int main(int argc, char** argv) {
- std::cout << _min(5, 2.1) << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement