I noticed that the boost library uses header files of (.hpp
).
I am curious since most source files I see use normal .h
header files.
Could there be any special instances which warrant use of .hpp
instead of .h
?
Thanks
Just convention, nothing special. You can use any extension on include files, actually.
.hpp, .H, etc. is a loose convention for C++ header files, .tcc is a loose convention for C++ template implementation, .h is pretty strong convention for c files.
Boost uses hpp extension, QT uses .h extension, STL do not have extension. I am sure there are libraries which use .H but have not seen any.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With