Explore >> Select a destination


You are here

arne-mertz.de
| | www.cppstories.com
4.2 parsecs away

Travel
| | From dynamic container operations to compile-time constants, C++ offers a variety of techniques (as in this famous Meme :)). In this article, we'll delve into advanced initialization methods likereserve() and emplace_backfor containers to tuples with piecewise_construct and forward_as_tuple. Thanks to those techniques, we can reduce the number of temporary objects and create variables more efficiently.
| | www.fluentcpp.com
4.9 parsecs away

Travel
| | There is a particular case for default parameters: it's when their type is a template type. Read on to see how to get this right.
| | akrzemi1.wordpress.com
5.0 parsecs away

Travel
| | The language feature in C++17 known as class template argument deduction was intended to supersede factory functions like make_pair, make_tuple, make_optional, as described in p0091r2. This goal has not been fully achieved and we may still need to stick to make_ functions. In this post we will briefly describe what class template argument deduction is,...
| | www.foonathan.net
30.2 parsecs away

Travel
| 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 = ...