soi-header/example.cpp

20 lines
588 B
C++
Raw Normal View History

2019-10-06 16:45:29 +02:00
// compile-command: "g++ -Iinclude -D_GLIBCXX_DEBUG -fsanitize=address,undefined -g3 -ggdb3 -std=c++17 example.cpp -o example && SOI_H_COLOR=1 SOI_H_EOFCHECK=1 ./example <<< ''"
#include <soi>
2019-10-06 18:37:37 +02:00
signed main() {
2019-10-06 16:45:29 +02:00
dbg("hi");
string s="world";
dbg(s);
dbg(false);
dbg(true);
dbg('c');
vector<int> pi{3,1,4,1,5,9,2,6};
dbg(pi);
dbg(vector<int>{3,1,4,1,5,9,2,6});
2019-10-06 18:37:37 +02:00
dbg(vector<pair<int, int>>{{3,1},{4,1}});
dbg(vector<pair<int, vector<string>>>{{3,{"hi"}},{4,{"hello", "world"}}});
dbg(set<int>{3,1,4});
dbg(map<int, string>{{3,"three"},{1,"one"}});
2019-10-06 16:45:29 +02:00
cout << "hi\n";
}