blob: e5158918a98ec7bcaa98044c2d1dad48d9db9095 [file] [log] [blame]
onqtam1da586c2016-05-09 19:18:38 +03001#include "in.h"
2
onqtamdab38ba2016-05-09 20:56:36 +03003#include <vector>
onqtam9cccba72016-05-09 18:34:14 +03004#include <iostream>
5
onqtamdab38ba2016-05-09 20:56:36 +03006struct myType {};
7
8std::ostream& operator<<(std::ostream& s, const myType&) { s << "myType"; return s; }
9
10template<typename T>
11std::ostream& operator<<(std::ostream& s, const std::vector<T>& in) { s << "vector<T>"; return s; }
12
onqtam9cccba72016-05-09 18:34:14 +030013void f() {
onqtamdab38ba2016-05-09 20:56:36 +030014 myType a; std::cout << stringify(a) << std::endl;
onqtam1da586c2016-05-09 19:18:38 +030015 std::cout << stringify(6) << std::endl;
16 std::vector<int> v(5); std::cout << stringify(v) << std::endl;
onqtam9cccba72016-05-09 18:34:14 +030017}