|
You are here |
0xd34df00d.me | ||
| | | | |
www.foonathan.net
|
|
| | | | | In my previous blog post, weve discussed the static constexpr std::integral_constant idiom to specify the size of a range at compile-time. Unlike the standard, our (think-cells) ranges library at think-cell already supports compile-time sizes natively, so I was eager to try the idiom there and see how it works out in practice. namespace tc { template constexpr auto size(Rng&& rng); // runtime-size of a range, like std::ranges::size template requires tc::has_constexpr_size constexpr auto constexpr_size = ... | |
| | | | |
www.think-cell.com
|
|
| | | | | [AI summary] The blog post discusses techniques for implementing compile-time size calculations for range adaptors in C++ using think-cell's library, focusing on forwarding size properties and avoiding code duplication. | |
| | | | |
eli.thegreenplace.net
|
|
| | | | | [AI summary] This article explains the C++11 variadic template feature, which replaces the unsafe and cumbersome C-style variadic functions with a compile-time safe and flexible system. | |
| | | | |
benhoyt.com
|
|
| | | LoxLox is an interpreter for Crafting Interpreters' Lox programming language written in Lox! | ||