/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

rselbach.com
| | 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.
6.2 parsecs

Travel
| |
| | danielms.site

I build things and drink coffee.
6.5 parsecs

Travel
| |
| | www.integralist.co.uk

The following code doesn't do what you might expect: package main import "fmt" func main() { var i *impl fmt.Println("i == nil:", i == nil) what(i) } type impl struct{} func (i *impl) do() {} func what(i interface{ do() }) { fmt.Println("i == nil:", i == nil) } If you expected the what function to print i == nil: true, then keep reading... Typed Nils The behavior observed is due to the way interfaces and nil values interact in Go.
4.7 parsecs

Travel
| |
| | shortdiv.com

A dive into compression algorithms available when building for the web
36.8 parsecs

Travel
|