摘要:
[capture](params) -> return_type { body; } 主要捕获方式为值捕获和引用捕获。 ex: int factor = 3; auto multiply = [factor](int x) { return x * factor; }; cout << multip 阅读全文
posted @ 2025-05-29 21:32
lyrrr
阅读(19)
评论(0)
推荐(0)
摘要:
rotate & rotate_copy 循环旋转序列内元素 template< class ForwardIt > ForwardIt rotate(ForwardIt first, ForwardIt middle, ForwardIt last); template< class Forwar 阅读全文
posted @ 2025-05-29 21:25
lyrrr
阅读(14)
评论(0)
推荐(0)

浙公网安备 33010602011771号