logoalt Hacker News

thaynetoday at 2:02 AM1 replyview on HN

Is there anything in here for something like a "slice" or dynamically sized array that carries its length along with it?


Replies

Panzerschrektoday at 5:50 AM

Just use compiler option -std=c++20 and use std::span. Don't try reinventing it in C.

show 1 reply