Initial Course

This commit is contained in:
David Gil de Gómez Pérez
2026-08-11 17:40:36 +03:00
commit 9aed1d1d86
202 changed files with 3420 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#pragma once
#include <string>
#include <variant>
#include <vector>
namespace cpp17 {
using Value = std::variant<int, double, std::string>;
[[nodiscard]] auto variant_to_string(const Value& value) -> std::string;
[[nodiscard]] auto sum_numeric_variants(const std::vector<Value>& values) -> double;
[[nodiscard]] auto is_string(const Value& value) -> bool;
} // namespace cpp17