Commit Graph

9 Commits

Author SHA1 Message Date
Allan Odgaard
e59f9fcfa6 Remove oak::cap from algorithm.h 2019-08-01 10:28:35 +02:00
Allan Odgaard
caefacb911 Add missing space (according to syntax style guide) 2019-08-01 10:05:58 +02:00
Ronald Wampler
a5323b4f77 Add oak::random_shuffle algorithm 2016-10-18 23:06:49 +02:00
Allan Odgaard
182d4aa140 Add oak::has_prefix for comparing std::string with string literal 2016-10-17 11:03:41 +02:00
Allan Odgaard
8e8a647e25 Add algorithm to erase descendent keys form a std::map
This can be used when the key is name spaced, e.g. `/foo/bar` or `foo.bar`. Here we can erase everything under foo by using `/foo/` or `foo.` respectively.
2016-06-02 21:07:43 +02:00
Allan Odgaard
0c99cb0699 Remove unused helper function 2014-12-25 09:32:23 +01:00
Allan Odgaard
58cfa20a1b Add operator<< for std::map
This is to allow chaining inserts and to avoid temporary variables when inserting maps returned from functions.
2013-05-12 11:09:16 +07:00
Allan Odgaard
701c9a0541 Use ‘std’ namespace prefix when calling search()
This is to avoid a clash with other things named ‘search’.
2012-12-28 02:47:19 +01:00
Allan Odgaard
9894969e67 Initial commit 2012-08-09 16:25:56 +02:00