Initial Course
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user