[PATCH] Add std::__iterator_category_t

François Dumont frs.dumont@gmail.com
Fri Oct 4 04:39:00 GMT 2019


Hi

     May I add this convenient function ? I'll also use it in coming 
patches.

     Note that I removed a template parameter in __is_random_access_iter 
in C++11.


     * include/bits/stl_iterator_base_types.h (__iterator_category_t): 
Define
     for C++11.
     (__is_random_access_iter): Adapt to use latter.
     (_RequireInputIte): Likewise and use __enable_if_t.

     Tested under Linux x86_64.

François

-------------- next part --------------
A non-text attachment was scrubbed...
Name: iterator_category_t.patch
Type: text/x-patch
Size: 1125 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20191004/e7ee1d28/attachment.bin>


More information about the Libstdc++ mailing list