mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
refs #296 construct a CGeodesicGrid from another container
This commit is contained in:
@@ -41,6 +41,13 @@ namespace BlackMisc
|
||||
//! Iterator
|
||||
typedef typename QMultiMap<Key, T>::const_iterator const_iterator;
|
||||
|
||||
//! Constructor
|
||||
//@{
|
||||
CGeodesicGrid() {}
|
||||
template <template <class...> class C> explicit CGeodesicGrid(const C<T> &container) { for (const auto &v : container) { insert(v); } }
|
||||
template <class I> explicit CGeodesicGrid(CRange<I> range) { for (const auto &v : range) { insert(v); } }
|
||||
//@}
|
||||
|
||||
//! Begin and end iterators of the underlying storage.
|
||||
//! @{
|
||||
const_iterator begin() const { return m_map.begin(); }
|
||||
|
||||
Reference in New Issue
Block a user