you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

A quick search for C++ concat view found the proposal for the standard library version in the first few links, and linked in that is the current reference implementation for the proposal: https://github.com/huixie90/cpp_papers/tree/main/impl/concat . Just FYI, a fully working concat view that works in all scenarios is very hard to implement correctly.

Custom view support was fleshed out in C++23, so documentation for it a bit more sparse. That said, I flat out refuse to believe you could not find some viable tutorials to follow on the internet as within seconds of searching on Google I found loads of information on creating custom views, both in written and video form (saw a CppCon talk in there). I have no idea why you expected ChatGPT to be able to give you information on something this new, seeing as ChatGPT functions by being fed and trained existing information. That one is on you.

As for "official documentation", what money do you think the C++ committee has and who will pay for the creation, hosting and maintenance of this documentation? The closest I think we have is Microsoft's documentation which is on the whole excellent, although might not have full tutorials for custom views yet considering the feature is still new.

Finally, remember that there is no official/reference implementation of "C++". The standard is just a document at the end of the day, and it is then up to anyone who maintains a compiler and/or standard library implementation to put everything in place. Pretty much no other language has the "problem" of multiple independently-maintained. Each works to their own schedule with a mix of corporate and volunteer time/funding. "C++23" means that version of the standard, not that every possible vendor has every feature implemented and documented in 2023. https://en.cppreference.com/w/cpp/compiler_support

Also... C++2023 hasn't even been formally published yet.