Algorithms:
C++:
auto
Geometry:
Real Estate:
Linux:
Python:
Go:
Java:
Notes:
VIM:
TODO:
English:
Chinese:
Fight Against Leviathan:
This file shows some advanced usages of C/C++
What is a literal type?
What is cv-qualified ?
cv means const or volatile
const
volatile
What is trival default constructor
What is **an aggregate (class) **?
What is NRVO ?
Named Return Value Optimization(返回值优化)
What is copy elision ?
What is RTTI?
RTTI = Run-Time Type Information
What is closure type?
What is lambda indeed ?
What is closure ?
What is closure type ?
What is init capture?
What is generalized lambda capture ?
What is most vexing parse ?
What is narrowing conversions ?
(类型)范围缩减转换
What is CRTP?
CRTP = the Curiously Recurring Template Pattern
What is PImpl ?
PImpl = Pointer to implementation
Refer to page in cppreference
What is SFINAE ?
SFINAE = Substitution Failure Is Not An Error
Refer to page in SFINAE
What is SSO ?
SSO = Small String Optimization
A technique to improve performance for string implementations.
What is zero-overhead principle?
What you don’t use, you don’t pay for (in time or space) and further: What you do use, you couldn’t hand code any better.
inline关键字到底有没有用?
inline
其实就这么简单的原则:
cpp里的函数实现通通都无须要加inline。
cpp
h里的独立函数实现必须加inline。
h
编译器可以对不加inline关键字的函数内联,也可以对加了inline的函数拒绝内联。简单说:是否内联与inline关键字几乎没有关系。
目前inline关键字的主要用途,就是为了将一个函数写到头文件中,从而无须专门进行链接。
参考回答
C++ Shell
Online GDB
GDB Tutorial
Quick C++ Benckmark
Perfbench
Buildbench
Compiler Explorer
C++ insights
有哪些优秀的 C/C++ 开源代码框架?这些框架的设计思路是怎样的? - 觅新笑话中的回答 - 知乎