diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2014-06-25 21:54:34 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2014-06-25 21:54:34 +0100 |
commit | 484dc5996f12cadb01e01e224541f4ae693f0b6c (patch) | |
tree | f3a84d666fa92e4f7a93b4d2eb03df42dc538a1d /libstdc++-v3/include/bits/alloc_traits.h | |
parent | 99c39534a552d65a2e652a8f44eef6189653bf25 (diff) | |
download | gcc-484dc5996f12cadb01e01e224541f4ae693f0b6c.tar.gz |
alloc_traits.h (__alloc_rebind): Define alias template.
* include/bits/alloc_traits.h (__alloc_rebind): Define alias template.
* include/bits/forward_list.h (_Fwd_list_base): Use __alloc_rebind.
* include/bits/hashtable_policy.h (_Insert_base, _Hashtable_alloc):
Likewise.
* include/ext/alloc_traits.h: Fix comment.
From-SVN: r211995
Diffstat (limited to 'libstdc++-v3/include/bits/alloc_traits.h')
-rw-r--r-- | libstdc++-v3/include/bits/alloc_traits.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/include/bits/alloc_traits.h b/libstdc++-v3/include/bits/alloc_traits.h index 23fe8de0947..3afcc6fcad2 100644 --- a/libstdc++-v3/include/bits/alloc_traits.h +++ b/libstdc++-v3/include/bits/alloc_traits.h @@ -72,6 +72,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION typedef _Alloc<_Tp, _Args...> __type; }; + template<typename _Ptr, typename _Tp> + using __alloc_rebind = typename __alloctr_rebind<_Ptr, _Tp>::__type; + /** * @brief Uniform interface to all allocator types. * @ingroup allocators |