Initial Course
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#include "pointer_basics.hpp"
|
||||
|
||||
namespace pointers {
|
||||
|
||||
auto get_value(int* ptr) -> int { (void)ptr; return 0; }
|
||||
void set_value(int* ptr, int value) { (void)ptr; (void)value; }
|
||||
auto is_null(const int* ptr) -> bool { (void)ptr; return true; }
|
||||
void swap_via_pointers(int* a, int* b) { (void)a; (void)b; }
|
||||
|
||||
} // namespace pointers
|
||||
Reference in New Issue
Block a user