diff options
author | Brad King <brad.king@kitware.com> | 2005-04-15 19:30:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-15 19:30:28 (GMT) |
commit | cc996274f8c00f2651e260d1a6828c8877c4e2bd (patch) | |
tree | 723f6b1b7b20194c4158f131403274c569f6facf /Source/kwsys/hash_set.hxx.in | |
parent | ecc142ee33263488b8423858f46557238ca4b7ec (diff) | |
download | CMake-cc996274f8c00f2651e260d1a6828c8877c4e2bd.zip CMake-cc996274f8c00f2651e260d1a6828c8877c4e2bd.tar.gz CMake-cc996274f8c00f2651e260d1a6828c8877c4e2bd.tar.bz2 |
COMP: Replaced kwsys_stl with @KWSYS_NAMESPACE@_stl to properly use the configured namespace.
Diffstat (limited to 'Source/kwsys/hash_set.hxx.in')
-rw-r--r-- | Source/kwsys/hash_set.hxx.in | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/kwsys/hash_set.hxx.in b/Source/kwsys/hash_set.hxx.in index 554e31b..b346926 100644 --- a/Source/kwsys/hash_set.hxx.in +++ b/Source/kwsys/hash_set.hxx.in @@ -59,7 +59,7 @@ namespace @KWSYS_NAMESPACE@ // identity is an extension: it is not part of the standard. template <class _Tp> -struct _Identity : public kwsys_stl::unary_function<_Tp,_Tp> +struct _Identity : public @KWSYS_NAMESPACE@_stl::unary_function<_Tp,_Tp> { const _Tp& operator()(const _Tp& __x) const { return __x; } }; @@ -68,7 +68,7 @@ struct _Identity : public kwsys_stl::unary_function<_Tp,_Tp> template <class _Value, class _HashFcn = hash<_Value>, - class _EqualKey = kwsys_stl::equal_to<_Value>, + class _EqualKey = @KWSYS_NAMESPACE@_stl::equal_to<_Value>, class _Alloc = @KWSYS_NAMESPACE@_HASH_DEFAULT_ALLOCATOR(char) > class hash_set; @@ -186,11 +186,11 @@ public: iterator end() const { return _M_ht.end(); } public: - kwsys_stl::pair<iterator, bool> insert(const value_type& __obj) + @KWSYS_NAMESPACE@_stl::pair<iterator, bool> insert(const value_type& __obj) { typedef typename _Ht::iterator _Ht_iterator; - kwsys_stl::pair<_Ht_iterator, bool> __p = _M_ht.insert_unique(__obj); - return kwsys_stl::pair<iterator,bool>(__p.first, __p.second); + @KWSYS_NAMESPACE@_stl::pair<_Ht_iterator, bool> __p = _M_ht.insert_unique(__obj); + return @KWSYS_NAMESPACE@_stl::pair<iterator,bool>(__p.first, __p.second); } #if @KWSYS_NAMESPACE@_CXX_HAS_MEMBER_TEMPLATES template <class _InputIterator> @@ -203,19 +203,19 @@ public: void insert(const_iterator __f, const_iterator __l) {_M_ht.insert_unique(__f, __l); } #endif - kwsys_stl::pair<iterator, bool> insert_noresize(const value_type& __obj) + @KWSYS_NAMESPACE@_stl::pair<iterator, bool> insert_noresize(const value_type& __obj) { typedef typename _Ht::iterator _Ht_iterator; - kwsys_stl::pair<_Ht_iterator, bool> __p = + @KWSYS_NAMESPACE@_stl::pair<_Ht_iterator, bool> __p = _M_ht.insert_unique_noresize(__obj); - return kwsys_stl::pair<iterator, bool>(__p.first, __p.second); + return @KWSYS_NAMESPACE@_stl::pair<iterator, bool>(__p.first, __p.second); } iterator find(const key_type& __key) const { return _M_ht.find(__key); } size_type count(const key_type& __key) const { return _M_ht.count(__key); } - kwsys_stl::pair<iterator, iterator> equal_range(const key_type& __key) const + @KWSYS_NAMESPACE@_stl::pair<iterator, iterator> equal_range(const key_type& __key) const { return _M_ht.equal_range(__key); } size_type erase(const key_type& __key) {return _M_ht.erase(__key); } @@ -256,7 +256,7 @@ swap(hash_set<_Val,_HashFcn,_EqualKey,_Alloc>& __hs1, template <class _Value, class _HashFcn = hash<_Value>, - class _EqualKey = kwsys_stl::equal_to<_Value>, + class _EqualKey = @KWSYS_NAMESPACE@_stl::equal_to<_Value>, class _Alloc = @KWSYS_NAMESPACE@_HASH_DEFAULT_ALLOCATOR(char) > class hash_multiset; @@ -395,7 +395,7 @@ public: size_type count(const key_type& __key) const { return _M_ht.count(__key); } - kwsys_stl::pair<iterator, iterator> equal_range(const key_type& __key) const + @KWSYS_NAMESPACE@_stl::pair<iterator, iterator> equal_range(const key_type& __key) const { return _M_ht.equal_range(__key); } size_type erase(const key_type& __key) {return _M_ht.erase(__key); } |