Add support for structured binding to folly::enumerate
Summary: Adding support for de-structuring the Proxy object inside a for loop, this will let users write code that looks like the following while still supporting the existing interface. ``` for (const auto& [index, element] : folly::enumerate(collection)) { std::cout << index << ": " << element; } ``` Also: update an existing unittest for c++17 Please let me know if there's anything I'm failing to consider/you disagree with in this change and I'll do my best to make it right. Reviewed By: yfeldblum, ot Differential Revision: D23948526 fbshipit-source-id: 6da83c9e9e0e911e33c6febc08ad2fd5b06498eb
Showing
Please register or sign in to comment