1
0
mirror of synced 2024-06-13 07:59:58 +02:00
modern-cmake/examples/extended-project/apps/app.cpp
2020-08-03 18:16:52 -04:00

18 lines
303 B
C++

#include <modern/lib.hpp>
#include <fmt/format.h>
#include <iostream>
#include <vector>
#include <tuple>
int main() {
std::vector<double> input = {1.2, 2.3, 3.4, 4.5};
auto [mean, moment] = accumulate_vector(input);
fmt::print("Mean: {}, Moment: {}\n", mean, moment);
return 0;
}