随笔分类 -  C++ Related

摘要:众所周知,C++有超级大量的相关知识,普通人类是难以做到“精通C++”的。 不过,这不影响我想做一些C++语言知识点的总结,帮助自己理解C++的设计并更好地使用它:) 一、基础概念相关 类的构造 关键点在于,对任何构造函数,C++ 会在进入构造函数体之前,自动调用所有成员变量的构造函数(如果未显式初 阅读全文
posted @ 2024-12-30 17:20 火焰龙卷风 阅读(29) 评论(0) 推荐(0)
摘要:读了这个文章,决定做个总结 decltype is given two entirely different purposes that are related enough to be confusing and lead to bad typos Every expression in C++ 阅读全文
posted @ 2024-12-23 19:07 火焰龙卷风 阅读(34) 评论(0) 推荐(0)
摘要:I will talk about how to access best practice when developing a c++ project here. I myself is not an expert in it so this is gonna be a record rather 阅读全文
posted @ 2024-11-18 23:00 火焰龙卷风 阅读(12) 评论(0) 推荐(0)
摘要:例子来自libc++中unordered_map的实现 unordered_map中__hash_table子成员: 查看其中__allocator_type的定义,相关的类如下 struct __rebind_alloc_helper { using type _LIBCPP_NODEBUG = 阅读全文
posted @ 2024-11-05 00:02 火焰龙卷风 阅读(26) 评论(0) 推荐(0)