摘要:
std::swap std::swap 用于交换2个元素,g++源码如下 /** * @brief Swaps two values. * @param __a A thing of arbitrary type. * @param __b Another thing of arbitrary ty 阅读全文
posted @ 2022-04-07 22:47
明明1109
阅读(503)
评论(0)
推荐(0)
摘要:
std::tie 介绍 std::tie是C++11以后引入的新特性,是一个函数模板,原型: template<class... Types> tuple<Types&...> tie (Types&... args) noexcept; tie将其参数通过引用方式绑定到tuple的元素,常用来解压 阅读全文
posted @ 2022-04-07 10:44
明明1109
阅读(760)
评论(0)
推荐(0)

浙公网安备 33010602011771号