23 lines
398 B
C++
23 lines
398 B
C++
|
#include <vector>
|
||
|
#include <forward_list>
|
||
|
|
||
|
#include "hack/logger/logger.hpp"
|
||
|
#include "hack/algorithms/sort.hpp"
|
||
|
|
||
|
auto main(int argc, char *argv[]) -> int
|
||
|
{
|
||
|
{// ex: sort
|
||
|
std::vector<int> v { 4, 4, 6, 1, 4, 3, 2 };
|
||
|
std::forward_list<int> l { 8, 7, 5, 9, 0, 1, 3, 2, 6, 4 };
|
||
|
|
||
|
hack::algorithms::sort(v);
|
||
|
hack::algorithms::sort(l);
|
||
|
|
||
|
hack::log log;
|
||
|
log(v);
|
||
|
log(l);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|