Replaced all tabs with 4 spaces

This commit is contained in:
WolverinDEV
2020-01-24 02:49:59 +01:00
parent 735e427376
commit b85c51951c
84 changed files with 9824 additions and 9824 deletions
+20 -20
View File
@@ -9,7 +9,7 @@ using namespace std::chrono;
using namespace ts;
struct TEntry : public ts::TreeEntry {
public:
public:
TEntry(ChannelId channel_id) : channel_id(channel_id), previous_id(0) {}
ChannelId channelId() const override {
@@ -59,34 +59,34 @@ cout << " --------- TREE --------- " << endl;
template <typename T>
void print_address(const T& idx) {
cout << &idx << endl;
[idx]() {
cout << &idx << endl;
}();
cout << &idx << endl;
[idx]() {
cout << &idx << endl;
}();
}
int main() {
auto index = shared_ptr<int>();
print_address(index);
return 0;
/*
BasicChannelTree tree;
auto ch3 = tree.createChannel(0, 0, "test channel");
auto ch2 = tree.createChannel(0, 0, "test channel2");
auto ch = tree.createChannel(ch2->channelId(), 0, "test channel 2");
tree.deleteChannelRoot(ch2);
ch2 = nullptr;
ch = nullptr;
/*
BasicChannelTree tree;
auto ch3 = tree.createChannel(0, 0, "test channel");
auto ch2 = tree.createChannel(0, 0, "test channel2");
auto ch = tree.createChannel(ch2->channelId(), 0, "test channel 2");
tree.deleteChannelRoot(ch2);
ch2 = nullptr;
ch = nullptr;
threads::self::sleep_for(seconds(1));
cout << "XX" << endl;
*/
threads::self::sleep_for(seconds(1));
cout << "XX" << endl;
*/
ChannelId channel_id_index = 0;
TreeView tree;
TreeView tree;
/* Create 10 channels */
while(channel_id_index < 20)
/* Create 10 channels */
while(channel_id_index < 20)
assert(tree.insert_entry(make_shared<TEntry>(channel_id_index++)));
PT
@@ -117,5 +117,5 @@ int main() {
PT
memtrack::statistics();
}
return 0;
return 0;
}