Updated README.md
This commit is contained in:
@@ -29,4 +29,4 @@ HEADERS += fixedsizematrix.h
|
||||
|
||||
SOURCES += tst_qfixedsizematrixtest.cpp
|
||||
|
||||
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
||||
DISTFILES += README.md
|
||||
|
14
README.md
14
README.md
@@ -1,2 +1,16 @@
|
||||
# QFixedSizeMatrix
|
||||
Some C++11 optimization/template tests
|
||||
|
||||
I just finished a training about test driven development and wanted to test it quickly with a very small project.
|
||||
|
||||
I was trying to implement an array like container with helper functions to rotate it (maybe useful in some chess/tetris game?)
|
||||
At first I wrote the interface and did not implement any of the provided api.
|
||||
Next I wrote the test cases and after all that I started implementing all methods until all tests succeeded.
|
||||
Looks like it worked nicely.
|
||||
|
||||

|
||||
|
||||
I also wanted to know more about templated classes and functions and about their performance at runtime.
|
||||
Looks like the compiler removes all my function calls and just places the resulting integers into the executable:
|
||||
|
||||
[Example on godbolt](https://godbolt.org/g/JheVzi)
|
||||
|
Reference in New Issue
Block a user