diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-12 19:40:57 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-12 19:40:57 +0200 |
| commit | a9c5da13649466c13a081fa35eed7261340158c1 (patch) | |
| tree | 9e903ae8636de59f366cac04a7afcc405c85bbe7 /include | |
| parent | 857bdd55e92b5910852d1215bf5cef43e78b5ecb (diff) | |
| download | Project-Tick-a9c5da13649466c13a081fa35eed7261340158c1.tar.gz Project-Tick-a9c5da13649466c13a081fa35eed7261340158c1.zip | |
Implement initializer_list constructors for tag_list
Diffstat (limited to 'include')
| -rw-r--r-- | include/tag_list.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/tag_list.h b/include/tag_list.h index 594d630547..12aa86d965 100644 --- a/include/tag_list.h +++ b/include/tag_list.h @@ -148,6 +148,15 @@ public: private: std::vector<value> tags; tag_type el_type_; + + /** + * Internally used constructor that initializes the list with tags of + * type T, with the constructor arguments of each T given by init. + * @param dummy ignored, only used for inducing the template parameter T + * @param init list of values that are, one by one, given to a constructor of T + */ + template<class T, class Arg> + tag_list(T dummy, std::initializer_list<Arg> init); }; template<class T, class... Args> |
