Timeline for naive C++ stack template class
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 4, 2024 at 20:53 | history | edited | indi | CC BY-SA 4.0 |
Added extension about constraining for sequence containers
|
| May 4, 2024 at 20:53 | comment | added | indi | I was thinking about how to constrain for sequence containers, and I don’t think it is as difficult as anyone thought, myself included. I’ll extend the answer with suggestions for a better concept. | |
| May 4, 2024 at 8:24 | comment | added | John | @indi Thank you so much. I am really amazed at your answer! Than you again. I have been reading your answer and modifying my implementation for almost two hours. I really can't imagine how long it takes to write this detailed answer. You taught a lot, not only about C++, but also kindness. I will modify the code with C++17 and prior firstly since it's a pity that I don't know any C++20 feature yet. | |
| May 4, 2024 at 8:15 | vote | accept | John | ||
| May 4, 2024 at 7:04 | comment | added | smac89 | I just wanted to add one more thing: OP was asking about sequence containers, and cppreference actually has a page dedicated to just that: en.cppreference.com/w/cpp/named_req/SequenceContainer. I don't know if your concept definitions already handle that, but the requirements listed on that page are quite expansive. It might be easier to just list the current known sequence containers in the library and call it a day | |
| May 3, 2024 at 23:37 | history | answered | indi | CC BY-SA 4.0 |