|
You are here |
www.codeproject.com | ||
| | | | |
cplusplus.github.io
|
|
| | | | | ||
| | | | |
thasso.xyz
|
|
| | | | | My personal blog about things I find interesting. Hit me up! | |
| | | | |
etherealwake.com
|
|
| | | | | Inline functions are a notable feature of both C and C++. By exposing the source file to the implementation of a function, they allow a variety of optimization techniques that wouldn't be possible if it had to call out to a subroutine in a different file (at least without link-time optimization). However, despite the common syntax, the C and C++ languages implement them in very different ways. While C++ takes a "user friendly" approach and automatically manages the manipulation of multiple implementation... | |
| | | | |
www.cppstories.com
|
|
| | | 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. | ||