aboutsummaryrefslogtreecommitdiff
path: root/articles/2014-07-11_mapping_arrays_using_tuples_in_cpp11.md
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-10-01 09:20:22 +0200
committerAdrian Kummerlaender2018-10-01 09:20:22 +0200
commit469094b0df07b6e4606014581fcb8b68bf6c55d6 (patch)
tree0eaaed4853087d9af1d75d65b929bb7ca21bacf1 /articles/2014-07-11_mapping_arrays_using_tuples_in_cpp11.md
parentf422d80a558e33931c340c1abae40b243afc294a (diff)
downloadblog_content-469094b0df07b6e4606014581fcb8b68bf6c55d6.tar
blog_content-469094b0df07b6e4606014581fcb8b68bf6c55d6.tar.gz
blog_content-469094b0df07b6e4606014581fcb8b68bf6c55d6.tar.bz2
blog_content-469094b0df07b6e4606014581fcb8b68bf6c55d6.tar.lz
blog_content-469094b0df07b6e4606014581fcb8b68bf6c55d6.tar.xz
blog_content-469094b0df07b6e4606014581fcb8b68bf6c55d6.tar.zst
blog_content-469094b0df07b6e4606014581fcb8b68bf6c55d6.zip
Revert "Update code.kummerlaender.eu links"
This reverts commit 7d937830c21636eddc67bd2b2479cb7a436a7657.
Diffstat (limited to 'articles/2014-07-11_mapping_arrays_using_tuples_in_cpp11.md')
-rw-r--r--articles/2014-07-11_mapping_arrays_using_tuples_in_cpp11.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/articles/2014-07-11_mapping_arrays_using_tuples_in_cpp11.md b/articles/2014-07-11_mapping_arrays_using_tuples_in_cpp11.md
index c29de87..19bc030 100644
--- a/articles/2014-07-11_mapping_arrays_using_tuples_in_cpp11.md
+++ b/articles/2014-07-11_mapping_arrays_using_tuples_in_cpp11.md
@@ -58,6 +58,6 @@ inline xalan::XalanDocument* callConstructDocument(
As we can see a `IndexSequence` template specialization instance is passed to the variadic `callConstructDocument` method to expose the actual sequence values as `Index`. This method then resolves the `Index` parameter pack as both the array and `std::tuple` index inside the calls to the `valueGetter.get` template method which is called for every sequence element because of this. What this means is that we are now able to implement non-template `constructDocument` methods inside XSLT external function implementations such as [FunctionTransform](https://github.com/KnairdA/InputXSLT/blob/master/src/function/transform.h). The values passed to these methods are automatically extracted from the argument array and converted into their respective types as required.
-While this article only provided a short overview of mapping arrays using tuples in C++11 one may view the full implementation on [Github](https://github.com/KnairdA/InputXSLT/blob/master/src/function/base.h) or [Gitea](http://code.kummerlaender.eu/XSLT/InputXSLT/src/branch/master/src/function/base.h).
+While this article only provided a short overview of mapping arrays using tuples in C++11 one may view the full implementation on [Github](https://github.com/KnairdA/InputXSLT/blob/master/src/function/base.h) or [cgit](http://code.kummerlaender.eu/InputXSLT/tree/src/function/base.h).
**Update:** The recently passed C++14 standard adds a [std::integer_sequence](http://en.cppreference.com/w/cpp/utility/integer_sequence) template to the standard library which covers the same use case as the custom `Sequence` and `IndexSequence` templates detailed in this article. `FunctionBase` was already [modified](https://github.com/KnairdA/InputXSLT/commit/b9d62d5ce1e3f92a8ab34239c6e4044ad57180df) accordingly as one should obviously rely on the standard's version of a integer sequence in the future.