How Can It Simplify The Code
If you still aren't on board with the concept of inline variables, the example below will prove their importance.
A lot of header-only libraries can limit the number of hacks (like using inline functions or templates) and switch to using inline variables.
For example, take a look at the codes written below. Both serve the same purpose:
Get hands-on with 1400+ tech skills courses.