---
title: "Discussion on \"(A case for) Creating a stack-allocated Stack container in C++\" | Hashnode"
description: "Discussion on \"(A case for) Creating a stack-allocated Stack container in C++\". I've always looked inside the C++ STL and wondered why the library provided stack container is not allocated on the stack section but is actually allocated on the heap.\nA container which is allocated on stack would be handy in embedded systems where ..."
url: "https://hashnode.com/posts/a-case-for-creating-a-stack-allocated-stack-container-in-c/65204b7906b6e2659eca7223"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [(A case for) Creating a stack-allocated Stack container in C++](https://blog.srikanth.one/a-case-for-creating-a-stack-allocated-stack-container-in-c?utm_source=hashnode&utm_medium=feed)

I've always looked inside the C++ STL and wondered why the library provided stack container is not allocated on the stack section but is actually allocated on the heap. A container which is allocated on stack would be handy in embedded systems where ...

Oct 6, 2023 · 3 min read · blog.srikanth.one  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#stackdatastructure](https://hashnode.com/tag/stackdatastructure)

## Written by

[Srikanth Anantharam](https://hashnode.com/@sria91)

@sria91 · Bengaluru, Karnataka, India

  
[View profile](https://hashnode.com/@sria91)

Software Practitioner | Lifelong Learner

Software Practitioner | Lifelong Learner

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
