This is a repository for demonstration of c++ development.
[remove this section in new projects]
git clone https://github.com/open3rds/cppbase.git
mv cppbase ${YourProjectName}
cd ${YourProjectName}
rm -rf .git
git init
git add .
git commit -m "Init project template"
How to reference this library, see: https://github.com/open3rds or example/.
template<typename ...Args>
auto add(Args&&... args) noexcept;
Add variable length of arguments together, use plus sign internal.
auto result = open3rds::add(1, 2, 1.125);
A simple example of use this repo as a internal referenced library.
It should be able to be built when its entirely copied out from the root direcotry, a.k.a. independantly.
If use xmake to build example in place, use xmake -P .
instead of xmake
.
Header files, name of cpp srcs ends with .hpp
while c srcs ends with .h
.
Source files, name of files ends with either .cpp
or .c
(sometime with .py
etc.).
Unittests, use gtest by default.