There is no "official" C++ style guide. This one is my C++ style, that's all.
- Source files:
.cpp - Header files:
.hpp
| # ------- Useful docker and docker compose aliases -------- | |
| # | |
| # (inspired by https://gist.github.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb) | |
| # | |
| # # Usage: | |
| # dc : docker compose | |
| # dcu : docker compose up -d | |
| # dcb : docker compose build | |
| # dcub : docker compose up -d --build | |
| # dcd : docker compose down |
Static variables when used inside function are initialized only once, and then they hold there value even through function calls. These static variables are stored on static storage area , not in stack.
Static keyword works in the same way for class objects too. Objects declared static are allocated storage in static storage area, and have scope till the end of program.