ART: Use C++17 extract/modify/insert pattern.

Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 123750182
Change-Id: I2721948a566cc11d351324d173b4e1c8e5e54f53
2 files changed