aboutsummaryrefslogtreecommitdiff
path: root/source/00_content/pages/projects/trie.md
diff options
context:
space:
mode:
authorAdrian Kummerlaender2017-01-17 20:44:31 +0100
committerAdrian Kummerlaender2017-01-17 20:44:31 +0100
commit42f512133535ddd3b542abecc5c96f8a0da6764b (patch)
treeb067a2b86116415d78c276401f103748390e8d5f /source/00_content/pages/projects/trie.md
parent23f6297c212525d71692eb7ee8e6e096ad4711a3 (diff)
downloadblog.kummerlaender.eu-42f512133535ddd3b542abecc5c96f8a0da6764b.tar
blog.kummerlaender.eu-42f512133535ddd3b542abecc5c96f8a0da6764b.tar.gz
blog.kummerlaender.eu-42f512133535ddd3b542abecc5c96f8a0da6764b.tar.bz2
blog.kummerlaender.eu-42f512133535ddd3b542abecc5c96f8a0da6764b.tar.lz
blog.kummerlaender.eu-42f512133535ddd3b542abecc5c96f8a0da6764b.tar.xz
blog.kummerlaender.eu-42f512133535ddd3b542abecc5c96f8a0da6764b.tar.zst
blog.kummerlaender.eu-42f512133535ddd3b542abecc5c96f8a0da6764b.zip
Update markdown syntax to use pandoc's peculiarities
Diffstat (limited to 'source/00_content/pages/projects/trie.md')
-rw-r--r--source/00_content/pages/projects/trie.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/00_content/pages/projects/trie.md b/source/00_content/pages/projects/trie.md
index 11e3463..d0bddb2 100644
--- a/source/00_content/pages/projects/trie.md
+++ b/source/00_content/pages/projects/trie.md
@@ -17,7 +17,7 @@ A prefix tree or _Trie_ is a data structure that can be used to store a dynamic
The following example demonstrates the usage of the `Trie` class template specialized on a key and value type. While the first is obviously required the second may be ommitted if not required. Further usage examples are available as Google-Test based [test cases].
-~~~
+```cpp
Trie<uint8_t, uint8_t> trie;
trie.add({1, 1, 1, 1}, 42);
@@ -28,8 +28,7 @@ trie.add({2, 3, 1, 2}, 45);
std::cout << trie.get({1, 1, 1, 1}) << std::endl; // true
std::cout << trie.get({1, 1, 1, 1}).get() << std::endl; // 42
std::cout << trie.get({1, 2}) << std::endl; // false
-~~~
-{: .language-cpp}
+```
[Github]: https://github.com/KnairdA/Trie
[cgit]: http://code.kummerlaender.eu/Trie/