Martchus
b3ebe5ce38
Fix typos found via `codespell --skip .git -w`
11 months ago
Martchus
8c033ca243
Fix warnings
1 year ago
Martchus
9e940a7858
Add helper to modify a flag enum
1 year ago
Martchus
9d59ab5c29
Fix Traits::IsSpecializationOf for references
This check is also supposed to work for references so use the same approach
as for ignoring cv qualifiers.
2 years ago
Martchus
c7c5352325
Use a universal reference to implement dereferenceMaybe()
2 years ago
Martchus
16103c0662
Add missing <string> include in traits header
2 years ago
Martchus
46bebace20
Consider std::basic_string_view a string in Traits::IsString
* Fix e.g. using std::string_view with CppUnit and
the tests/testutils.h header
* Fix documentation
* Possibly a source incompatible change in some rare uses but
not worth a major version bump
3 years ago
Martchus
b693c72eb1
Fix old namespaces being mentioned in the documentation
3 years ago
Martchus
bc9e05ccb7
Fix typo in Damerau–Levenshtein documentation
3 years ago
Martchus
3947504a63
Prevent clang-format from messing CPP_UTILITIES_MARK_FLAG_ENUM_CLASS
3 years ago
Martchus
e8d829cadd
Add helper to ease creation of flag enums
Not sure whether this is the best way, especially the regarding
the namespacing - hence still experimental
3 years ago
Martchus
b48b2f5c06
Have everything in one top-level namespace
3 years ago
Martchus
e18731d438
Remove polyfill for std::make_unique
3 years ago
Martchus
4c1b733290
Rework ArgumentParser::parseArgs()
* Remove "ext()" and "orExit()" versions
* Exit by default (might be intrusive but it is the most
common use)
* Rename Failure to ParseError
3 years ago
Martchus
9a2679e57d
Fix compile error with GCC 7.2.1
Prevents "error: uninitialized variable 'tmp' in 'constexpr' function"
3 years ago
Martchus
c904014794
Make math functions templates and move to misc
3 years ago
Martchus
b178bb086c
Remove random utilities
3 years ago
Martchus
44e4d1335a
Fix Traits::IsSpecializationOf to ignore cv qualifier
So eg. const/volatile std::string is also considered a
specialization of std::basic_string like one would expect.
4 years ago
Martchus
cad2977e4e
Add Traits::HasOperatorBool
4 years ago
Martchus
252e91c819
Unify namespace descriptions
4 years ago
Marius Kittler
5e74deccf3
Document all traits
4 years ago
Marius Kittler
9743dc7d28
Improve dereferenceMaybe()
* Support smart-pointers and other types which can
be dereferenced
* Add tests
* Add documentation
4 years ago
Martchus
236309971d
Add dereferenceMaybe()
4 years ago
Martchus
27d5041e06
Add Traits::IsSpecializingAnyOf
4 years ago
Martchus
0fb92e3685
Add Traits::None
4 years ago
Martchus
30adb1bc47
Add Traits::IsResizable
4 years ago
Martchus
e4bf7142f5
Add Traits::Is{Any,None}Of
4 years ago
Martchus
3c04514649
Ensure stack-allocated distance array is initialized
4 years ago
Martchus
429de98836
Add algorithm for computing Damerau–Levenshtein distance
4 years ago
Martchus
25057fa8e3
Add MultiArray class which provides an N-dimensional array
4 years ago
Martchus
2264ea5cf2
Add trait to check whether type is complete
5 years ago
Martchus
39f69f94d7
Make CPP_UTILITIES_TRAITS_DEFINE_TYPE_CHECK usabe from any ns
5 years ago
Martchus
9fb347db24
Add generic macro for defining (custom) type checks
5 years ago
Martchus
fa39e2a1aa
Add traits to check for reserve() and size()
5 years ago
Martchus
e52fd5a4af
Apply tidy after updating to clang-format 5.0.0
The behavior of clang-format slightly changed in Clang 5.0.0:
http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html#clang-format
5 years ago
Martchus
3b74b817ec
Add trait to test for strings
5 years ago
Martchus
f827c2be00
Add trait to check whether type is iteratable
5 years ago
Martchus
db46948f2f
Apply clang-format
5 years ago
Martchus
59e20b1043
Apply clang-format
5 years ago
Martchus
94a6b47811
Improve documentation
5 years ago
Martchus
df1605c9b1
Add trait to detect template specialization
Useful to check for std::tuple
5 years ago
Martchus
5eec3c3c9b
traits: Fix Any and add Enable-/DisableIfAny
5 years ago
Martchus
bd9cdfccb2
Add traits for exploiting SFINAE
6 years ago
Martchus
d6b08b8ed9
Fix decoration for static builds
- Also add improvemnts a few other things in the build system
6 years ago
Martchus
ec53cf339d
Improve doc
6 years ago
Martchus
d28d477ffe
Complete generation of API doc
- Use README.md for main page
- Add install target for API doc
- Improve some doc comments
6 years ago
Martchus
93582b4ac0
added more tests, fixed some bugs
6 years ago
Martchus
a8f7644350
minor adjustments
6 years ago
Martchus
4e359bdfea
small changes
7 years ago
Martchus
4d6bf67188
fixed includes
7 years ago