Initial Course
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace cpp11 {
|
||||
|
||||
[[nodiscard]] auto make_counter(int start) -> std::unique_ptr<int>;
|
||||
[[nodiscard]] auto shared_total(const std::vector<std::shared_ptr<int>>& values) -> int;
|
||||
[[nodiscard]] auto clone_unique(const std::unique_ptr<int>& value) -> std::unique_ptr<int>;
|
||||
|
||||
} // namespace cpp11
|
||||
Reference in New Issue
Block a user