Reading CSV Files with Standard C++
summary
Claims that ranges::split fails on quoted fields, because CSV permits commas, quotes and embedded newlines. Notes std::quoted is stream-only and returns strings not string_views, so it doesn't avoid allocations. Shows getline breaks when fields contain newline characters. Describes a practical approach: treat the file as a buffer of characters, use views to split then merge quoted segments back together, and handle multiple input files for real datasets (butterfly records) to compute trends without copying the whole file.
AI-written summary · about
related talks
01h 25mC++23 Ranges: Conceptual Changes and Useful Practicalities
58mThe Surprising Complexity of Formatting Ranges in Cpp
01h 01mFrom STL to Ranges: Using Ranges Effectively
01h 00mEnough string_view to hang ourselves
01h 09mMissing (and future?) C++ Range Concepts
01h 06mC++20 Ranges in Practice
57mSome Things C++ Does Right
38mWhat's New In C++23
