Referring to this answer:
https://stackoverflow.com/a/44883472/9620309
Even with the latest XCode Beta (10.1), this feature doesn't seem to be available on macOS High Sierra ?
I'd assume the latest Apple-clang (10.0.0) should support C++17 by now, but when i compile with the c++17 flag, it says that there's no member named extract in std::map ...
Or am i missing something ?
Edit (mcve): http://coliru.stacked-crooked.com/a/78715cf9485374d8
// clang++ -std=c++17 -Wall -pedantic main.cpp
#include<map>
#include<string>
#include<algorithm>
int main() {
std::map<int, std::string> m{ {10, "potato"}, {1, "banana"} };
auto nodeHandler = m.extract(10);
nodeHandler.key() = 2;
m.insert(std::move(nodeHandler)); // { { 1, "banana" }, { 2, "potato" } }
}