File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,10 @@ And return the `std::shared_ptr` pointer of this object type. For example:
3636``` cpp
3737#include < iostream>
3838#include < memory>
39- void foo (std::shared_ptr<int > i)
40- {
39+ void foo (std::shared_ptr<int > i) {
4140 (* i)++;
4241}
43- int main()
44- {
42+ int main() {
4543 // auto pointer = new int(10); // illegal, no direct assignment
4644 // Constructed a std::shared_ptr
4745 auto pointer = std::make_shared<int >(10);
Original file line number Diff line number Diff line change @@ -38,12 +38,10 @@ order: 5
3838``` cpp
3939#include < iostream>
4040#include < memory>
41- void foo (std::shared_ptr<int > i)
42- {
41+ void foo (std::shared_ptr<int > i) {
4342 (* i)++;
4443}
45- int main()
46- {
44+ int main() {
4745 // auto pointer = new int(10); // illegal, no direct assignment
4846 // Constructed a std::shared_ptr
4947 auto pointer = std::make_shared<int >(10);
You can’t perform that action at this time.
0 commit comments