mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-01 22:55:41 +08:00
refs #296 construct a CGeodesicGrid from another container
This commit is contained in:
@@ -41,6 +41,13 @@ namespace BlackMisc
|
|||||||
//! Iterator
|
//! Iterator
|
||||||
typedef typename QMultiMap<Key, T>::const_iterator const_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.
|
//! Begin and end iterators of the underlying storage.
|
||||||
//! @{
|
//! @{
|
||||||
const_iterator begin() const { return m_map.begin(); }
|
const_iterator begin() const { return m_map.begin(); }
|
||||||
|
|||||||
Reference in New Issue
Block a user