diff --git a/lemon/maps.h b/lemon/maps.h --- a/lemon/maps.h +++ b/lemon/maps.h @@ -250,20 +250,41 @@ ///This function just returns a \c StdMap class with specified ///default value. ///\relates StdMap - template > + template inline StdMap stdMap(const V& value = V()) { return StdMap(value); } + + ///Returns a \c StdMap class + + ///This function just returns a \c StdMap class with specified + ///default value. + ///\relates StdMap + template + inline StdMap > stdMap(const V& value = V()) { + return StdMap >(value); + } + + ///Returns a \c StdMap class created from an appropriate std::map + + ///This function just returns a \c StdMap class created from an + ///appropriate std::map. + ///\relates StdMap + template + inline StdMap stdMap( const std::map &map, + const V& value = V() ) { + return StdMap(map, value); + } ///Returns a \c StdMap class created from an appropriate std::map ///This function just returns a \c StdMap class created from an ///appropriate std::map. ///\relates StdMap - template > - inline StdMap stdMap( const std::map &map, - const V& value = V() ) { - return StdMap(map, value); + template + inline StdMap > stdMap( const std::map > &map, + const V& value = V() ) { + return StdMap >(map, value); } /// \brief Map for storing values for keys from the range [0..size-1]