diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2015-04-07 05:21:38 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2015-04-07 05:21:38 +0000 |
commit | 1f508014df7da33d684a5c0cb3c059a675a0aacf (patch) | |
tree | a8102eef2127fe5568b7bac65f9a8e47a2413dfe /libcxx/include/vector | |
parent | 1c0844bdfbe047770b116bd9fc56b5eefcd60852 (diff) | |
download | bcm5719-llvm-1f508014df7da33d684a5c0cb3c059a675a0aacf.tar.gz bcm5719-llvm-1f508014df7da33d684a5c0cb3c059a675a0aacf.zip |
In many places, there was an #ifdef/#else block that selected one of two implmentations of rebind_alloc based on whether or not we had template aliases. Create a helper struct to encapsulate that bit of logic, and replace all the ifdefs with uses of that struct. No functionality change intented.
llvm-svn: 234296
Diffstat (limited to 'libcxx/include/vector')
-rw-r--r-- | libcxx/include/vector | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libcxx/include/vector b/libcxx/include/vector index efe21e111d0..48e970a2f40 100644 --- a/libcxx/include/vector +++ b/libcxx/include/vector @@ -2125,13 +2125,7 @@ public: typedef _VSTD::reverse_iterator<const_iterator> const_reverse_iterator; private: - typedef typename __alloc_traits::template -#ifndef _LIBCPP_HAS_NO_TEMPLATE_ALIASES - rebind_alloc<__storage_type> -#else - rebind_alloc<__storage_type>::other -#endif - __storage_allocator; + typedef typename __rebind_alloc_helper<__alloc_traits, __storage_type>::type __storage_allocator; typedef allocator_traits<__storage_allocator> __storage_traits; typedef typename __storage_traits::pointer __storage_pointer; typedef typename __storage_traits::const_pointer __const_storage_pointer; |