扫码关注官方订阅号
你看 C++ stl 都有 std::pair android 还写了 android.util.Pair
std::pair
android.util.Pair
认证高级PHP讲师
你可以看看Entry<K,V>,其实跟pair差不多
std::pair在std::map里充当元素
Map.Entry在Map中也是充当元素
常规思路就是这样
Google的Guava总结的很好:Tuples for n >= 2
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
你可以看看Entry<K,V>,其实跟pair差不多
std::pair在std::map里充当元素
Map.Entry在Map中也是充当元素
常规思路就是这样
Google的Guava总结的很好:Tuples for n >= 2