Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2. template<class Type, class Type2>
  3. Type2 _min(Type a, Type2 b) {
  4. if (a < b) {
  5. return a;
  6. }
  7. return b;
  8. }
  9.  
  10. int main(int argc, char** argv) {
  11. std::cout << _min(5, 2.1) << std::endl;
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement