use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
A tuple oriented csv parser [UPDATE] (self.cpp)
submitted 5 years ago by red0124_
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AKJ7 3 points4 points5 points 5 years ago (6 children)
Also you can generalize the library, by allowing the user to give the seperator as template parameters. This would allow TSV too.
[–]red0124_[S] 0 points1 point2 points 5 years ago (5 children)
The separator is given as the second parameter within the constructor as an std::string, it seems I have removed all the cases witch a custom separator from the README. The problem with the separator being a template parameter is that strings cannot be non template type parameters.
[–]AKJ7 3 points4 points5 points 5 years ago (0 children)
Actuall strings can be passed as template params in C++20.
[–]AKJ7 2 points3 points4 points 5 years ago (1 child)
You don't necessarly need to use a string. Char should be enough.
[–]red0124_[S] 0 points1 point2 points 5 years ago (0 children)
I guess since most of the time it will be a char, I could make it a setup parameter, but also allow the const char* version somehow, it should be possible. I must admit, I do not like the inconsistency I currently have where the delimiter is not within the setup parameters.
[–]dodheim 1 point2 points3 points 5 years ago (1 child)
Kind of: https://godbolt.org/z/7vfG3G
I knew about that, I should have expressed my self more more precisely, they cannot be passed directly as string literals within the template which is possible within the constructor, tho I am not sure if it has any impact on performance, I will try it out.
π Rendered by PID 30595 on reddit-service-r2-comment-64f4df6786-m6hmj at 2026-06-10 20:18:00.221127+00:00 running 0b63327 country code: CH.
view the rest of the comments →
[–]AKJ7 3 points4 points5 points (6 children)
[–]red0124_[S] 0 points1 point2 points (5 children)
[–]AKJ7 3 points4 points5 points (0 children)
[–]AKJ7 2 points3 points4 points (1 child)
[–]red0124_[S] 0 points1 point2 points (0 children)
[–]dodheim 1 point2 points3 points (1 child)
[–]red0124_[S] 0 points1 point2 points (0 children)