What are some uses of decltype(auto)?

In c++14 the decltype(auto) idiom is introduced. Typically its use is to allow auto declarations to use the decltype rules on the given expression. Searching for examples of “good” usage of the idiom I can only think of things like the following (by Scott Meyers), namely for a function’s return type deduction: template<typename ContainerType, typename … Read more