C/C++开发问题


numeric_limits<double>::digits10是什么意思
What is the meaning of numeric_limitslt;doublegt;::digits10(numeric_limitsdouble::digits10是什么意思)...
2024-05-11 C/C++开发问题
7

为什么 std::string 不提供到 char* 的隐式转换?
Why doesn#39;t std::string provide implicit conversion to char*?(为什么 std::string 不提供到 char* 的隐式转换?)...
2024-05-11 C/C++开发问题
6

结束迭代器递减的便携性如何?
how portable is end iterator decrement?(结束迭代器递减的便携性如何?)...
2024-05-11 C/C++开发问题
4

如何在最多进行 3N 次比较时实现 std::make_heap ?
How can std::make_heap be implemented while making at most 3N comparisons?(如何在最多进行 3N 次比较时实现 std::make_heap ?)...
2024-05-11 C/C++开发问题
21

C++ stl unordered_map 实现,参考有效性
C++ stl unordered_map implementation, reference validity(C++ stl unordered_map 实现,参考有效性)...
2023-12-03 C/C++开发问题
15

C++:是否可以使用引用作为映射中的值?
C++: Is it possible to use a reference as the value in a map?(C++:是否可以使用引用作为映射中的值?)...
2023-12-03 C/C++开发问题
10

其中&符号“&amp;"通过引用传递参数时可以放置吗?
Where ampersand quot;amp;quot; can be put when passing argument by reference?(其中符号“amp;通过引用传递参数时可以放置吗?)...
2023-12-03 C/C++开发问题
7

为什么可以将非常量引用参数绑定到临时对象?
Why can a non-const reference parameter be bound to a temporary object?(为什么可以将非常量引用参数绑定到临时对象?)...
2023-12-03 C/C++开发问题
10

什么是悬空引用?
What is a dangling reference?(什么是悬空引用?)...
2023-12-03 C/C++开发问题
38

当 push_back 新元素到 std::vector 时,C++ 引用发生变化
C++ reference changes when push_back new element to std::vector(当 push_back 新元素到 std::vector 时,C++ 引用发生变化)...
2023-12-03 C/C++开发问题
23

为什么 std::forward 有两个重载?
Why does std::forward have two overloads?(为什么 std::forward 有两个重载?)...
2023-12-03 C/C++开发问题
10

我说 const_cast 然后修改绑定到临时对象的 ref-to-const 是对的吗?
Am I right in saying that const_cast followed by modification on a ref-to-const bound to a temporary is okay?(我说 const_cast 然后修改绑定到临时对象的 ref-to-const 是对的吗?)...
2023-12-03 C/C++开发问题
19