a debug tool for c++11/14 to inspecting the copy/move/construct/destruct behavior of a class.
see [this][1]
![img][2]
// | |
#include <stdexcept> | |
#include <vector> | |
#include <queue> | |
#include <utility> | |
#include <iostream> | |
#include <memory> | |
using namespace std; | |
struct Bitmap |
#include <stdio.h> | |
static void hstretch(const char tbl[3], int n) | |
{ | |
putchar(tbl[0]); | |
while (n--) putchar(tbl[1]); | |
putchar(tbl[2]); | |
putchar(' '); | |
} |
#pragma once | |
#include <functional> | |
#include <list> | |
// tue == std + 1 | |
namespace tue | |
{ | |
template <class ...Args> | |
struct Signal | |
{ |
#include <iostream> | |
#include <array> | |
#include <vector> | |
#include <string> | |
#include <sstream> | |
#include <functional> | |
#include <cmath> | |
using namespace std; | |
namespace pro |
#include <iostream> | |
#include <utility> | |
using namespace std; | |
namespace list | |
{ | |
using std::pair; | |
using std::make_pair; | |
struct nil {}; |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <regex> | |
using namespace std; | |
// regular expression | |
struct match_wrapper | |
{ |
#include <iostream> | |
#include <list> | |
using namespace std; | |
template <class Iterator> | |
struct iterator_range | |
{ | |
using iterator = Iterator; | |
iterator_range(iterator _begin, iterator _end) |
#include <iostream> | |
#include <string> | |
#include <functional> | |
#include <vector> | |
#include <type_traits> | |
#include <utility> | |
#include <mutex> | |
#include <condition_variable> | |
#include <thread> | |
#include <list> |
#include <iostream> | |
#include <list> | |
#include <algorithm> | |
#include <iterator> | |
using std::cout; | |
using std::endl; | |
// make sure a <= b, or swap a and b to make it sure. | |
template <class T> | |
void reorder(T& a, T& b) |