/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

www.cplusplus.com
| | www.fluentcpp.com
4.0 parsecs away

Travel
| | Variadic templates allow any number of template parameters of any type. In this article we see how to do a variadic number of parameters of the SAME type.
| | eyakubovich.github.io
3.2 parsecs away

Travel
| | It's a simple task - you want iterate over all the lines in a file and perform an action on each one. In Python it's as simple as:for line in open("somefile.txt"): print lineHow about C++11. How hard can it be? This stackoverflow post gives us a starting point. We...
| | belaycpp.com
4.3 parsecs away

Travel
| |
| | rodusek.com
26.7 parsecs away

Travel
| Getting the name of a type in C++ is a hassle. For something that should be trivially known by the compiler at compile-time, the closest thing we have to getting the type in a cross-platform way is to use std::type_info::name which is neither at compile-time, nor is it guaranteed to be human-readable. In fact, both GCC and Clang actually return the compiler's mangled name rather than the human-readable name we are used to. Let's try to make something better using the modern utilities from c++17 and a little creative problem solving!