/explore
|
You are here |
duerrenberger.dev | ||
| | | | |
berthub.eu
Welcome back! In part 4 we went over the nitty-gritty of lambdas and how to store them, we explored the relation between the various C++ algorithms and containers, plus we took a stroll through some non-standard containers with exceptional capabilities. Note: part 1 is here. In this probably final part 5, we'll be going over some of the most powerful stuff in modern C++: "perfect" reference counting and the concept of std::move. |
|
| | | | | ||
| | | | |
www.cppstories.com
Let's say we have the following code: LegacyList* pMyList = new LegacyList(); ... pMyList->ReleaseElements(); delete pMyList; In order to fully delete an object we need to do some additional action. How to make it more C++11? How to use unique_ptr or shared_ptr here? Intro We all know that smart pointers are really nice things and we should be using them instead of raw new and delete. |
|
| | | | | ||
| | | | |
hackingcpp.com
A short introduction to pointers in C++. Syntax, semantics, 'const' pointers, 'this' pointer, forward declarations and some guidelines. |
|
| | | | | ||
| | | | |
www.integralist.co.uk
Introduction Four ways to skin a cat How does the adapter work? Why is this interesting? Summary/Breakdown Introduction Here is some code that demonstrates the typical 'hello world' for a Go based web server: package main import ( "fmt" "net/http" ) func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello %s", r.URL.Path[1:]) } func main() { http.HandleFunc("/World", handler) http.ListenAndServe(":8080", nil) } Note: http://localhost:8080/World will return Hello World For most people,... |
|
| | | |||