libstdc++ qualifies std::get definitions for pair, tuple, and array.
Qualifies std::get definitions in libstdc++ for pair, tuple, and array to ensure signature matching.
This change qualifies the definitions of std::get for std::pair, std::tuple, and std::array within libstdc++. This ensures that the function signatures precisely match their forward declarations, preventing potential ambiguities and ensuring correct behavior. An overload for std::get with an out-of-bounds index for tuples has also been moved to a more appropriate header.
In Details
This patch modifies the libstdc++ standard library headers, specifically for pair, tuple, and array. It qualifies the std::get function template definitions using the std namespace. This addresses potential name collisions and ensures that the correct overload is selected, especially when dealing with incomplete type inclusions. The move of a deleted overload from tuple to stl_pair.h is a minor reorganization.