What is a lambda expression in C++11?

The problem C++ includes useful generic functions like std::for_each and std::transform, which can be very handy. Unfortunately they can also be quite cumbersome to use, particularly if the functor you would like to apply is unique to the particular function. If you only use f once and in that specific place it seems overkill to … Read more

Iterating over unordered_map C++

From the cplusplus.com page about the begin member function of unordered_map (link): Notice that an unordered_map object makes no guarantees on which specific element is considered its first element. So no, there is no guarantee the elements will be iterated over in the order they were inserted. FYI, you can iterate over an unordered_map more … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)