Getting on my #cplusplus bullshit for a moment.
std::span should be templated on <typename ElementType, typename ExtentType>, not <typename ElementType, std::size_t Extent>.
I should be able to customize my extent types arbitrarily.
-
-
Taking into account the fact that a span stores either just T* (in the fixed-size case) or [T*, size_t] (in the dynamic case), you aren't going to save any space by making the size type smaller once you take alignment into account.
-
Where by "alignment" I mean "extra padding bits", of course
Keskustelun loppu
Uusi keskustelu -
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.