bitPhile

Home

❯

notes

❯

tech

❯

c++

❯

Storage duration for an object in C++

Storage duration for an object in C++

Mar 05, 20261 min read

  • cpp
  • programming

Storage duration defines when and for how long an object will exist in the program life cycle. It is the property for an object that limits the object lifetime.

There are four types of storage duration:

  1. auto
  2. static
  3. thread
  4. allocated

References

  1. https://en.cppreference.com/w/cpp/language/storage_duration.html
  2. https://en.cppreference.com/w/c/language/storage_class_specifiers.html

Graph View

Backlinks

  • Internal Linkage Property for Identifiers in C++
  • static keyword
  • Storage class specifiers in C++

Created with Quartz v4.5.1 © 2026

  • Made with ❤️ by Nitin