diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-22 09:50:35 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-22 09:50:35 +0000 |
commit | 6ba5135c96d81d23eafa4f0740ebbf113d8c798f (patch) | |
tree | 50dbe1ac4d36c1a00374718d478617dbb18cd2ef /host/include/uhd/dict.hpp | |
parent | 10ee8022dd22f13f942d8bfeeca3b380224fff52 (diff) | |
parent | d66efda608db9f6a1c2ab64659556b53810d87b7 (diff) | |
download | uhd-6ba5135c96d81d23eafa4f0740ebbf113d8c798f.tar.gz uhd-6ba5135c96d81d23eafa4f0740ebbf113d8c798f.tar.bz2 uhd-6ba5135c96d81d23eafa4f0740ebbf113d8c798f.zip |
Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhd into u1e_uhd
Conflicts:
host/include/uhd/usrp/dboard_id.hpp
Diffstat (limited to 'host/include/uhd/dict.hpp')
-rw-r--r-- | host/include/uhd/dict.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/host/include/uhd/dict.hpp b/host/include/uhd/dict.hpp index 8f7cd5a0f..f08493952 100644 --- a/host/include/uhd/dict.hpp +++ b/host/include/uhd/dict.hpp @@ -40,6 +40,19 @@ namespace uhd{ } /*! + * Input iterator constructor: + * Makes boost::assign::map_list_of work. + * \param first the begin iterator + * \param last the end iterator + */ + template <class InputIterator> + dict(InputIterator first, InputIterator last){ + for(InputIterator it = first; it != last; it++){ + _map.push_back(*it); + } + } + + /*! * Destroy this dict. */ ~dict(void){ |