add vector_remove_at

This commit is contained in:
chatlanin
2022-03-21 10:42:52 +03:00
parent 6b124255a0
commit f32a1e49a6
10 changed files with 123 additions and 32 deletions

View File

@@ -1,13 +1,9 @@
#pragma once
#include <iostream>
#include <experimental/source_location>
#include <vector>
#include <list>
#include <map>
#include <unordered_map>
#include "view/color.hpp"
#include "concepts/concepts.hpp"
#include "iterators/sequence_ostream_iterator.hpp"
#include "iterators/associative_ostream_iterator.hpp"
@@ -113,6 +109,14 @@ namespace hack
std::cout << " }" << (count != 0 ? devider : "");
}
template <template <class, class> typename Function, class ...Args>
auto LogCall(std::string fun_name, Function<Args...> fun, std::string fun_param = "", Args... args)
{
auto temp{ fun(args...) };
std::cout << fun_name << "of" << fun_param << "/t -> /t" << temp << '\n';
return temp;
}
friend class warn;
friend class error;
};