diff options
author | Jonathan Wakely <jwakely.gcc@gmail.com> | 2012-04-22 14:38:33 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely.gcc@gmail.com> | 2012-04-22 14:38:33 +0000 |
commit | 7c431e4cf1549df5889488305e0a5805ce0d0d24 (patch) | |
tree | 5950bb8c0e9ea324dd8ec309ed2ecf6be07924ae /libstdc++-v3/include/ext | |
parent | 2c2458034620ff7b83de865fd4645a0ab7aaf823 (diff) |
* include/ext/alloc_traits.h (__alloc_traits::difference_type):
Define.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@186673 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/ext')
-rw-r--r-- | libstdc++-v3/include/ext/alloc_traits.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/include/ext/alloc_traits.h b/libstdc++-v3/include/ext/alloc_traits.h index 4862636645e..b3e3af663a6 100644 --- a/libstdc++-v3/include/ext/alloc_traits.h +++ b/libstdc++-v3/include/ext/alloc_traits.h @@ -99,6 +99,7 @@ template<typename _Alloc> typedef typename _Base_type::pointer pointer; typedef typename _Base_type::const_pointer const_pointer; typedef typename _Base_type::size_type size_type; + typedef typename _Base_type::difference_type difference_type; // C++0x allocators do not define reference or const_reference typedef value_type& reference; typedef const value_type& const_reference; @@ -170,6 +171,7 @@ template<typename _Alloc> typedef typename _Alloc::reference reference; typedef typename _Alloc::const_reference const_reference; typedef typename _Alloc::size_type size_type; + typedef typename _Alloc::difference_type difference_type; static pointer allocate(_Alloc& __a, size_type __n) |