{"id":15047475,"url":"https://github.com/jdsherbert/simple-stack-implementation","last_synced_at":"2026-04-01T17:19:20.249Z","repository":{"id":209868525,"uuid":"725145293","full_name":"JDSherbert/Simple-Stack-Implementation","owner":"JDSherbert","description":"Simple C++ Stack class template using a custom Node structure to behave like a linked list structure.","archived":false,"fork":false,"pushed_at":"2023-12-04T17:05:01.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T15:59:25.034Z","etag":null,"topics":["boilerplate","boilerplate-template","cpp","cpp11","cpp14","cpp17","cpp20","generic","list","reference","stack","stackoperation","stackoperations"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JDSherbert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-29T14:31:28.000Z","updated_at":"2023-11-29T15:27:06.000Z","dependencies_parsed_at":"2025-01-20T15:59:29.550Z","dependency_job_id":"70f0672c-46bb-487d-8d0a-e5503348b7fe","html_url":"https://github.com/JDSherbert/Simple-Stack-Implementation","commit_stats":null,"previous_names":["jdsherbert/simple-stack-implementation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDSherbert%2FSimple-Stack-Implementation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDSherbert%2FSimple-Stack-Implementation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDSherbert%2FSimple-Stack-Implementation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDSherbert%2FSimple-Stack-Implementation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JDSherbert","download_url":"https://codeload.github.com/JDSherbert/Simple-Stack-Implementation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243475328,"owners_count":20296714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boilerplate","boilerplate-template","cpp","cpp11","cpp14","cpp17","cpp20","generic","list","reference","stack","stackoperation","stackoperations"],"created_at":"2024-09-24T20:58:53.389Z","updated_at":"2025-12-27T21:26:37.211Z","avatar_url":"https://github.com/JDSherbert.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://github.com/JDSherbert/Threadsafe-Singleton-Class/assets/43964243/8a288a74-0a1e-4fcb-a5d8-608bb7c9d46b)\n\n# Simple Stack Implementation\n\n\u003c!-- Header Start --\u003e\n\u003ca href = \"https://learn.microsoft.com/en-us/cpp/cpp-language\"\u003e \u003cimg height=\"40\" img width=\"40\" src=\"https://cdn.simpleicons.org/c++\"\u003e \u003c/a\u003e\n\u003cimg align=\"right\" alt=\"Stars Badge\" src=\"https://img.shields.io/github/stars/jdsherbert/Simple-Stack-Implementation?label=%E2%AD%90\"/\u003e\n\u003cimg align=\"right\" alt=\"Forks Badge\" src=\"https://img.shields.io/github/forks/jdsherbert/Simple-Stack-Implementation?label=%F0%9F%8D%B4\"/\u003e\n\u003cimg align=\"right\" alt=\"Watchers Badge\" src=\"https://img.shields.io/github/watchers/jdsherbert/Simple-Stack-Implementation?label=%F0%9F%91%81%EF%B8%8F\"/\u003e\n\u003cimg align=\"right\" alt=\"Issues Badge\" src=\"https://img.shields.io/github/issues/jdsherbert/Simple-Stack-Implementation?label=%E2%9A%A0%EF%B8%8F\"/\u003e\n\u003cimg align=\"right\" src=\"https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FJDSherbert%2FSimple-Stack-Implementation%2Fhit-counter%2FREADME\u0026count_bg=%2379C83D\u0026title_bg=%23555555\u0026labelColor=0E1128\u0026title=🔍\u0026style=for-the-badge\"\u003e\n\u003c!-- Header End --\u003e \n\n-----------------------------------------------------------------------\n\n\u003ca href=\"https://learn.microsoft.com/en-us/cpp/cpp-language\"\u003e \n  \u003cimg align=\"left\" alt=\"C++ Template\" src=\"https://img.shields.io/badge/C++%20Template-black?style=for-the-badge\u0026logo=cpp\u0026logoColor=white\u0026color=black\u0026labelColor=black\"\u003e \u003c/a\u003e\n  \n\u003ca href=\"https://choosealicense.com/licenses/mit/\"\u003e \n  \u003cimg align=\"right\" alt=\"License\" src=\"https://img.shields.io/badge/License%20:%20MIT-black?style=for-the-badge\u0026logo=mit\u0026logoColor=white\u0026color=black\u0026labelColor=black\"\u003e \u003c/a\u003e\n  \n\u003cbr\u003e\u003c/br\u003e\n\n-----------------------------------------------------------------------\n## Overview\nYou can use this Stack class with different types, such as int, double, std::string, or custom types, by specifying the desired type `\u003cT\u003e` when creating an instance of the stack.\n```\n// Example usage of this stack\nStack\u003cint\u003e intStack;\nintStack.push(69);\nintStack.push(420);\n\nstd::cout \u003c\u003c \"Size of the stack: \" \u003c\u003c intStack.size() \u003c\u003c std::endl;\nstd::cout \u003c\u003c \"Top element: \" \u003c\u003c intStack.peek() \u003c\u003c std::endl;\n\nintStack.pop();\nstd::cout \u003c\u003c \"After pop, size of the stack: \" \u003c\u003c intStack.size() \u003c\u003c std::endl;\n```\n\nThis version of a Stack class uses a linked list with a custom Node structure instead of relying on `std::list` or `std::vector`. The push, pop, peek, isEmpty, and size functions operate on this linked list. The Node structure represents each element in the stack, and the next pointer links the elements together in the stack.\n\n\n-----------------------------------------------------------------------\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdsherbert%2Fsimple-stack-implementation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdsherbert%2Fsimple-stack-implementation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdsherbert%2Fsimple-stack-implementation/lists"}