Skip to content

Max's Blog

  • Home
  • About
Max's Blog

Category: Pointers & References

September 6, 2021 max-sperling

Deleter – std::shared_ptr vs. std::unique_ptr

For the std::unique_ptr the deleter is part of the type and the std::shared_ptr keeps it as part of its control

Continue reading
February 4, 2021 max-sperling

Position of Ptr. / Ref. (C++)

There are two common ways for the position of the pointer sign (*) or the reference sign (&). C-Style ClassA

Continue reading
February 3, 2021 max-sperling

When and how to pass smart pointer (C++)

This post is based on a post from Herb Sutter. When if (The ownership of the object isn’t shared or

Continue reading
December 11, 2020 max-sperling

Layout of std::shared_ptr (libstdc++)

Source code Debugging Visual result |———————-| | shared_ptr sPtr1 | |———————-| |Pointer to the Object |—|——-> Object | | |

Continue reading
June 11, 2020 max-sperling

Does Java have pointers?

Most guys would say “No, but C++ has pointers” and they are right, but not in the way they assume

Continue reading
July 6, 2017 max-sperling

Cyclic references (C++)

Problem The following code shows the problem of a cyclic reference with shared pointers. When leaving the main function the

Continue reading
April 28, 2017 max-sperling

Smart Pointer (C++)

Especially in older C++ programms it was very common to work with a lot of raw pointer (legacy pointer). That

Continue reading

Categories

  • Other (17)
    • Games (11)
    • Nutrition (4)
    • Traveling (2)
  • Science (17)
    • Chemistry (3)
    • Linguistics (2)
    • Math (10)
    • Physics (2)
  • Sport (71)
    • Climbing (5)
    • Diving (20)
    • Fitness (7)
    • Martial arts (33)
      • Ground fighting (9)
      • Mixed martial arts (4)
      • Stand-up fighting (11)
    • Running (1)
    • Surfing (2)
    • Swimming (1)
    • Volleyball (2)
  • Technology (268)
    • Computer (238)
      • Architecture & Design (15)
      • Artificial intelligence (3)
      • Audio & Video (11)
      • Building & Reversing (15)
        • CMake (2)
      • Computational complexity (3)
      • Computer architecture (5)
      • Debugging & Memory (26)
      • Development (58)
        • CI/CD (1)
        • Programming (48)
          • Concurrency (5)
          • Data structures (12)
          • Pointers & References (7)
        • Scripting (3)
        • Testing (6)
      • Development process (5)
      • Hacking & Security (17)
      • Hardware & Protocols (8)
      • Networking (11)
      • Operating system (18)
        • Linux (11)
        • Windows (7)
      • Regular expression (2)
      • Tool configuration (5)
      • Version control (22)
      • Virtualization (7)
      • Web (27)
    • Electrics (9)
    • Mechanics (15)
    • Medicine (2)
    • Photography (4)
WordPress Theme: Wellington by ThemeZee.