The Secret Life of C++: Syntactic Sugar

Many new cool things in C++ are really just syntactic sugar that turns into something else. BUt it is good to understand what it turns into. These include:

Operator Overloading


        

        

        

        

        

User Defined Literals


        

        

        

        

        

Constexpr


        

        

        

        

        

Initialization Lists


        

        

        

        

        
__ZNSt3__16vectorIiNS_9allocatorIiEEE8allocateEm means std::__1::vector<int, std::__1::allocator<int> >::allocate(unsigned long)

_ZNSt3__16vectorIiNS_9allocatorIiEEE18__construct_at_endIPKiEENS_9enable_ifIXsr21__is_forward_iteratorIT_EE5valueEvE4typeES8_S8_ is std::__1::enable_if<__is_forward_iterator<int const*>::value, void>::type std::__1::vector<int, std::__1::allocator<int> >::__construct_at_end<int const*>(int const*, int const*)

Range Based Loops


        

        

        

        

        

Type Inference


        

        

        

        

        

Threading Support


        

        

        

        

        
Fork me on GitHub