Home
Leona's Blog
Cancel

Callback In Cpp

What is callback Callback is a callable function we could pass to other API (function or class ). When we call the API function, then API would “callback” the function we passed to it at some point...

Trivial, standard-layout, POD

Below is a whole copy from Reference . As the explaination is the most systematic and easiy to read/understand. When search “POD” on internet, the most mentioned points: Plain Old Data ...

Git Convenient Practices

Here’re some git convenient daily usage, not for git beginners, as no detail explaination for background. Use Case 1 It’s recommened to frequently commit changes, in that case each commit could be...

Enum and std::bitset Usage in C++

There’re two common practices to define enumeration type, explicitly give enum type an integer, or not assign integer, the underlying value of enum will increase one by default. Both enumerations c...

Static Assert vs Assert

static_assert (compile time assertion) static_assert is good for testing logic in your code at compilation time. assert assert is good for checking a case during run-time that you expect should alw...

Cpp Type Inference(auto and decltype)

Type inference is to automatic deduction of the data type of an expression. Since I already use auto a lot, so this post will mainly focus the explaination (not the usage) of decltype, and also men...

Program Process Linux

Note of Charpter 16, VBird Linux ALl events triggered on Linux can be taken as a process with a given PID, and it is with access permission accorrding to who triggerred the process. 16.1 Proc...

Clothid In Road Design

What Is Clothid Property of Clothid Presentation/Function of Clothid References

Efficient Terminal

(pre) what is shell (a capture from bird’s linux), what’s the default shell come with ubuntu, what are the common shells most widely used today. Switch from bash(default shell) to zsh if cannot ch...