Wednesday, June 15, 2016

std::reference_wrapper

C++ references are nice but sometimes they are a pain to assigned them outside of a constructor. Since they can't be left uninitialized.

http://en.cppreference.com/w/cpp/utility/functional/reference_wrapper

std::reference_wrapper comes in to help with that.

No comments:

Post a Comment