Initial Course
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#include "smart_pointers.hpp"
|
||||
|
||||
namespace cpp11 {
|
||||
|
||||
auto make_counter(int start) -> std::unique_ptr<int> {
|
||||
(void)start;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
auto shared_total(const std::vector<std::shared_ptr<int>>& values) -> int {
|
||||
(void)values;
|
||||
return 0;
|
||||
}
|
||||
|
||||
auto clone_unique(const std::unique_ptr<int>& value) -> std::unique_ptr<int> {
|
||||
(void)value;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
} // namespace cpp11
|
||||
Reference in New Issue
Block a user