gpt4 book ai didi

c++ - 名称包含下划线的技术原因?

转载 作者:可可西里 更新时间:2023-11-01 15:29:32 24 4
gpt4 key购买 nike

在 Boost 库中(例如)scoped_lock 这样的名称中使用下划线是否有任何技术原因?为什么不称它为“ScopedLock”呢?

请注意,我不是在询问风格原因。

最佳答案

来自Boost Library Requirements and Guidelines ,

Given the intent to propose portions of boost for the next revision of the C++ standard library, boost decided to follow the standard library's conventions.

关于c++ - 名称包含下划线的技术原因?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2678254/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com