diff options
Diffstat (limited to 'libstdc++-v3/include/debug/map.h')
-rw-r--r-- | libstdc++-v3/include/debug/map.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libstdc++-v3/include/debug/map.h b/libstdc++-v3/include/debug/map.h index 95871ac6b73..254988c2c64 100644 --- a/libstdc++-v3/include/debug/map.h +++ b/libstdc++-v3/include/debug/map.h @@ -203,6 +203,27 @@ namespace __debug using _Base::at; // modifiers: +#ifdef __GXX_EXPERIMENTAL_CXX0X__ + template<typename... _Args> + std::pair<iterator, bool> + emplace(_Args&&... __args) + { + auto __res = _Base::emplace(std::forward<_Args>(__args)...); + return std::pair<iterator, bool>(iterator(__res.first, this), + __res.second); + } + + template<typename... _Args> + iterator + emplace_hint(const_iterator __pos, _Args&&... __args) + { + __glibcxx_check_insert(__pos); + return iterator(_Base::emplace_hint(__pos.base(), + std::forward<_Args>(__args)...), + this); + } +#endif + std::pair<iterator, bool> insert(const value_type& __x) { |