# Memory

- [Memory Introduction](https://notes.tejpratapsingh.com/_/cpp/memory/memory-introduction.md)
- [Heap and Stack](https://notes.tejpratapsingh.com/_/cpp/memory/heap-and-stack.md)
- [Pointers](https://notes.tejpratapsingh.com/_/cpp/memory/pointers.md)
- [Dangling Pointer](https://notes.tejpratapsingh.com/_/cpp/memory/pointers/dangling-pointer.md)
- ['this' Pointer](https://notes.tejpratapsingh.com/_/cpp/memory/pointers/this-pointer.md)
- [Function Pointer](https://notes.tejpratapsingh.com/_/cpp/memory/pointers/function-pointer.md)
- [Smart Pointers](https://notes.tejpratapsingh.com/_/cpp/memory/pointers/smart-pointers.md)
- [Unique Pointer](https://notes.tejpratapsingh.com/_/cpp/memory/pointers/smart-pointers/unique-pointer.md)
- [Shared Pointer](https://notes.tejpratapsingh.com/_/cpp/memory/pointers/smart-pointers/shared-pointer.md)
- [Weak Pointer](https://notes.tejpratapsingh.com/_/cpp/memory/pointers/smart-pointers/weak-pointer.md)
- [Reference count](https://notes.tejpratapsingh.com/_/cpp/memory/pointers/reference-count.md)
- [Helper function](https://notes.tejpratapsingh.com/_/cpp/memory/helper-function.md)
- [Vector \[ArrayList\]](https://notes.tejpratapsingh.com/_/cpp/memory/vector-arraylist.md)
- [Custom vector, part 1](https://notes.tejpratapsingh.com/_/cpp/memory/vector-arraylist/custom-vector-part-1.md)
- [Custom vector, part 2](https://notes.tejpratapsingh.com/_/cpp/memory/vector-arraylist/custom-vector-part-2.md)
- [Custom vector, part 3](https://notes.tejpratapsingh.com/_/cpp/memory/vector-arraylist/custom-vector-part-3.md)
- [std::vector](https://notes.tejpratapsingh.com/_/cpp/memory/vector-arraylist/std-vector.md)
- [Union](https://notes.tejpratapsingh.com/_/cpp/memory/union.md)
- [Type Punning](https://notes.tejpratapsingh.com/_/cpp/memory/union/type-punning.md)
- [Type Punning, part 2](https://notes.tejpratapsingh.com/_/cpp/memory/union/type-punning-part-2.md)
- [Type Punning, part 3](https://notes.tejpratapsingh.com/_/cpp/memory/union/type-punning-part-3.md)
- [Union, part 1](https://notes.tejpratapsingh.com/_/cpp/memory/union/union-part-1.md)
- [Union, Part 2](https://notes.tejpratapsingh.com/_/cpp/memory/union/union-part-2.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.tejpratapsingh.com/_/cpp/memory.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
