font-size: small;
font-style: italic;
}
+
+.zoom {
+ transition: transform .2s; /* Animation */
+}
+
+.zoom:hover {
+ transform: scale(1.5); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
+}
# Overview
+
+<!-- toc -->
## (Bag of) Features
* [single inheritance](https://en.wikipedia.org/wiki/Inheritance_(object-oriented_programming)#Design_constraints)
* typedef (function pointers and type aliases)
- * enums and unions
+ * [enums](Reference/Types/Enums.html) and [unions](Reference/Types/Unions.html)
* templates (both class and functions)
* easy concurrency/async
* [lambdas](Reference/Functions/Lambdas.html)
# Union types
+
+Union store their component in the same memory space.
+For more infomations, see [here](https://en.wikipedia.org/wiki/Union_type).
+
+@``` base_union
+union {
+ int a;
+ float f;
+ Object o;
+};
+@```
+
-git checkout doc_tmp
+git checkout -b doc_tmp
git branch -r | grep gh-pages && git push origin :gh-pages || true
git add -f book
git commit -m "add book"
}
doc2src() {
-echo $1
mdr $1 || return
mdfile=${1::-1}
target=$(sed 's/docs/src/' <<< $mdfile)
done
}
-if [[ "$1" == *".mdr" ]]
+ if [[ "$1" == *".mdr" ]]
then doc2src $1
if [ "$(git status -s | grep docs)" ]
then sh scripts/summary.sh > src/SUMMARY.md
fi
-else runall
-fi
+ else runall
+ fi